Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Dec 9, 2023
1 parent 1d53117 commit e3b3bfc
Show file tree
Hide file tree
Showing 14 changed files with 8,221 additions and 5,489 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ project: $(SOURCE_FILES)
# $(RUN) gen-owl --no-metaclasses --no-type-objects $< > $@.tmp && mv $@.tmp $@


test-examples: examples/output

examples/output: $(SCHEMA_SRC)
mkdir -p $@
$(RUN) linkml-run-examples \
--output-formats json \
--output-formats yaml \
--counter-example-input-directory src/data/examples/invalid \
--input-directory src/data/examples/valid \
--output-directory $@ \
--schema $< > $@/README.md
.PHONY: examples/output


schema/sssom/chemrof.sssom.tsv: src/schema/chemrof.yaml
$(RUN) gen-sssom $< -o $@

Expand Down
Binary file modified schema/excel/chemrof.xlsx
Binary file not shown.
47 changes: 26 additions & 21 deletions schema/graphql/chemrof.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,20 @@ type AtomGroupingClass
classifies: Atom
}

type AtomicBond implements OwlClass
{
owlSubclassOf: OwlClass
subject: AtomOccurrence
object: AtomOccurrence
bondType: BondTypeEnum
bondOrder: Integer
bondLength: Float
bondEnergy: Float
bondLengthInAngstroms: Float
bondAngle: Float
torsionalAngle: Float
}

interface AtomIonicForm
{
id: String!
Expand Down Expand Up @@ -232,20 +246,6 @@ type AtomOccurrence implements OwlClass
coordinationNumber: Integer
}

type AtomicBond implements OwlClass
{
owlSubclassOf: OwlClass
subject: AtomOccurrence
object: AtomOccurrence
bondType: BondTypeEnum
bondOrder: Integer
bondLength: Float
bondEnergy: Float
bondLengthInAngstroms: Float
bondAngle: Float
torsionalAngle: Float
}

type BronstedAcid
{
id: String!
Expand Down Expand Up @@ -276,12 +276,12 @@ interface CationState
elementalCharge: Integer
}

interface ChargeState
interface Charged
{
elementalCharge: Integer
}

interface Charged
interface ChargeState
{
elementalCharge: Integer
}
Expand Down Expand Up @@ -452,10 +452,20 @@ type ChemicalSaltGroupingClass
classifies: ChemicalSalt
}

type ChemicalSimilarity
{
owlSubclassOf: OwlClass
}

type ChiralityCenter
{
}

type Collection
{
entities: [DomainEntity]
}

interface Connectivity
{
}
Expand Down Expand Up @@ -1560,11 +1570,6 @@ interface SequenceInterval
hasSequenceRepresentation: SequenceString
}

type Similarity
{
owlSubclassOf: OwlClass
}

type SmallMolecule
{
id: String!
Expand Down
7 changes: 5 additions & 2 deletions schema/jsonld/chemrof.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2023-12-04T19:57:16",
"generation_date": "2023-12-05T15:10:40",
"source": "chemrof.yaml"
},
"@context": {
Expand Down Expand Up @@ -194,6 +194,9 @@
"classified_by": {
"@type": "@id"
},
"entities": {
"@type": "@id"
},
"composed_of": {
"@type": "@id"
},
Expand Down Expand Up @@ -514,7 +517,7 @@
"meaning": "@id"
}
},
"count": {
"Count": {
"@type": "xsd:integer"
},
"subject_atom_occurrence": {
Expand Down
Loading

0 comments on commit e3b3bfc

Please sign in to comment.