A set of SPARQL examples that are used in different SIB resources
Check there are no entries with GO cellular component annotations with the GO qualifier contributes_to
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct ?entry where {
?entry :isoform ?iso.
?iso :goCellularComponent ?gocc.
?gocc rdfs:comment ?txt.
filter (regex(?txt, "^Contributes to"@en))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v4("?gocc")
v3("?iso")
v1("?txt")
f0[["regex(?txt,s^Contributes to^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>')"]]
f0 --> v1
v2 --":isoform"--> v3
v3 --":goCellularComponent"--> v4
v4 --"rdfs:comment"--> v1