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

ex:8 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Find in any organsim under Gammaproteobacteria all genes containing word \"protease\", case-insensitive, anywhere in description"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX up: <http://purl.uniprot.org/core/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <http://purl.orthodb.org/>

SELECT *
WHERE {
    ?tx rdfs:subClassOf+/up:scientificName "Gammaproteobacteria".
    ?gene a :Gene; up:organism/a ?tx; :description ?description.
    FILTER(contains (lcase(?description), "protease" ))
}""" ;
    schema:target <https://sparql.orthodb.org/sparql/> .

