A set of SPARQL examples that are used in different SIB resources
Proteins with experimentally determined lengthy alpha-helices (> 75 aa)
PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?entry (str(?gen) as ?gene) ?hlen WHERE {
?entry :isoform ?iso.
?entry :gene / :recommendedName / rdfs:label ?gen.
?iso :helix ?hel .
?hel :start ?s; :end ?e .
bind((?e - ?s + 1) as ?hlen )
filter(?hlen > 75)
}
order by desc(?hlen)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?e")
v2("?entry"):::projected
v4("?gen"):::projected
v8("?gene")
v5("?hel")
v8("?hlen"):::projected
v3("?iso")
v6("?s")
a1((" "))
a2((" "))
f0[["?hlen > '75^^xsd:integer'"]]
f0 --> v8
v2 --":isoform"--> v3
v2 --":gene"--> a1
a1 --":recommendedName"--> a2
a2 --"rdfs:label"--> v4
v3 --":helix"--> v5
v5 --":start"--> v6
v5 --":end"--> v7
bind1[/"?e - ?s + '1^^xsd:integer'"/]
v7 --o bind1
v6 --o bind1
bind1 --as--o v8
bind2[/"str(?gen)"/]
v4 --o bind2
bind2 --as--o v8