A set of SPARQL examples that are used in different SIB resources
Glycosylation sites from GlyConnect
PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX source: <http://nextprot.org/rdf/source/>
SELECT DISTINCT ?entry ?iso ?pos ?comment WHERE {
?entry :isoform ?iso.
?iso :swissprotDisplayed true .
?iso :glycosylationSite ?glyco.
?glyco :evidence / :assignedBy source:GlyConnect.
?glyco rdfs:comment ?comment.
?glyco :start ?pos.
} order by ?entry
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?comment"):::projected
v1("?entry"):::projected
v3("?glyco")
v2("?iso"):::projected
v5("?pos"):::projected
a1((" "))
c3(["true^^xsd:boolean"]):::literal
c7([":source/GlyConnect"]):::iri
v1 --":isoform"--> v2
v2 --":swissprotDisplayed"--> c3
v2 --":glycosylationSite"--> v3
v3 --":evidence"--> a1
a1 --":assignedBy"--> c7
v3 --"rdfs:comment"--> v4
v3 --":start"--> v5