Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Result of running `ontload uri-switch NIF-Ontology` (in ttl/) from pyontutils at commit 53f5e7a41b8500fe4639d860f1d2419fe5048492. All the changes are documented in ttl/generated/NIF-NIFSTD-mapping.ttl using owl:sameAs to map from the new uri to the old iri. Almost all changes are the result of placing the fragment portion of the old http://ontology.neuinfo.org/NIF/ identifiers in the new resolver namespace http://uri.neuinfo.org/nif/nifstd/. Changes not following this patter are as follows. 1. All sao- fragments have been converted to sao fragments, unifying the SAO namespace. 2. All 'readable' identifiers in the ontology have been placed in the new NIFRID -> http://uri.neuinfo.org/nif/nifstd/readable/ namespace. Almost all of these were in the backend, and/or were predicates that were used in a select few files. 3. All 'stolen' identifiers where a fragment from another ontology was placed in some nifstd namespace have been placed direcly under NIFSTD. 4. The following identifiers (aside from sao- mentioned above) had their fragments modified. NIFGA:FMAID_7191 -> NIFSTD:FMA_7191 NIFRES:Class_2 -> NLX:293 NIFSUB:nlx_sub_1008001 -> NLXSUB:1008001 NIFNCBISLIM:nif_organ_110519 -> NLXORG:110519 BIRNANN:_birnlex_limbo_class -> NIFRID:birnlexLimboClass BIRNANN:_birnlex_retired_class -> NIFRID:birnlexRetiredClass http://ontology.neuinfo.org/NIF/Backend/DC_Term -> NIFRID:dctermsClass http://ontology.neuinfo.org/NIF/Backend/SKOS_Entity -> NIFRID:skosClass http://ontology.neuinfo.org/NIF/Backend/_backend_class -> NIFRID:BackendClass A superset of these can be obtained using the following python commands run from inside the ttl/generated directory. ``` import rdflib g = rdflib.Graph().parse('NIF-NIFSTD-mapping.ttl', format='turtle') [(g.namespace_manager.qname(old), g.namespace_manager.qname(new)) for new, old in g.subject_objects(rdflib.OWL.sameAs) if 'sao-' not in old and new.rsplit('/', 1)[-1] != old.rsplit('#', 1)[-1]] ``` For the exact changes see uri_replacements and uri_reps_nonstandard in ontload.py or have a peek at ttl/generated/NIF-NIFSTD-mapping.ttl Please see ontload.py starting at line 386 through 648 for the details of the implementation. https://github.com/tgbugs/pyontutils/blob/53f5e7a41b8500fe4639d860f1d2419fe5048492/pyontutils/ontload.py#L386
- Loading branch information