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_09699

Check there are no entries with GO biological process annotations with the GO qualifier contributes_to

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