@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:10 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Find most conservative single copy Danio rerio genes at the Vertebrata level"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX up: <http://purl.uniprot.org/core/>
PREFIX : <http://purl.orthodb.org/>

SELECT ?og ?gene ?description ?evolrate
WHERE {
    ?gene a :Gene; :description ?description; up:organism/a [up:scientificName "Danio rerio"].
    ?gene :memberOf ?og.
    ?og :ogBuiltAt [up:scientificName "Vertebrata"].
    ?og a :OrthoGroup; :ogPercentSingleCopy 100; :ogEvolRate ?evolrate.
    FILTER(?evolrate < 1)
}
ORDER BY ?evolrate
""" ;
    schema:target <https://sparql.orthodb.org/sparql/> .

