sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

NXQ_00107

rq turtle/ttl

Proteins with a protein existence not "At protein level" (PE=1) and with a HGNC approved gene name that contains "orf"

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX db: <http://nextprot.org/rdf/db/>

SELECT DISTINCT ?entry WHERE {
 ?entry :existence ?level.
 filter (?level != :Evidence_at_protein_level).
 ?entry :reference ?r.
 ?r :provenance db:HGNC ; :accession ?ac.
 filter (regex(?ac,'orf')) .
}
:existence
:reference
:provenance
:accession
?ac
?entry
?level
?r
:db/HGNC
regex(?ac,'orf')
?level != ':Evidence_at_protein_level'