@prefix ex: <https://sparql.rhea-db.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:1 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Select all Rhea reactions"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rh: <http://rdf.rhea-db.org/>

# Query 1
# Select all Rhea reactions (unspecified direction) 
# and return identifier (id), accession, boolean attributes (isChemicallyBalanced, isTransport) and chemical equation.
#
SELECT ?rhea ?id ?accession ?isChemicallyBalanced ?isTransport  ?equation 
WHERE {
  ?rhea rdfs:subClassOf rh:Reaction .
  ?rhea rh:id ?id .
  ?rhea rh:accession ?accession .
  ?rhea rh:equation ?equation .
  ?rhea rh:isTransport ?isTransport .
  ?rhea rh:isChemicallyBalanced ?isChemicallyBalanced .
}""" ;
    schema:target <https://sparql.rhea-db.org/sparql> .

