- From: Anders Riutta <anders.riutta@gladstone.ucsf.edu>
- Date: Thu, 1 May 2014 14:17:37 -0700 (PDT)
- To: Linked JSON <public-linked-json@w3.org>
- Message-ID: <670622190.1559529.1398979057187.JavaMail.zimbra@gladstone.ucsf.edu>
Hello,
I'm converting biological pathway data from XML to JSON-LD, and a challenge has come up where I need to create a UNION between two @ids.
My source data has a term "transcription-translation" that can mean either transcription or translation. I'm mapping the data to an ontology that contains an @id for transcription <identifiers.org/biomodels.sbo/SBO:0000183> and an @id for translation <identifiers.org/biomodels.sbo/SBO:0000184>. To represent this data, I think something like this is best, but I'd appreciate any suggestions on a better way to do it with JSON-LD:
{
"@context": {
"@base": "http://identifiers.org/wikipathways/",
"owl": "http://www.w3.org/2002/07/owl#",
"biopax": "http://www.biopax.org/release/biopax-level3.owl#",
"Interaction": "biopax:Interaction",
"interactionType": "biopax:interactionType",
"SBO": "http://identifiers.org/biomodels.sbo/SBO:",
"transcription-translation": {
"@id": "http://discover.nci.nih.gov/mim/transcription-translation",
"@value": {
"owl:unionOf": ["SBO:0000183", "SBO:0000184"]
}
}
},
"@id": "WP525",
"@graph": [{
"@id": "sdn602",
"@type": ["Interaction"],
"interactionType": "transcription-translation"
}]
}
(Playground link: http://json-ld.org/playground/index.html#startTab=tab-expanded&json-ld=%7B%22%40context%22%3A%7B%22%40base%22%3A%22http%3A%2F%2Fwikipathways.org%2Findex.php%2FPathway%3A%22%2C%22owl%22%3A%22http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%22%2C%22Interaction%22%3A%22http%3A%2F%2Fwww.biopax.org%2Frelease%2Fbiopax-level3.owl%23Interaction%22%2C%22SBO%22%3A%22http%3A%2F%2Fidentifiers.org%2Fbiomodels.sbo%2FSBO%3A%22%2C%22transcription-translation%22%3A%7B%22%40id%22%3A%22http%3A%2F%2Fdiscover.nci.nih.gov%2Fmim%2Ftranscription-translation%22%2C%22%40value%22%3A%7B%22owl%3AunionOf%22%3A%5B%22SBO%3A0000183%22%2C%22SBO%3A0000184%22%5D%7D%7D%7D%2C%22elements%22%3A%5B%7B%22%40id%22%3A%22WP525%22%2C%22%40type%22%3A%5B%22Interaction%22%5D%2C%22interactionType%22%3A%22transcription-translation%22%7D%5D%7D )
If the ontology I'm using had a parent @id that only referred to transcription and translation, I could just use that parent @id, but in this case, the parent has four children, and I only want to refer to two of them.
Thanks.
Anders Riutta
Gladstone Institutes
Received on Thursday, 1 May 2014 21:18:01 UTC