-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Issue with the GetInteractions api call for pathways.
When testing, Peter noticed that especially on Reactome pathways only the metabolites were being returned and not the Reactome complex IDs. As a result, the GetInteractions call was only returning interactions that were connected to the metabolites in the pathway tested.
pathway used - Pathway being tested (WP2704)
The data loaded should be the same that is on the WP SPARQL endpoint. It is probably not a data problem. Looking at the documentation for the call, I think the issue is with the SPARQL query used. I am hoping it is as simple as fixing the query.
For reference I have included a query that works on the WP endpoint and I think solves the above issue. Any feedback is appreciated.
http://sparql.wikipathways.org/
PREFIX wp: <http://vocabularies.wikipathways.org/wp#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT DISTINCT ?pathway ?interaction ?target ?source
WHERE {
?pathway a wp:Pathway .
?pathway dc:identifier <http://identifiers.org/wikipathways/WP2704> .
?interaction dcterms:isPartOf ?pathway .
?interaction a wp:Interaction .
?interaction wp:target ?target .
?interaction wp:source ?source .
}