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_00032

Proteins with a coiled coil region and that are involved in transcription but do not contain a bZIP domain

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :function ?func .
 ?func :term / :childOf nextprot_cv:GO_0006351. # Transcription
 filter not exists {?func :negativeEvidence ?negev. } # no negative evidence
 ?iso :region/rdf:type :CoiledCoilRegion.
 filter not exists { ?iso :region/:term nextprot_cv:DO-00078 } # Bzip domain
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v4("?entry"):::projected 
  v2("?func")
  v1("?iso")
  v3("?negev")
  a2((" "))
  a3((" "))
  a1((" "))
  c3([":terminology/DO-00078"]):::iri 
  c10([":CoiledCoilRegion"]):::iri 
  c8([":terminology/GO_0006351"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --":region"-->  e0a1
    e0a1 --":term"-->  e0c3
    e0v1("?iso"):::projected 
    e0a1((" ")):::projected 
    e0c3([":terminology/DO-00078"]):::iri 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> a1
  f0 --> c2
  f0 --> c3
  v1 --":region"-->  a1
  a1 --":term"-->  c3
  f1[["not  "]]
  subgraph f1e1["Exists Clause"]
    e1v1 --":negativeEvidence"-->  e1v2
    e1v1("?func"):::projected 
    e1v2("?negev"):::projected 
  end
  f1--EXISTS--> f1e1
  f1 --> v2
  f1 --> c4
  f1 --> v3
  v2 --":negativeEvidence"-->  v3
  v4 --":isoform"-->  v1
  v1 --":function"-->  v2
  v2 --":term"-->  a2
  a2 --":childOf"-->  c8
  v1 --":region"-->  a3
  a3 --"a"-->  c10