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_09692

Check there are no entries with an interaction mapping annotation from ENYO with no publication in evidence

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>

select distinct ?entry where {
  ?entry :isoform /:interactionMapping ?int.
  ?int :evidence ?ev.
  ?ev :assignedBy source:ENYO.
  ?ev :reference ?ref.
  filter not exists {?ref a :Publication}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v4("?ev")
  v3("?int")
  v1("?ref")
  a1((" "))
  c2([":Publication"]):::iri 
  c7([":source/ENYO"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --"a"-->  e0c2
    e0v1("?ref"):::projected 
    e0c2([":Publication"]):::iri 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> c2
  v1 --"a"-->  c2
  v2 --":isoform"-->  a1
  a1 --":interactionMapping"-->  v3
  v3 --":evidence"-->  v4
  v4 --":assignedBy"-->  c7
  v4 --":reference"-->  v1