Advertisement
LuciaPrieto

Untitled

Jun 21st, 2018
2,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 1.69 KB | None | 0 0
  1. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  2. PREFIX dcterms: <http://purl.org/dc/terms/>
  3. PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
  4. PREFIX sio: <http://semanticscience.org/resource/>
  5. PREFIX ncit: <http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#>
  6.        
  7. SELECT DISTINCT  
  8.     STR(?umlsID) AS ?umlsID
  9.     STR(?diseasename) AS ?diseasename
  10.     STR(?meshID) AS ?meshID
  11.     STR(?omimID) AS ?omimID
  12.     STR(?nciID) AS ?nciID
  13.     STR(?orphanetID) AS ?orphanetID
  14.     STR(?icd_9_cmID) AS ?icd_9_cmID
  15.        
  16.         WHERE {
  17.             ?disease a ncit:C7057, sio:SIO_010299;
  18.                       sio:SIO_000008 <http://purl.bioontology.org/ontology/STY/T047>;
  19.                       dcterms:identifier ?umlsID;
  20.                       dcterms:title ?diseasename
  21.             OPTIONAL {?disease skos:exactMatch ?mesh.
  22.                       FILTER REGEX (?mesh,"identifiers.org/mesh/").
  23.                       ?mesh dcterms:identifier ?meshID}
  24.             OPTIONAL {?disease skos:exactMatch ?omim.
  25.                       FILTER REGEX (?omim, "identifiers.org/omim/").
  26.                       ?omim dcterms:identifier ?omimID}
  27.             OPTIONAL {?disease skos:exactMatch ?ncit
  28.                       FILTER REGEX (?ncit,"identifiers.org/ncit/").
  29.                       ?ncit dcterms:identifier ?nciID}
  30.             OPTIONAL {?disease skos:exactMatch ?orpha
  31.                       FILTER REGEX (?orpha,"identifiers.org/orphanet/").
  32.                       ?orpha dcterms:identifier ?orphanetID}
  33.             OPTIONAL {?disease skos:exactMatch ?icd
  34.                       FILTER REGEX (?icd,"ontology/ICD9CM/").
  35.                       ?icd dcterms:identifier ?icd_9_cmID}
  36.  
  37.         }
  38.         ORDER BY (?umlsID)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement