@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_00125 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Domains that are entirely covered by 3D structures"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?domlabel WHERE {
 ?entry :isoform ?isoform.
 ?isoform :pdbMapping ?struc.
 ?struc :start ?s1 ; :end ?s2.
 ?isoform :domain ?dom.
 ?dom :start ?d1 ; :end ?d2.
 ?dom :term/rdfs:label ?domlabel
 filter ((?s1 <= ?d1) && (?s2 >= ?d2))
}""" ;
    schema:keywords "3D structure",
        "domain",
        "region",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

