sparql-examples

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

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

93_uniprot_created_modified_updated

List the created, last modified, and last sequence update dates for UniProtKB proteins.

Use at

PREFIX up: <http://purl.uniprot.org/core/>

SELECT
  ?protein 
  ?created
  ?modified
  ?version
WHERE {
  ?protein a up:Protein ;
           up:created ?created ;
           up:modified ?modified ;
           up:version ?version .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?created"):::projected 
  v3("?modified"):::projected 
  v1("?protein"):::projected 
  v4("?version"):::projected 
  c2(["up:Protein"]):::iri 
  v1 --"a"-->  c2
  v1 --"up:created"-->  v2
  v1 --"up:modified"-->  v3
  v1 --"up:version"-->  v4