Skip to content

Commit

Permalink
uri-switch
Browse files Browse the repository at this point in the history
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
tgbugs committed Sep 12, 2017
1 parent 30efa65 commit b268a6b
Show file tree
Hide file tree
Showing 57 changed files with 111,639 additions and 91,732 deletions.
743 changes: 373 additions & 370 deletions ttl/BIRNLex-OBI-proxy.ttl

Large diffs are not rendered by default.

200 changes: 103 additions & 97 deletions ttl/BIRNLex-OBO-UBO.ttl

Large diffs are not rendered by default.

1,001 changes: 501 additions & 500 deletions ttl/BIRNLex_annotation_properties.ttl

Large diffs are not rendered by default.

61 changes: 32 additions & 29 deletions ttl/NIF-Annotation-Standard.ttl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@prefix : <file:///ERROR/EMPTY/PREFIX/BANNED/> .
@prefix NIFANN: <http://ontology.neuinfo.org/NIF/NIF-Annotation-Standard.owl#> .
@prefix NIFQUAL: <http://ontology.neuinfo.org/NIF/BiomaterialEntities/NIF-Quality.owl#> .
@prefix NIFRID: <http://uri.neuinfo.org/nif/nifstd/readable/> .
@prefix NIFUNCL: <http://ontology.neuinfo.org/NIF/BiomaterialEntities/NIF-Unclassified.owl#> .
@prefix NLX: <http://uri.neuinfo.org/nif/nifstd/nlx_> .
@prefix NLXQUAL: <http://uri.neuinfo.org/nif/nifstd/nlx_qual_> .
@prefix OBOANN: <http://ontology.neuinfo.org/NIF/Backend/OBO_annotation_properties.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand All @@ -18,67 +21,67 @@

### Classes

NIFANN:nlx_61768 a owl:Class ;
NLX:61768 a owl:Class ;
rdfs:label "NIF annotation standard for age classification"^^xsd:string ;
rdfs:subClassOf NIFANN:nlx_101055 .
rdfs:subClassOf NLX:101055 .

NIFANN:nlx_101055 a owl:Class ;
NLX:101055 a owl:Class ;
rdfs:label "NIF annotation standard"^^xsd:string ;
rdfs:subClassOf NIFUNCL:nlx_200905_396 ;
rdfs:subClassOf NLX:200905_396 ;
rdfs:comment "An annotation standard used to translate quantitative values into qualitative categories for the purposes search, e.g., Adult"^^xsd:string ;
owl:versionInfo "119552"^^xsd:string .

NIFANN:nlx_101066 a owl:Class ;
NLX:101066 a owl:Class ;
rdfs:label "NIF annotation standard for treatment type"^^xsd:string ;
rdfs:subClassOf NIFANN:nlx_101055 ;
rdfs:subClassOf NLX:101055 ;
owl:versionInfo "122370"^^xsd:string .

NIFANN:nlx_101069 a owl:Class ;
NLX:101069 a owl:Class ;
rdfs:label "Class with NIF Annotation Standard for Differential Expression role"^^xsd:string ;
OBOANN:synonym "NIF Annotation Standard for Differential Expression"^^xsd:string ;
rdfs:subClassOf NIFANN:nlx_101055 .
NIFRID:synonym "NIF Annotation Standard for Differential Expression"^^xsd:string ;
rdfs:subClassOf NLX:101055 .

NIFANN:nlx_101077 a owl:Class ;
NLX:101077 a owl:Class ;
rdfs:label "NIF annotation standard for differential expression"^^xsd:string ;
rdfs:subClassOf NIFANN:nlx_101055 ;
rdfs:subClassOf NLX:101055 ;
owl:versionInfo "135583"^^xsd:string .

### Annotations

NIFQUAL:nlx_66639 rdfs:subClassOf NIFANN:nlx_101069 .
NLX:66639 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_100810 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:100810 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_100811 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:100811 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_100812 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:100812 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_100813 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:100813 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_100814 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:100814 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_100815 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:100815 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_100816 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:100816 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_100817 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:100817 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010001 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010001 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010002 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010002 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010004 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010004 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010005 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010005 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010006 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010006 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010008 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010008 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010009 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010009 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010010 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010010 rdfs:subClassOf NLX:101069 .

NIFQUAL:nlx_qual_1010011 rdfs:subClassOf NIFANN:nlx_101069 .
NLXQUAL:1010011 rdfs:subClassOf NLX:101069 .

### Serialized using the nifstd custom serializer v1.0.7
Loading

0 comments on commit b268a6b

Please sign in to comment.