Skip to content

Commit

Permalink
Inject ID for fixed query - geneontology/api-gorest#3
Browse files Browse the repository at this point in the history
  • Loading branch information
dustine32 committed Dec 17, 2021
1 parent 1224fee commit 5529def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queries/sparql-gp.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ module.exports = {
WHERE {
GRAPH ?gocam {
# Inject gene product ID here
?gene rdf:type <http://identifiers.org/rgd/1586460> .
?gene rdf:type <` + id + `> .
}
?gocam metago:graphType metago:noctuaCam .
?gocam dc:title ?title .
Expand All @@ -118,7 +118,7 @@ module.exports = {
?gpnode2 rdf:type ?gp2 .
?gpnode3 rdf:type ?gp3 .
# Inject gene product ID here
FILTER(?gp1 = <http://identifiers.org/rgd/1586460> || ?gp2 = <http://identifiers.org/rgd/1586460> || ?gp3 = <http://identifiers.org/rgd/1586460>)
FILTER(?gp1 = <` + id + `> || ?gp2 = <` + id + `> || ?gp3 = <` + id + `>)
}
FILTER EXISTS {
?ind1 rdf:type MF: .
Expand Down

0 comments on commit 5529def

Please sign in to comment.