A set of SPARQL examples that are used in different SIB resources
Select a mapping of UniProtKB to PDB entries using the UniProtKB cross-references to the PDB database
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT ?protein ?db
WHERE
{
?protein a up:Protein .
?protein rdfs:seeAlso ?db .
?db up:database <http://purl.uniprot.org/database/PDB>
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?db"):::projected
v1("?protein"):::projected
c5([http://purl.uniprot.org/database/PDB]):::iri
c2(["up:Protein"]):::iri
v1 --"a"--> c2
v1 --"rdfs:seeAlso"--> v2
v2 --"up:database"--> c5