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_00019

Proteins with more than 12 WD repeats (ie: with at least two beta-propellers)

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 {select ?iso where{
 ?iso :repeat ?rep. ?rep :term nextprot_cv:DO-00722
 }
 group by ?iso having(count( ?rep) > 12)}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v4("?_anon_aaf95e3c346c4c97af230d5bcfeba8ab2249")
  v1("?entry"):::projected 
  v2("?iso")
  v3("?rep")
  a1((" "))
  c5([":terminology/DO-00722"]):::iri 
  v1 --":isoform"-->  v2
  f0[[" > '12^^xsd:integer'"]]
  f0 --> a1
  v2 --":repeat"-->  v3
  v3 --":term"-->  c5
  bind2[/"count(?rep)"/]
  v3 --o bind2
  bind2 --as--o v4