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_00239

Proteins with cross-references to InterPro

Use at

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

SELECT DISTINCT ?entry ?iprac WHERE {
 ?entry :reference ?ref.
 ?ref :provenance db:InterPro.
 ?ref :accession ?iprac}
order by ?entry ?iprac
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v2("?iprac"):::projected 
  v3("?ref")
  c3([":db/InterPro"]):::iri 
  v1 --":reference"-->  v3
  v3 --":provenance"-->  c3
  v3 --":accession"-->  v2