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_00074

Proteins belonging to a family with at least two members in the human proteome

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :familyName / :term ?ac.
 ?member :familyName / :term ?ac.
} group by ?entry having (count(distinct ?member) >= 2 )
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v4("?_anon_aaf95e3c346c4c97af230d5bcfeba8ab3700")
  v2("?ac")
  v1("?entry"):::projected 
  v3("?member")
  a2((" "))
  a3((" "))
  a1((" "))
  f0[[" >= '2^^xsd:integer'"]]
  f0 --> a1
  v1 --":familyName"-->  a2
  a2 --":term"-->  v2
  v3 --":familyName"-->  a3
  a3 --":term"-->  v2
  bind2[/"count(?member)"/]
  v3 --o bind2
  bind2 --as--o v4