@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_00020 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins with at least 2 HPA antibodies whose genes are located on chromosome 21 and that are highly expressed according to IHC in heart"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

select ?entry WHERE {
 SELECT DISTINCT ?entry ?id WHERE {
 ?entry :gene / :chromosome "21"^^xsd:string .
 ?entry :isoform / :expressionProfile ?s1.
 ?s1 :term / :childOf nextprot_cv:TS-0445.
 ?s1 :evidence ?evi.
 ?evi :observedExpression :High.
 ?evi :evidenceCode nextprot_cv:ECO_0001055.
 ?entry :isoform / :antibodyMapping ?map.
	 ?map :evidence / :reference / :accession ?id .
 }
} group by ?entry having (count(?id)>=2)""" ;
    schema:keywords "antibody",
        "chromosomal location",
        "expression",
        "method",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

