sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

neXtProt/NXQ_09696

Check there are no entries with GO molecular function annotations with the GO qualifier colocalizes_with

Use at

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 :goMolecularFunction ?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 --":goMolecularFunction"-->  v4
  v4 --"rdfs:comment"-->  v1