A set of SPARQL examples that are used in different SIB resources
Proteins with a sequence containing "FF.QYE" where "." is any single amino-acid
PREFIX : <http://nextprot.org/rdf/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?entry WHERE {
?entry rdf:type :Entry.
?entry :isoform / :sequence / :chain ?chain.
filter ( regex(?chain, "FF.QYE") )
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?chain")
v2("?entry"):::projected
a1((" "))
a2((" "))
c3([":Entry"]):::iri
f0[["regex(?chain,'FF.QYE')"]]
f0 --> v1
v2 --"a"--> c3
v2 --":isoform"--> a1
a1 --":sequence"--> a2
a2 --":chain"--> v1