@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:9 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "At the LCA level, find all human orthologs of mouse genes with name containing \"MAPK\", case-insensitive"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX up: <http://purl.uniprot.org/core/>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX : <http://purl.orthodb.org/>

SELECT *
WHERE {
    ?og a :OrthoGroup.
    ?og :ogBuiltAt taxon:314146.
    ?gene_m a :Gene.
    ?gene_h a :Gene.
    ?gene_m up:organism/a taxon:10090.
    ?gene_h up:organism/a taxon:9606.
    ?gene_m :memberOf ?og.
    ?gene_h :memberOf ?og.
    ?gene_m :name ?gene_m_name.
    ?gene_h :name ?gene_h_name.
    FILTER(contains (UCASE(?gene_m_name), "MAPK" ))
}""" ;
    schema:target <https://sparql.orthodb.org/sparql/> .

