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_00111

Proteins with one transmembrane domain and no annotated topology

Use at

PREFIX : <http://nextprot.org/rdf/>

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :swissprotDisplayed true .
 ?iso :topology ?tm.
 ?tm a :TransmembraneRegion.
 filter (not exists { ?iso :topology ?topodom.
 ?topodom a :TopologicalDomain.
 })
} group by ?entry having (count( ?tm)=1)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v5("?_anon_aaf95e3c346c4c97af230d5bcfeba8ab2281")
  v3("?entry"):::projected 
  v1("?iso")
  v4("?tm")
  v2("?topodom")
  a1((" "))
  c7(["true^^xsd:boolean"]):::literal 
  c4([":TopologicalDomain"]):::iri 
  c8([":TransmembraneRegion"]):::iri 
  f0[[" = '1^^xsd:integer'"]]
  f0 --> a1
  f1[["not  "]]
  subgraph f1e0["Exists Clause"]
    e0v1 --":topology"-->  e0v2
    e0v2 --"a"-->  e0c3
    e0v1("?iso"):::projected 
    e0v2("?topodom"):::projected 
    e0c3([":TopologicalDomain"]):::iri 
  end
  f1--EXISTS--> f1e0
  f1 --> v1
  f1 --> c2
  f1 --> v2
  f1 --> c3
  f1 --> c4
  v1 --":topology"-->  v2
  v2 --"a"-->  c4
  v3 --":isoform"-->  v1
  v1 --":swissprotDisplayed"-->  c7
  v1 --":topology"-->  v4
  v4 --"a"-->  c8
  bind3[/"count(?tm)"/]
  v4 --o bind3
  bind3 --as--o v5