Skip to content

Commit 69841d0

Browse files
committed
Hacky short term solution for INCATools/ontology-access-kit#427
1 parent 3132bce commit 69841d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/ncbo2owl.pl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/perl -np
2+
# See: https://github.com/INCATools/ontology-access-kit/issues/427
3+
s@skos:prefLabel @rdfs:label @;
4+
s@<http://purl.bioontology.org/ontology/\w+/isa> @rdfs:subClassOf @;
5+
s@umls:cui """(\w+)"""\^\^xsd:string@skos:exactMatch umls:$1@;
6+
s@umls:cui """(\w+)"""\^\^xsd:string@skos:exactMatch umls:$1@;
7+
s@(<http://purl.bioontology.org/ontology/RXNORM/(has_ingredient|consists_of|has_dose_form|tradename_of)>) (<http://purl.bioontology.org/ontology/RXNORM/\d+>)@rdfs:subClassOf [a owl:Restriction; owl:onProperty $1; owl:someValuesFrom $3]@;

0 commit comments

Comments
 (0)