@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_00138 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins with 10 or more gold interactions with SH3 domain-containing proteins"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :interaction ?it.
 ?it :quality :GOLD.
 ?it :interactant ?interactant.
 ?interactant :isoform? / :domain / :term nextprot_cv:DO-00615. # SH3
}
group by ?entry having (count (distinct ?interactant) >= 10)""" ;
    schema:keywords "PPI",
        "domain",
        "quality",
        "region",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

