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_00073

Proteins with no known (annotated) domain

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT ?entry WHERE {
 ?entry a :Entry.
 filter not exists { ?entry :isoform / :region/rdf:type :Domain}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  a1((" "))
  a2((" "))
  c5([":Entry"]):::iri 
  c4([":Domain"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --":isoform"-->  e0a1
    e0a1 --":region"-->  e0a2
    e0a2 --"a"-->  e0c4
    e0v1("?entry"):::projected 
    e0a1((" ")):::projected 
    e0a2((" ")):::projected 
    e0c4([":Domain"]):::iri 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> a1
  f0 --> c2
  f0 --> a2
  f0 --> c3
  f0 --> c4
  v1 --":isoform"-->  a1
  a1 --":region"-->  a2
  a2 --"a"-->  c4
  v1 --"a"-->  c5