@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_00070 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins secreted but without a signal sequence"@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 {
 values ?sloc {nextprot_cv:GO_0005576 nextprot_cv:SL-0243} # GO and SL values for secreted
 ?entry :isoform ?iso.
 ?iso :cellularComponent ?loc .
 ?loc :term/:childOf ?sloc .
 filter not exists {?sloc :negativeEvidence ?negev} # No negative localization evidence
 filter not exists {?iso :cellularComponent /:term nextprot_cv:GO_0070062 .
					 filter not exists {?iso :cellularComponent /:term /:childOf nextprot_cv:SL-0243 .}
					} # filters out extracellular exosome only location (2758 entries)
 filter not exists {?iso :signalPeptide ?_}
}""" ;
    schema:keywords "signal sequence",
        "subcellular location",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

