sparql-examples

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

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

44

rq turtle/ttl

Find the Rhea and InterPro combinations in UniProtKB entries.

Use at

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>

SELECT 
    ?interpro
	?rhea
FROM <http://sparql.uniprot.org/uniprot>
WHERE 
{
  ?protein up:reviewed true .
  ?protein up:annotation ?annotation .
  ?annotation up:catalyticActivity ?rhea .
  ?protein rdfs:seeAlso ?interpro .
  ?interpro up:database <http://purl.uniprot.org/database/InterPro> .
} ORDER BY ?rhea
up:reviewed
up:annotation
up:catalyticActivity
rdfs:seeAlso
up:database
?annotation
?interpro
?protein
?rhea
true^^xsd:boolean
http://purl.uniprot.org/database/InterPro