@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_00222 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins with both RNA-seq expression and observed IHC expression \"high\" in brain or one of its subparts"@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 :expression ?exprna, ?expihc.
 ?exprna :term ?rnatiss .
 ?exprna :evidence ?evirna.
 ?evirna :observedExpression :Positive.
 ?evirna :evidenceCode nextprot_cv:ECO_0000295. # RNA-seq
 ?rnatiss :childOf nextprot_cv:TS-0095. #brain
 ?expihc :quality :GOLD .
 ?expihc :term ?ihctiss .
 ?expihc :evidence ?eviihc.
 ?eviihc :evidenceCode nextprot_cv:ECO_0001055. #IHC
 ?eviihc :observedExpression :High.
 ?ihctiss :childOf ?rnatiss .
}""" ;
    schema:keywords "expression",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

