@prefix ex:<https://purl.expasy.org/sparql-examples/neXtProt/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:NXQ_00086 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins whose genes are located in chromosome 2 region from 2p12 to 2p24.2"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT DISTINCT ?entry WHERE {
 ?entry :gene ?gene .
 ?gene :chromosome "2"^^xsd:string .
 ?gene :band ?band.
 filter (?band >= "p12"@en && ?band <= "p24.2"@en )
}""" ;
    schema:keywords "chromosomal location",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

