A set of SPARQL examples that are used in different SIB resources
Proteins with at least one homeobox domain and with at least one variant in the homeobox domain(s)
PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>
SELECT DISTINCT ?entry WHERE {
?entry :isoform ?iso.
# with >=1 homeobox domain
?iso :region ?st1.
?st1 :term nextprot_cv:DO-00312;:start ?start;:end ?end.
# with >=1 variant
?iso :variant ?var.
?var :start ?varpos.
# one variant in the homeobox domain
filter (?varpos >=?start && ?varpos <=?end)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?end")
v4("?entry"):::projected
v5("?iso")
v6("?st1")
v2("?start")
v7("?var")
v1("?varpos")
c4([":terminology/DO-00312"]):::iri
f0[["?varpos >= ?start?varpos <= ?end"]]
f0 --> v1
f0 --> v2
f0 --> v3
v4 --":isoform"--> v5
v5 --":region"--> v6
v6 --":term"--> c4
v6 --":start"--> v2
v6 --":end"--> v3
v5 --":variant"--> v7
v7 --":start"--> v1