Last active
December 8, 2016 15:33
-
-
Save CicoZhang/94479ef300a19ac6c01714f8eb25a14d to your computer and use it in GitHub Desktop.
SWAT4LS 2016 Hackathon ID-mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Federated Query that runs on Disgenet SPARQL endpoint - http://rdf.disgenet.org/sparql/ | |
#(takes genes associated with Alzheimer’s Disease and returns a list of pathways) | |
#(current query only has NCBI genes, have to accommodate the IMS to return all potential #alternative URI conventions.) | |
PREFIX wp: <http://vocabularies.wikipathways.org/wp#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
SELECT DISTINCT ?gene | |
str(?geneName) as ?name | |
?score | |
?pathway | |
WHERE { | |
?gda sio:SIO_000628 ?gene,?disease ; | |
sio:SIO_000216 ?scoreIRI . | |
?gene rdf:type ncit:C16612 ; | |
dcterms:title ?geneName . | |
?disease rdf:type ncit:C7057 ; | |
dcterms:title "Alzheimer's Disease"@en . | |
?scoreIRI sio:SIO_000300 ?score . | |
FILTER (?score > "0.29"^^xsd:decimal) | |
SERVICE <http://sparql.wikipathways.org/> | |
{ | |
?gene a wp:GeneProduct . | |
?gene dcterms:isPartOf ?pathway . | |
?pathway a wp:Pathway . | |
} | |
} | |
ORDER BY DESC(?score) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment