@@ -91,7 +91,8 @@ map:pharmgxGeneSymbol a d2rq:PropertyBridge;
9191 d2rq:belongsToClassMap map:FDAPharmgxTable;
9292 d2rq:property linkedspls_vocabulary:HGNCGeneSymbol;
9393 d2rq:join " FDAPharmgxTable.biomarker => FDAPharmgxTableToOntologyMap.HGNCGeneSymbol" ;
94- d2rq:uriSqlExpression " CONCAT('http://bio2rdf.org/hugo:', FDAPharmgxTableToOntologyMap.HGNCGeneSymbol)" ;
94+ # d2rq:uriSqlExpression "CONCAT('http://bio2rdf.org/hugo:', FDAPharmgxTableToOntologyMap.HGNCGeneSymbol)"; ## contains whitespace
95+ d2rq:column " FDAPharmgxTableToOntologyMap.HGNCGeneSymbol" ;
9596 d2rq:propertyDefinitionLabel " HGNCGeneSymbol" @en;
9697 d2rq:propertyDefinitionComment " The official gene symbol from the HUGO Gene Nomenclature Committee (HGNC) <www.genenames.org/> for a string that the FDA provides for the biomarker in its pharmacogenomic biomarker table <http://www.fda.gov/Drugs/ScienceResearch/ResearchAreas/Pharmacogenetics/ucm083378.htm>" @en;
9798 .
@@ -109,29 +110,31 @@ map:pharmgxPharmgkb a d2rq:PropertyBridge;
109110 d2rq:belongsToClassMap map:FDAPharmgxTable;
110111 d2rq:property foaf:homepage;
111112 d2rq:join " FDAPharmgxTable.biomarker => FDAPharmgxTableToOntologyMap.HGNCGeneSymbol" ;
112- d2rq:uriSqlExpression " CONCAT('http://pharmgkb.org/gene/', FDAPharmgxTableToOntologyMap.Pharmgkb)" ;
113+ d2rq:uriSqlExpression " CONCAT('http://pharmgkb.org/gene/', FDAPharmgxTableToOntologyMap.Pharmgkb)" ; # # there are empty value in Pharmgkb mapping
114+ # d2rq:sqlExpression "CONCAT('http://pharmgkb.org/gene/', FDAPharmgxTableToOntologyMap.Pharmgkb)";
113115 .
114116
115117map:pharmgxBio2rdf a d2rq:PropertyBridge;
116118 d2rq:belongsToClassMap map:FDAPharmgxTable;
117119 d2rq:property linkedspls_vocabulary:pharmgxXref;
118120 d2rq:join " FDAPharmgxTable.biomarker => FDAPharmgxTableToOntologyMap.HGNCGeneSymbol" ;
119- d2rq:uriSqlExpression " CONCAT('http://bio2rdf.org/pharmgkb:', FDAPharmgxTableToOntologyMap.Pharmgkb)" ;
121+ d2rq:uriSqlExpression " CONCAT('http://bio2rdf.org/pharmgkb:', FDAPharmgxTableToOntologyMap.Pharmgkb)" ; # # there are empty value in Pharmgkb mapping
122+ # d2rq:sqlExpression "CONCAT('http://bio2rdf.org/pharmgkb:', FDAPharmgxTableToOntologyMap.Pharmgkb)";
120123 d2rq:propertyDefinitionLabel " pharmgxXref" @en;
121124 d2rq:propertyDefinitionComment " A URI that links a biomarker present in the FDA pharmacogenomic biomarker table <http://www.fda.gov/Drugs/ScienceResearch/ResearchAreas/Pharmacogenetics/ucm083378.htm> to an external Semantic Web source" @en;
122125 .
123126
124127map:pharmgxPRoEntity a d2rq:PropertyBridge;
125128 d2rq:belongsToClassMap map:FDAPharmgxTable;
126129 d2rq:property owl:sameAs;
127- d2rq:join " FDAPharmgxTable.biomarker => FDAPharmgxTableToOntologyMap.HGNCGeneSymbol" ;
130+ d2rq:join " FDAPharmgxTable.biomarker => FDAPharmgxTableToOntologyMap.HGNCGeneSymbol" ;
128131 d2rq:uriColumn " FDAPharmgxTableToOntologyMap.URI" ;
129132 .
130133
131134map:pharmgxComment a d2rq:PropertyBridge;
132135 d2rq:belongsToClassMap map:FDAPharmgxTable;
133136 d2rq:property rdfs:comment;
134- d2rq:join " FDAPharmgxTable.biomarker => FDAPharmgxTableToOntologyMap.HGNCGeneSymbol" ;
137+ d2rq:join " FDAPharmgxTable.biomarker => FDAPharmgxTableToOntologyMap.HGNCGeneSymbol" ;
135138 d2rq:column " FDAPharmgxTableToOntologyMap.CuratorComments" ;
136139 .
137140
@@ -146,7 +149,7 @@ map:pharmgxActiveMoiety a d2rq:PropertyBridge;
146149map:pharmgxTherAppl a d2rq:PropertyBridge;
147150 d2rq:belongsToClassMap map:FDAPharmgxTable;
148151 d2rq:property linkedspls_vocabulary:therapeuticApplication;
149- d2rq:uriColumn " FDAPharmgxTable.therapeuticApplication" ;
152+ d2rq:column " FDAPharmgxTable.therapeuticApplication" ;
150153 d2rq:translateWith map:pharmgxTherAppTranslate;
151154 d2rq:propertyDefinitionLabel " therapeuticApplication" @en;
152155 d2rq:propertyDefinitionComment " The therapeutic application that the FDA provides in its pharmacogenomic biomarker table <http://www.fda.gov/Drugs/ScienceResearch/ResearchAreas/Pharmacogenetics/ucm083378.htm>" @en;
@@ -156,7 +159,7 @@ map:pharmgxRxCuiActiveMoiety a d2rq:PropertyBridge;
156159 d2rq:belongsToClassMap map:FDAPharmgxTable;
157160 d2rq:property linkedspls_vocabulary:activeMoietyRxCUI;
158161 d2rq:join " FDAPharmgxTable.activeMoiety <= FDAPreferredSubstanceToRxNORM.PreferredSubstance" ;
159- d2rq:uriColumn " FDAPreferredSubstanceToRxNORM.RxNORM" ;
162+ d2rq:uriSqlExpression " CONCAT('http://purl.bioontology.org/ontology/RXNORM/', CAST( FDAPreferredSubstanceToRxNORM.RxNORM AS CHAR)) " ;
160163 .
161164
162165map:pharmgxSetId a d2rq:PropertyBridge;
@@ -168,7 +171,7 @@ map:pharmgxSetId a d2rq:PropertyBridge;
168171map:pharmgxSection a d2rq:PropertyBridge;
169172 d2rq:belongsToClassMap map:FDAPharmgxTable;
170173 d2rq:property linkedspls_vocabulary:pharmgxSPLSection;
171- d2rq:uriColumn " FDAPharmgxTable.SPLSection" ;
174+ d2rq:column " FDAPharmgxTable.SPLSection" ;
172175 d2rq:translateWith map:pharmgxSectionTranslate;
173176 .
174177
@@ -348,8 +351,8 @@ map:routeOfAdministration a d2rq:PropertyBridge;
348351 d2rq:belongsToClassMap map:structuredProductLabelMetadata;
349352 d2rq:property linkedspls_vocabulary:routeOfAdministration;
350353
351- # d2rq:uriPattern "routeOfAdministration/@@ structuredProductLabelMetadata.routeOfAdministration|urlify@@";
352- d2rq:uriSqlExpression " CONCAT('http://bio2rdf.org/linkedspls_vocabulary:routeOfAdministration#', structuredProductLabelMetadata.routeOfAdministration) " ;
354+ # d2rq:uriSqlExpression "CONCAT('http://bio2rdf.org/linkedspls_vocabulary:routeOfAdministration#', structuredProductLabelMetadata.routeOfAdministration)"; ## white space in column routeOfAdministration
355+ d2rq:column " structuredProductLabelMetadata.routeOfAdministration" ;
353356 d2rq:propertyDefinitionLabel " routeOfAdministration" @en;
354357 d2rq:propertyDefinitionComment " The route by which a drug product is taken into the body" @en;
355358 .
0 commit comments