@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:1 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Find all OrthoDB species with attached OrthoDB organisms containing \"drosophila\" in the beginning of the taxonomic name"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX up: <http://purl.uniprot.org/core/>
PREFIX : <http://purl.orthodb.org/>

SELECT *
WHERE {
    ?tx a :Species; up:scientificName ?tax_name .
    ?org a ?tx; up:scientificName ?org_name.
    FILTER(strstarts (lcase(?tax_name ), "drosophila" ))
}""" ;
    schema:target <https://sparql.orthodb.org/sparql/> .

