Skip to content

Commit

Permalink
Merge pull request #53 from geneontology/issue-38
Browse files Browse the repository at this point in the history
Adding synonym type. Fixes #38
  • Loading branch information
cmungall authored Jan 22, 2020
2 parents 0f7f07e + 57ee209 commit 3e09271
Show file tree
Hide file tree
Showing 16 changed files with 713 additions and 671 deletions.
16 changes: 8 additions & 8 deletions examples/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
"id" : "http://purl.obolibrary.org/obo/UBERON_0002470",
"type" : "CLASS",
"lbl" : "autopod region"
}, {
"id" : "http://www.geneontology.org/formats/oboInOwl#shorthand",
"type" : "PROPERTY",
"lbl" : "shorthand"
}, {
"id" : "http://purl.obolibrary.org/obo/BFO_0000050",
"meta" : {
Expand All @@ -20,6 +16,10 @@
} ]
},
"type" : "PROPERTY"
}, {
"id" : "http://www.geneontology.org/formats/oboInOwl#shorthand",
"type" : "PROPERTY",
"lbl" : "shorthand"
}, {
"id" : "http://www.geneontology.org/formats/oboInOwl#hasDbXref",
"type" : "PROPERTY",
Expand All @@ -32,10 +32,6 @@
"id" : "http://purl.obolibrary.org/obo/UBERON_0002102",
"type" : "CLASS",
"lbl" : "forelimb"
}, {
"id" : "http://purl.obolibrary.org/obo/UBERON_0002101",
"type" : "CLASS",
"lbl" : "limb"
}, {
"id" : "http://purl.obolibrary.org/obo/UBERON_0002398",
"meta" : {
Expand All @@ -46,6 +42,10 @@
},
"type" : "CLASS",
"lbl" : "manus"
}, {
"id" : "http://purl.obolibrary.org/obo/UBERON_0002101",
"type" : "CLASS",
"lbl" : "limb"
} ],
"edges" : [ {
"sub" : "http://purl.obolibrary.org/obo/UBERON_0002102",
Expand Down
12 changes: 6 additions & 6 deletions examples/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ graphs:
- id: "http://purl.obolibrary.org/obo/UBERON_0002470"
type: "CLASS"
lbl: "autopod region"
- id: "http://www.geneontology.org/formats/oboInOwl#shorthand"
type: "PROPERTY"
lbl: "shorthand"
- id: "http://purl.obolibrary.org/obo/BFO_0000050"
meta:
xrefs:
Expand All @@ -15,6 +12,9 @@ graphs:
- pred: "http://www.geneontology.org/formats/oboInOwl#shorthand"
val: "part_of"
type: "PROPERTY"
- id: "http://www.geneontology.org/formats/oboInOwl#shorthand"
type: "PROPERTY"
lbl: "shorthand"
- id: "http://www.geneontology.org/formats/oboInOwl#hasDbXref"
type: "PROPERTY"
lbl: "database_cross_reference"
Expand All @@ -24,16 +24,16 @@ graphs:
- id: "http://purl.obolibrary.org/obo/UBERON_0002102"
type: "CLASS"
lbl: "forelimb"
- id: "http://purl.obolibrary.org/obo/UBERON_0002101"
type: "CLASS"
lbl: "limb"
- id: "http://purl.obolibrary.org/obo/UBERON_0002398"
meta:
definition:
val: "."
xrefs: []
type: "CLASS"
lbl: "manus"
- id: "http://purl.obolibrary.org/obo/UBERON_0002101"
type: "CLASS"
lbl: "limb"
edges:
- sub: "http://purl.obolibrary.org/obo/UBERON_0002102"
pred: "is_a"
Expand Down
38 changes: 19 additions & 19 deletions examples/equivNodeSetTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@
},
"synonyms" : [ {
"pred" : "hasExactSynonym",
"val" : "Hemangiosarcoma",
"val" : "hemangiosarcoma",
"xrefs" : [ ]
}, {
"pred" : "hasExactSynonym",
"val" : "HEMANGIOSARCOMA, MALIGNANT",
"val" : "Hemangiosarcoma",
"xrefs" : [ ]
}, {
"pred" : "hasExactSynonym",
"val" : "angiosarcoma",
"val" : "HEMANGIOSARCOMA, MALIGNANT",
"xrefs" : [ ]
}, {
"pred" : "hasExactSynonym",
"val" : "Hemangiosarcoma",
"val" : "Malignant Angioendothelioma",
"xrefs" : [ ]
}, {
"pred" : "hasExactSynonym",
"val" : "Angiosarcoma",
"val" : "Hemangiosarcoma",
"xrefs" : [ ]
}, {
"pred" : "hasExactSynonym",
"val" : "hemangiosarcoma",
"val" : "Malignant Hemangioendothelioma",
"xrefs" : [ ]
}, {
"pred" : "hasExactSynonym",
"val" : "Malignant Angioendothelioma",
"val" : "angiosarcoma",
"xrefs" : [ ]
}, {
"pred" : "hasExactSynonym",
"val" : "Malignant Hemangioendothelioma",
"val" : "Angiosarcoma",
"xrefs" : [ ]
} ]
},
Expand Down Expand Up @@ -80,10 +80,6 @@
"id" : "http://www.geneontology.org/formats/oboInOwl#hasDbXref",
"type" : "PROPERTY",
"lbl" : "database_cross_reference"
}, {
"id" : "http://purl.obolibrary.org/obo/IAO_0000115",
"type" : "PROPERTY",
"lbl" : "definition"
}, {
"id" : "http://purl.obolibrary.org/obo/DOID_267",
"meta" : {
Expand All @@ -97,6 +93,10 @@
"deprecated" : true
},
"type" : "CLASS"
}, {
"id" : "http://purl.obolibrary.org/obo/IAO_0000115",
"type" : "PROPERTY",
"lbl" : "definition"
}, {
"id" : "http://purl.obolibrary.org/obo/DOID_0001816",
"meta" : {
Expand All @@ -106,23 +106,23 @@
},
"subsets" : [ "http://purl.obolibrary.org/obo/TEMP#NCIthesaurus" ],
"xrefs" : [ {
"val" : "SCTID:33176006"
"val" : "MESH:D006394"
}, {
"val" : "UMLS:C0018923"
"val" : "NCIT:C9275"
}, {
"val" : "Orphanet:263413"
"val" : "SCTID:33176006"
}, {
"val" : "SCTID:39000009"
}, {
"val" : "MESH:D006394"
}, {
"val" : "UMLS:C0854893"
"val" : "UMLS:C0018923"
}, {
"val" : "SCTID:403977003"
}, {
"val" : "NCIT:C9275"
"val" : "UMLS:C0854893"
}, {
"val" : "NCIT:C3088"
}, {
"val" : "Orphanet:263413"
} ],
"synonyms" : [ {
"pred" : "hasExactSynonym",
Expand Down
30 changes: 15 additions & 15 deletions examples/equivNodeSetTest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@ graphs:
\ lymphedema are at increased risk of developing angiosarcoma."
xrefs: []
synonyms:
- pred: "hasExactSynonym"
val: "hemangiosarcoma"
xrefs: []
- pred: "hasExactSynonym"
val: "Hemangiosarcoma"
xrefs: []
- pred: "hasExactSynonym"
val: "HEMANGIOSARCOMA, MALIGNANT"
xrefs: []
- pred: "hasExactSynonym"
val: "angiosarcoma"
val: "Malignant Angioendothelioma"
xrefs: []
- pred: "hasExactSynonym"
val: "Hemangiosarcoma"
xrefs: []
- pred: "hasExactSynonym"
val: "Angiosarcoma"
xrefs: []
- pred: "hasExactSynonym"
val: "hemangiosarcoma"
val: "Malignant Hemangioendothelioma"
xrefs: []
- pred: "hasExactSynonym"
val: "Malignant Angioendothelioma"
val: "angiosarcoma"
xrefs: []
- pred: "hasExactSynonym"
val: "Malignant Hemangioendothelioma"
val: "Angiosarcoma"
xrefs: []
type: "CLASS"
lbl: "Angiosarcoma"
Expand Down Expand Up @@ -67,9 +67,6 @@ graphs:
- id: "http://www.geneontology.org/formats/oboInOwl#hasDbXref"
type: "PROPERTY"
lbl: "database_cross_reference"
- id: "http://purl.obolibrary.org/obo/IAO_0000115"
type: "PROPERTY"
lbl: "definition"
- id: "http://purl.obolibrary.org/obo/DOID_267"
meta:
basicPropertyValues:
Expand All @@ -79,6 +76,9 @@ graphs:
val: "http://purl.obolibrary.org/obo/IAO_0000227"
deprecated: true
type: "CLASS"
- id: "http://purl.obolibrary.org/obo/IAO_0000115"
type: "PROPERTY"
lbl: "definition"
- id: "http://purl.obolibrary.org/obo/DOID_0001816"
meta:
definition:
Expand All @@ -92,15 +92,15 @@ graphs:
subsets:
- "http://purl.obolibrary.org/obo/TEMP#NCIthesaurus"
xrefs:
- val: "MESH:D006394"
- val: "NCIT:C9275"
- val: "SCTID:33176006"
- val: "UMLS:C0018923"
- val: "Orphanet:263413"
- val: "SCTID:39000009"
- val: "MESH:D006394"
- val: "UMLS:C0854893"
- val: "UMLS:C0018923"
- val: "SCTID:403977003"
- val: "NCIT:C9275"
- val: "UMLS:C0854893"
- val: "NCIT:C3088"
- val: "Orphanet:263413"
synonyms:
- pred: "hasExactSynonym"
val: "hemangiosarcoma"
Expand Down
16 changes: 8 additions & 8 deletions examples/logicalDefinitionTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
"id" : "http://purl.obolibrary.org/obo/UBERON_0002470",
"type" : "CLASS",
"lbl" : "autopod region"
}, {
"id" : "http://www.geneontology.org/formats/oboInOwl#shorthand",
"type" : "PROPERTY",
"lbl" : "shorthand"
}, {
"id" : "http://purl.obolibrary.org/obo/BFO_0000050",
"meta" : {
Expand All @@ -20,6 +16,10 @@
} ]
},
"type" : "PROPERTY"
}, {
"id" : "http://www.geneontology.org/formats/oboInOwl#shorthand",
"type" : "PROPERTY",
"lbl" : "shorthand"
}, {
"id" : "http://www.geneontology.org/formats/oboInOwl#hasDbXref",
"type" : "PROPERTY",
Expand All @@ -32,10 +32,6 @@
"id" : "http://purl.obolibrary.org/obo/UBERON_0002102",
"type" : "CLASS",
"lbl" : "forelimb"
}, {
"id" : "http://purl.obolibrary.org/obo/UBERON_0002101",
"type" : "CLASS",
"lbl" : "limb"
}, {
"id" : "http://purl.obolibrary.org/obo/UBERON_0002398",
"meta" : {
Expand All @@ -46,6 +42,10 @@
},
"type" : "CLASS",
"lbl" : "manus"
}, {
"id" : "http://purl.obolibrary.org/obo/UBERON_0002101",
"type" : "CLASS",
"lbl" : "limb"
} ],
"edges" : [ {
"sub" : "http://purl.obolibrary.org/obo/UBERON_0002102",
Expand Down
12 changes: 6 additions & 6 deletions examples/logicalDefinitionTest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ graphs:
- id: "http://purl.obolibrary.org/obo/UBERON_0002470"
type: "CLASS"
lbl: "autopod region"
- id: "http://www.geneontology.org/formats/oboInOwl#shorthand"
type: "PROPERTY"
lbl: "shorthand"
- id: "http://purl.obolibrary.org/obo/BFO_0000050"
meta:
xrefs:
Expand All @@ -15,6 +12,9 @@ graphs:
- pred: "http://www.geneontology.org/formats/oboInOwl#shorthand"
val: "part_of"
type: "PROPERTY"
- id: "http://www.geneontology.org/formats/oboInOwl#shorthand"
type: "PROPERTY"
lbl: "shorthand"
- id: "http://www.geneontology.org/formats/oboInOwl#hasDbXref"
type: "PROPERTY"
lbl: "database_cross_reference"
Expand All @@ -24,16 +24,16 @@ graphs:
- id: "http://purl.obolibrary.org/obo/UBERON_0002102"
type: "CLASS"
lbl: "forelimb"
- id: "http://purl.obolibrary.org/obo/UBERON_0002101"
type: "CLASS"
lbl: "limb"
- id: "http://purl.obolibrary.org/obo/UBERON_0002398"
meta:
definition:
val: "."
xrefs: []
type: "CLASS"
lbl: "manus"
- id: "http://purl.obolibrary.org/obo/UBERON_0002101"
type: "CLASS"
lbl: "limb"
edges:
- sub: "http://purl.obolibrary.org/obo/UBERON_0002102"
pred: "is_a"
Expand Down
Loading

0 comments on commit 3e09271

Please sign in to comment.