sparql-examples

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

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

12

Select all UniProtKB entries that were integrated on the 30th of November 2010

Use at

PREFIX up: <http://purl.uniprot.org/core/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?protein
WHERE
{
	?protein a up:Protein . 
	?protein up:created '2010-11-30'^^xsd:date
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?protein"):::projected 
  c2(["up:Protein"]):::iri 
  c4(["2010-11-30^^xsd:date"]):::literal 
  v1 --"a"-->  c2
  v1 --"up:created"-->  c4