Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (31 loc) · 1.21 KB

NCBO_sparql_queries.MD

File metadata and controls

33 lines (31 loc) · 1.21 KB

NCBO SPARQL EndPoint

  • get root level ICD10 concepts mappings to UMLS CUIs
PREFIX owl:  <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT distinct ?s ?umls
FROM <http://bioportal.bioontology.org/ontologies/ICD10>
WHERE {
  ?s <http://bioportal.bioontology.org/ontologies/umls/cui> ?umls.
  ?s <http://bioportal.bioontology.org/ontologies/umls/isRoot> true.
}
  • sample ICD10 to UMLS mapping with label SPARQL query
PREFIX owl:  <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT distinct ?umls, ?label
FROM <http://bioportal.bioontology.org/ontologies/ICD10>
WHERE {
  <http://purl.bioontology.org/ontology/ICD10/A01> <http://bioportal.bioontology.org/ontologies/umls/cui> ?umls;
                                                   <http://www.w3.org/2004/02/skos/core#prefLabel> ?label.
  ?s <http://bioportal.bioontology.org/ontologies/umls/isRoot> true.
}
  • get HPO term to UMLS mapping using bioportal:
SELECT DISTINCT ?umls
WHERE {
  <http://purl.obolibrary.org/obo/HP_0003449> <http://www.geneontology.org/formats/oboInOWL#xref> ?umls
}