Skip to content

Commit

Permalink
RTX KG2 issues 520, 747, 777
Browse files Browse the repository at this point in the history
  • Loading branch information
saramsey committed Jul 2, 2020
1 parent 91fbc8d commit ddf7e19
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions umls2rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix umls: <http://purl.bioontology.org/ontology/> .
@prefix UMLSSC: <http://purl.bioontology.org/ontology/STY/> .
@prefix UMLS: <https://identifiers.org/umls:> .
@prefix UMLS_STY: <http://purl.bioontology.org/ontology/STY/> .
"""

Expand All @@ -28,15 +28,15 @@
rdfs:comment "$comment" ;
rdfs:label "$label" ;
owl:versionInfo "$versioninfo" ;
umls:sver "$sver" .
UMLS:sver "$sver" .
""")

STY_URL = "http://purl.bioontology.org/ontology/STY/"
HAS_STY = "UMLSSC:hasSTY"
HAS_AUI = "umls:aui"
HAS_CUI = "umls:cui"
HAS_TUI = "umls:STY"
HAS_STY = "UMLS:has_sty"
HAS_AUI = "UMLS:has_aui"
HAS_CUI = "UMLS:has_cui"
HAS_TUI = "UMLS:has_tui"

MRCONSO_CODE = 13
MRCONSO_AUI = 7
Expand Down Expand Up @@ -726,7 +726,7 @@ def write_semantic_types(self, sem_types, fout):

semtypes_ontology_stmt_ttl = """<%s>
a owl:Ontology ;
umls:sver "%s" .""" % (STY_URL, conf.UMLS_VERSION)
UMLS:sver "%s" .""" % (STY_URL, conf.UMLS_VERSION)

sem_types = generate_semantic_types(con, with_roots=True)
output_file = os.path.join(conf.OUTPUT_FOLDER, "umls-semantictypes.ttl")
Expand Down

0 comments on commit ddf7e19

Please sign in to comment.