-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotations on xref annotation assertions are not serialized in json #44
Comments
We need to start acting on this. What about: {
"id": "http://purl.obolibrary.org/obo/MONDO_0014957",
"meta": {
"xrefs": [
{
"val": "OMIM:617182",
"annotations": [
{
"pred": "oboInOwl:source",
"val": "OMIM:617182"
},
{
"pred": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"val": "https://github.com/monarch-initiative/mondo/issues/1623"
}
]
},
{
"val": "UMLS:C4310678"
}
],
"synonyms": [
{
"pred": "hasExactSynonym",
"val": "language delay and attention Deficit-hyperactivity disorder/cognitive impairment with or without Cardiac arrhythmia",
"xrefs": [
"OMIM:617182"
],
"annotations": [
{
"pred": "oboInOwl:source",
"val": "OMIM:617182"
},
{
"pred": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"val": "https://github.com/monarch-initiative/mondo/issues/1623"
}
]
},
{
"pred": "hasExactSynonym",
"val": "LADCI",
"xrefs": [
"MONDOLEX:0014957",
"OMIM:617182"
],
"synonymType": "http://purl.obolibrary.org/obo/mondo#ABBREVIATION"
}
],
"basicPropertyValues": [
{
"pred": "http://www.w3.org/2004/02/skos/core#exactMatch",
"val": "http://linkedlifedata.com/resource/umls/id/C4310678",
"annotations": [
{
"pred": "oboInOwl:source",
"val": "OMIM:617182"
},
{
"pred": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"val": "https://github.com/monarch-initiative/mondo/issues/1623"
}
]
},
{
"pred": "http://www.w3.org/2004/02/skos/core#exactMatch",
"val": "https://omim.org/entry/617182"
}
]
},
"type": "CLASS",
"lbl": "language delay and attention deficit-hyperactivity disorder/cognitive impairment with or without cardiac arrhythmia"
} |
I realize id: X:1
xref: X:2 {source="X:3"} to nodes:
- id: X:1
meta:
xrefs:
- val: X:2
meta:
basicPropertyValues:
pred: oboInOwl:source
val: X:3 While I don't love the excessive nesting here, this is consistent with the composition-over-inheritance design of obographs dating back to <2015. The basic principle is that (owl) annotations go on a Note this design allows for arbitrary Nth order annotations. I think nesting any more than the above would be an anti-pattern. However, others in the OBO community have expressed a desire to do this, and OWL allows it, so the genericity buys us something here |
Can you carefully check that this is what you mean? {
"id": "http://purl.obolibrary.org/obo/MONDO_0014957",
"meta": {
"xrefs": [
{
"val": "OMIM:617182",
"meta": {
"basicPropertyValues": [
{
"pred": "oboInOwl:source",
"val": "OMIM:617182"
},
{
"pred": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"val": "https://github.com/monarch-initiative/mondo/issues/1623"
}
]
}
},
{
"val": "UMLS:C4310678"
}
],
"synonyms": [
{
"pred": "hasExactSynonym",
"val": "language delay and attention Deficit-hyperactivity disorder/cognitive impairment with or without Cardiac arrhythmia",
"xrefs": [
"OMIM:617182"
],
"meta": {
"basicPropertyValues": [
{
"pred": "oboInOwl:source",
"val": "OMIM:617182"
},
{
"pred": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"val": "https://github.com/monarch-initiative/mondo/issues/1623"
}
]
}
},
{
"pred": "hasExactSynonym",
"val": "LADCI",
"xrefs": [
"MONDOLEX:0014957",
"OMIM:617182"
],
"synonymType": "http://purl.obolibrary.org/obo/mondo#ABBREVIATION"
}
],
"basicPropertyValues": [
{
"pred": "http://www.w3.org/2004/02/skos/core#exactMatch",
"val": "http://linkedlifedata.com/resource/umls/id/C4310678",
"meta": {
"basicPropertyValues": [
{
"pred": "oboInOwl:source",
"val": "OMIM:617182"
},
{
"pred": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"val": "https://github.com/monarch-initiative/mondo/issues/1623"
}
]
}
},
{
"pred": "http://www.w3.org/2004/02/skos/core#exactMatch",
"val": "https://omim.org/entry/617182"
}
]
},
"type": "CLASS",
"lbl": "language delay and attention deficit-hyperactivity disorder/cognitive impairment with or without cardiac arrhythmia"
} |
yes! |
Related to #97, what are the prefix definitions for Presumably the fully qualified URIs do not require a prefix definition as they are complete. But otherwise, is it possible that any field of a |
Carried over from monarch-initiative/mondo#753
test case
produces:
loses
source
The text was updated successfully, but these errors were encountered: