Skip to content

Commit

Permalink
Hacky short term solution for INCATools/ontology-access-kit#427
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Jan 4, 2023
1 parent 3132bce commit 69841d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/ncbo2owl.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/perl -np
# See: https://github.com/INCATools/ontology-access-kit/issues/427
s@skos:prefLabel @rdfs:label @;
s@<http://purl.bioontology.org/ontology/\w+/isa> @rdfs:subClassOf @;
s@umls:cui """(\w+)"""\^\^xsd:string@skos:exactMatch umls:$1@;
s@umls:cui """(\w+)"""\^\^xsd:string@skos:exactMatch umls:$1@;
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 comments on commit 69841d0

Please sign in to comment.