A set of SPARQL examples that are used in different SIB resources
Domains that are entirely covered by 3D structures
PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?domlabel WHERE {
?entry :isoform ?isoform.
?isoform :pdbMapping ?struc.
?struc :start ?s1 ; :end ?s2.
?isoform :domain ?dom.
?dom :start ?d1 ; :end ?d2.
?dom :term/rdfs:label ?domlabel
filter ((?s1 <= ?d1) && (?s2 >= ?d2))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?d1")
v4("?d2")
v8("?dom")
v9("?domlabel"):::projected
v5("?entry")
v6("?isoform")
v1("?s1")
v3("?s2")
v7("?struc")
a1((" "))
f0[["?s1 <= ?d1?s2 >= ?d2"]]
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> v4
v5 --":isoform"--> v6
v6 --":pdbMapping"--> v7
v7 --":start"--> v1
v7 --":end"--> v3
v6 --":domain"--> v8
v8 --":start"--> v2
v8 --":end"--> v4
v8 --":term"--> a1
a1 --"rdfs:label"--> v9