Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pdb2lmp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James Graham
pdb2lmp
Commits
728aaba1
Commit
728aaba1
authored
7 years ago
by
James Graham
Browse files
Options
Downloads
Patches
Plain Diff
Refactor JSON schema for molecules
parent
ed65258c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/schema.json
+117
-107
117 additions, 107 deletions
data/schema.json
with
117 additions
and
107 deletions
data/schema.json
+
117
−
107
View file @
728aaba1
{
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"object"
,
"required"
:
[
"molecules"
],
"additionalProperties"
:
false
,
"properties"
:
{
"version"
:{
"type"
:
"object"
},
"notes"
:
{
"type"
:
"string"
},
"version"
:
{
"type"
:
"object"
},
"notes"
:
{
"type"
:
"string"
},
"include"
:
{
"type"
:
"array"
,
"
items"
:
{
"type"
:
"string"
}
,
"
uniqueItems"
:
true
"
uniqueItems"
:
true
,
"
items"
:
{
"type"
:
"string"
}
},
"molecules"
:
{
"type"
:
"object"
,
"additionalProperties"
:
{
"additionalProperties"
:
{
"$ref"
:
"#/definitions/molecule"
}
}
},
"definitions"
:
{
"molecule"
:
{
"type"
:
"object"
,
"anyOf"
:
[
{
"required"
:
[
"templates"
]},
{
"required"
:
[
"atoms"
]}
],
"properties"
:
{
"polymer_type"
:
{
"comment"
:
{
"type"
:
"string"
},
"templates"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
,
"uniqueItems"
:
true
"minLength"
:
1
,
"items"
:
{
"type"
:
"string"
}
},
"comment"
:
{
"type"
:
"string"
"polymer_type"
:
{
"type"
:
"array"
,
"uniqueItems"
:
true
,
"items"
:
{
"type"
:
"string"
}
},
"atoms"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"type"
:
{
"type"
:
"string"
},
"charge"
:
{
"type"
:
"float"
}
"uniqueItems"
:
true
,
"minLength"
:
1
,
"items"
:
{
"$ref"
:
"#/definitions/atom"
}
},
"additionalProperties"
:
false
,
"required"
:
[
"name"
,
"type"
]
"lengths"
:
{
"type"
:
"array"
,
"uniqueItems"
:
true
,
"items"
:
{
"$ref"
:
"#/definitions/length"
}
},
"uniqueItems"
:
true
"angles"
:
{
"type"
:
"array"
,
"uniqueItems"
:
true
,
"items"
:
{
"$ref"
:
"#/definitions/angle"
}
},
"length
s"
:
{
"dihedral
s"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
},
"atoms"
:
{
"uniqueItems"
:
true
,
"items"
:
{
"$ref"
:
"#/definitions/dihedral"
}
},
"impropers"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
},
"minItems"
:
2
,
"maxItems"
:
2
,
"uniqueItems"
:
true
"uniqueItems"
:
true
,
"items"
:
{
"$ref"
:
"#/definitions/dihedral"
}
}
}
},
"uniqueItems"
:
true
"atom"
:
{
"type"
:
"object"
,
"required"
:
[
"name"
,
"type"
],
"additionalProperties"
:
false
,
"properties"
:
{
"name"
:
{
"type"
:
"string"
},
"type"
:
{
"type"
:
"string"
},
"charge"
:
{
"type"
:
"number"
}
}
},
"angles"
:
{
"type"
:
"array"
,
"items"
:
{
"length"
:
{
"type"
:
"object"
,
"required"
:
[
"type"
,
"atoms"
],
"additionalProperties"
:
false
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
},
"atoms"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
,
"minItems
"
:
3
,
"max
Items"
:
3
,
"uniqueItems"
:
true
"minLength"
:
2
,
"maxLength
"
:
2
,
"unique
Items"
:
true
,
"items"
:
{
"type"
:
"string"
}
}
}
},
"uniqueItems"
:
true
},
"dihedrals"
:
{
"type"
:
"array"
,
"items"
:
{
"angle"
:
{
"type"
:
"object"
,
"required"
:
[
"type"
,
"atoms"
],
"additionalProperties"
:
false
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
},
"atoms"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
}
,
"minItems
"
:
4
,
"max
Items"
:
4
,
"uniqueItems"
:
true
"minLength"
:
3
,
"maxLength
"
:
3
,
"unique
Items"
:
true
,
"items"
:
{
"type"
:
"string"
}
}
}
},
"uniqueItems"
:
true
},
"impropers"
:
{
"type"
:
"array"
,
"items"
:
{
"dihedral"
:
{
"type"
:
"object"
,
"required"
:
[
"type"
,
"atoms"
],
"additionalProperties"
:
false
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
},
"atoms"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"string"
},
"minItems"
:
4
,
"maxItems"
:
4
,
"uniqueItems"
:
true
}
"minLength"
:
4
,
"maxLength"
:
4
,
"uniqueItems"
:
true
,
"items"
:
{
"type"
:
"string"
}
}
},
"uniqueItems"
:
true
}
}
}
}
\ No newline at end of file
},
"required"
:
[
"notes"
,
"molecules"
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment