A set of SPARQL examples that are used in different SIB resources
KEGG and Reactome pathway names
PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX source: <http://nextprot.org/rdf/source/>
SELECT DISTINCT ?src (str(?pathwayname) as ?pw) WHERE {
?entry :isoform / :pathway ?pathannot .
?pathannot rdfs:comment ?pathwayname; :evidence / :assignedBy ?src.
filter(?src = source:Reactome || ?src = source:KEGG_PTW)
} order by ?pathwayname
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?entry")
v4("?pathannot")
v1("?pathwayname"):::projected
v5("?pw")
v2("?src"):::projected
a1((" "))
a2((" "))
f0[["(?src = ':source/Reactome' || ?src = ':source/KEGG_PTW')"]]
f0 --> v2
v3 --":isoform"--> a1
a1 --":pathway"--> v4
v4 --"rdfs:comment"--> v1
v4 --":evidence"--> a2
a2 --":assignedBy"--> v2
bind1[/"str(?pathwayname)"/]
v1 --o bind1
bind1 --as--o v5