A set of SPARQL examples that are used in different SIB resources
Proteins located on chromosome 2 and having at least one variant in a phosphorylated tyrosine
PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?entry WHERE {
?entry :gene / :chromosome "2"^^xsd:string .
?entry :isoform ?iso.
?iso :variant /:start ?varpos.
?iso :modifiedResidue ?modres.
?modres :term nextprot_cv:PTM-0255.
?modres :start ?varpos.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?entry"):::projected
v2("?iso")
v4("?modres")
v3("?varpos")
a1((" "))
a2((" "))
c3(["2"]):::literal
c9([":terminology/PTM-0255"]):::iri
v1 --":gene"--> a1
a1 --":chromosome"--> c3
v1 --":isoform"--> v2
v2 --":variant"--> a2
a2 --":start"--> v3
v2 --":modifiedResidue"--> v4
v4 --":term"--> c9
v4 --":start"--> v3