-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allen JSON structuregraph to OWL converter #9
Comments
@cmungall - This is to rewrite the original JSON -> OBO scripts. Presumably PERL so not worth reviving or reviewing. |
We could use https://linkml.io/linkml-owl/ for this - may seem overkill but IMO it keeps everything very explicit and declarative Do we want to keep our existing prefixes (and register them with bioregistry) or go with something like Note we have an open issue about the correspondence or lack of correspondence between the IDs in this JSON and everything that is public on the Allen site: obophenotype/uberon#1419 - do we also need some kind of annotation axioms in the ontology to make this all more transparent? In particular for HBA which seems to be the main issue |
I can also have Harshad implement this if you like |
re linkML approach - is the idea to use a schema mapping file that converts structureGraph JSON to OWL? Happy to go with that approach. I'm sure @hkir-dev would be interested to learn how & we should have more awareness/understanding of linkML in the group.
I no longer believe this is a problem - see comment on ticket. Although we should check diffs once we have new conversions, and it would be good if we could find some programatic way to check whether URLs rolled with ids from the structuregraphs resolve on the corresponding atlases in the mapping table. |
Two steps (1) map to the JSON to a formal schema (independent of OWL) (2) provide mappings in schema to OWL interpretations TODO: the solution of hardcoding a prefix for the integer id->iri is not ideal Addresses obophenotype/ABA_Uberon#9
Implementation completed using linkml-owl #12 |
Functional Spec:
JSON input
Other inputs:
ID prefix + mapping to base_iri, e.g. MBA
Each entry in the JSON becomes an OWL class:
"id": 567 --> id: MBA:567 ( = purl.obolibrary.org/obo/MBA_567)
name --> rdfs:label
"acronym": "CH" --> exact_synonym
"parent_structure_id": 8, --> part_of some MBA:8
All classes get
subClassOf: UBERON:0002616 # regional part of brain
Tech Spec:
Python processes JSON from Allen -> Robot templates. Simple Makefile controls ROBOT template build.
The text was updated successfully, but these errors were encountered: