A set of SPARQL examples that are used in different SIB resources
Check there are no entries with GO biological process annotations with the GO qualifier colocalizes_with
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 :goBiologicalProcess ?gomf.
?gomf rdfs:comment ?txt.
filter (regex(?txt, "^Colocalizes with"@en))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v4("?gomf")
v3("?iso")
v1("?txt")
f0[["regex(?txt,s^Colocalizes with^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>')"]]
f0 --> v1
v2 --":isoform"--> v3
v3 --":goBiologicalProcess"--> v4
v4 --"rdfs:comment"--> v1