A set of SPARQL examples that are used in different SIB resources
Find UniProtKB entry which has a protein name 'HLA class I histocompatibility antigen, B-73 alpha chain'
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT ?protein ?anyKindOfName
WHERE
{
?protein a up:Protein .
?protein (up:recommendedName|up:alternativeName) ?structuredName .
?structuredName ?anyKindOfName "HLA class I histocompatibility antigen, B alpha chain" .
?anyKindOfName rdfs:subPropertyOf up:structuredNameType .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?anyKindOfName"):::projected
v1("?protein"):::projected
v2("?structuredName")
c7(["up:structuredNameType"]):::iri
c5(["HLA class I histocompatibility antigen, B alpha chain"]):::literal
c2(["up:Protein"]):::iri
v1 --"a"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"up:alternativeName"--> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"up:recommendedName"--> v2
end
union0r <== or ==> union0l
end
v2 -->v3--> c5
v3 --"rdfs:subPropertyOf"--> c7