From ddf7e1971b626ecbaea5d0f3d92f59550c5ca3ea Mon Sep 17 00:00:00 2001 From: Stephen Ramsey Date: Thu, 2 Jul 2020 14:26:54 -0700 Subject: [PATCH] RTX KG2 issues 520, 747, 777 --- umls2rdf.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/umls2rdf.py b/umls2rdf.py index a3b4b36..ce30627 100755 --- a/umls2rdf.py +++ b/umls2rdf.py @@ -17,8 +17,8 @@ @prefix owl: . @prefix rdfs: . @prefix xsd: . -@prefix umls: . -@prefix UMLSSC: . +@prefix UMLS: . +@prefix UMLS_STY: . """ @@ -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 @@ -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")