@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_00080 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins with at least one 3D structure of resolution less than 3 Angstroms"@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 :isoform ?iso.
 ?iso :pdbMapping ?map.
 ?map :resolution ?res_and_unit.
 bind (xsd:float(substr(?res_and_unit,0,strlen(?res_and_unit)-2)) as ?res)
 filter (?res <= 3.0)
}""" ;
    schema:keywords "3D structure",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

