A set of SPARQL examples that are used in different SIB resources
Pathway names
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct (str(?plab) as ?pathlab) ?src where
{
?entry :isoform / :pathway ?p.
?p :evidence / :assignedBy ?src .
filter(?src != source:Uniprot )
?p rdfs:comment ?plab.
}
order by ?plab
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?entry")
v4("?p")
v5("?pathlab")
v1("?plab"):::projected
v2("?src"):::projected
a1((" "))
a2((" "))
f0[["?src != ':source/Uniprot'"]]
f0 --> v2
v3 --":isoform"--> a1
a1 --":pathway"--> v4
v4 --":evidence"--> a2
a2 --":assignedBy"--> v2
v4 --"rdfs:comment"--> v1
bind1[/"str(?plab)"/]
v1 --o bind1
bind1 --as--o v5