sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

14

Construct new triples of the type 'HumanProtein' from all human UniProtKB entries

Use at

PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX up: <http://purl.uniprot.org/core/>

CONSTRUCT
{
	?protein a up:HumanProtein .
}
WHERE
{
	?protein a up:Protein .
	?protein up:organism taxon:9606
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?_const_1a5f3447_uri"):::projected 
  v2("?_const_f5e5585a_uri"):::projected 
  v1("?protein"):::projected 
  c2(["up:Protein"]):::iri 
  c4(["taxon:9606"]):::iri 
  v1 --"a"-->  c2
  v1 --"up:organism"-->  c4
  bind0[/""a""/]
  bind0 --as--o v2
  bind1[/"'up:HumanProtein'"/]
  bind1 --as--o v3