@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_00237 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Transmembrane proteins with the number of transmembrane domains in the canonical isoform by decreasing order"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>

select ?entry (count(distinct(?statement)) as ?tmcnt) WHERE {
 ?entry :isoform ?iso.
 ?iso :swissprotDisplayed true .
 ?iso :topology ?statement.
 ?statement a :TransmembraneRegion.
}
group by ?entry
order by desc(?tmcnt)""" ;
    schema:keywords "domain",
        "isoforms",
        "region",
        "topology",
        "transmembrane",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

