A set of SPARQL examples that are used in different SIB resources
Proteins with a gene name that starts with "CLDN"
PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?entry WHERE {
?entry :gene / :name / rdfs:label ?name.
filter (regex(?name, "^CLDN"@en))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v1("?name")
a1((" "))
a2((" "))
f0[["regex(?name,s^CLDN^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>')"]]
f0 --> v1
v2 --":gene"--> a1
a1 --":name"--> a2
a2 --"rdfs:label"--> v1