Created
July 12, 2017 13:52
-
-
Save andrawaag/4a2753337b5069cf9bd7a0a93d944531 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#defaultView:Dimensions | |
PREFIX wp: <http://vocabularies.wikipathways.org/wp#> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX dc: <http://purl.org/dc/elements/1.1/> | |
SELECT DISTINCT ?metabolite1Label ?metabolite2Label ?mass1 ?mass2 WITH { | |
SELECT ?metabolite1 ?metabolite2 WHERE { | |
?pathwayItem wdt:P2410 "WP706"; | |
wdt:P2888 ?pwIri. | |
SERVICE <http://sparql.wikipathways.org/> { | |
?pathway dc:identifier ?pwIri. | |
?interaction rdf:type wp:Interaction; | |
wp:participants ?wpmb1, ?wpmb2; | |
dcterms:isPartOf ?pathway. | |
FILTER (?wpmb1 != ?wpmb2) | |
?wpmb1 wp:bdbWikidata ?metabolite1. | |
?wpmb2 wp:bdbWikidata ?metabolite2. | |
} | |
} | |
} AS %metabolites WHERE { | |
INCLUDE %metabolites. | |
?metabolite1 wdt:P2067 ?mass1. | |
?metabolite2 wdt:P2067 ?mass2. | |
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment