#+ summary: We should add a summary. | |
#+ endpoint: "http://example.com/sparql" | |
PREFIX ov: <http://bio2rdf.org/openpredict_vocabulary:> | |
PREFIX dct: <http://purl.org/dc/terms/> | |
SELECT distinct ?diseaseid ?hpoid | |
WHERE{ | |
?drug ov:indication ?disease . | |
GRAPH <http://w3id.org/fairworkflows/dataset.openpredict.meshannot.R1> | |
{ | |
?disease <http://semanticscience.org/resource/SIO_000255> ?hpo . | |
BIND( STRAFTER(str(?disease),"http://bio2rdf.org/omim:") AS ?diseaseid) | |
BIND( STRAFTER(str(?hpo),"http://bio2rdf.org/") AS ?hpoid) | |
} | |
} |