sparql-examples

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

View the Project on GitHub ytirlet/sparql-examples

M31_module

rq turtle/ttl

entry and database

Use at

PREFIX up: <http://purl.uniprot.org/core/>
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?entry ?dbentry ?database
WHERE {
        ?entry rdfs:seeAlso ?dbentry.
        ?dbentry up:database ?database.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?database"):::projected 
  v2("?dbentry"):::projected 
  v1("?entry"):::projected 
  v1 --"rdfs:seeAlso"-->  v2
  v2 --"up:database"-->  v3