A set of SPARQL examples that are used in different SIB resources
Proteins with one or more glycosylation sites reported in PubMed:20570859 or PubMed:14760718
PREFIX : <http://nextprot.org/rdf/>
PREFIX db: <http://nextprot.org/rdf/db/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?entry ?publications WHERE {
values ?pmid {"20570859"^^xsd:string "14760718"^^xsd:string}
# get all assertions from the publications
?entry :isoform/:glycosylationSite ?statement.
?statement :evidence/:reference/:from ?xref .
?xref :accession ?pmid ; :provenance db:PubMed .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v1("?pmid")
v3("?statement")
v4("?xref")
a1((" "))
a2((" "))
a3((" "))
c8([":db/PubMed"]):::iri
bind0[/VALUES ?pmid/]
bind0-->v1
bind00(["20570859"])
bind00 --> bind0
bind01(["14760718"])
bind01 --> bind0
v2 --":isoform"--> a1
a1 --":glycosylationSite"--> v3
v3 --":evidence"--> a2
a2 --":reference"--> a3
a3 --":from"--> v4
v4 --":accession"--> v1
v4 --":provenance"--> c8