sparql-examples

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

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

neXtProt/NXQ_00107

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')) .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?ac")
  v3("?entry"):::projected 
  v2("?level")
  v4("?r")
  c6([":db/HGNC"]):::iri 
  f0[["regex(?ac,'orf')"]]
  f0 --> v1
  f1[["?level != ':Evidence_at_protein_level'"]]
  f1 --> v2
  v3 --":existence"-->  v2
  v3 --":reference"-->  v4
  v4 --":provenance"-->  c6
  v4 --":accession"-->  v1