@prefix ex: <https://sparql.uniprot.org/.well-known/sparql-examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:112_count_human_transporters a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Count the number of Human Transporter Proteins"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rh: <http://rdf.rhea-db.org/>
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX faldo: <http://biohackathon.org/resource/faldo#>

SELECT  
  (COUNT(DISTINCT ?protein) AS ?humanTransportEnzymes)
WHERE {
  GRAPH <http://sparql.uniprot.org/uniprot> {
    ?protein up:organism taxon:9606 ;
             up:annotation ?a .
    ?a a up:Catalytic_Activity_Annotation ;
      up:catalyticActivity ?ca .
    ?ca up:catalyzedReaction ?rhea .
  }
  GRAPH <https://sparql.rhea-db.org/rhea>{
  	?rhea rh:isTransport true .
  }
}""" ;
    schema:keywords "rhea", "transport", "enzyme" ;
    schema:target <https://sparql.uniprot.org/sparql/> .

