A set of SPARQL examples that are used in different SIB resources
Find UniProtKB entry, or an UniProtKB entries domain or component which has a name 'HLA class I histocompatibility antigen, B-73 alpha chain' Find UniProtKB proteins which are cleaved and contain a domain or component named '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)|((up:domain|up:component)/(up:recommendedName|up:alternativeName)) ?structuredName .
?structuredName ?anyKindOfName "HLA class I histocompatibility antigen, B-73 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")
a1((" "))
c9(["up:structuredNameType"]):::iri
c7(["HLA class I histocompatibility antigen, B-73 alpha chain"]):::literal
c2(["up:Protein"]):::iri
v1 --"a"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"up:component"--> a1
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"up:domain"--> a1
end
union1r <== or ==> union1l
end
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
a1 --"up:alternativeName"--> v2
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
a1 --"up:recommendedName"--> v2
end
union2r <== or ==> union2l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v1 --"up:alternativeName"--> v2
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"up:recommendedName"--> v2
end
union3r <== or ==> union3l
end
end
union0r <== or ==> union0l
end
v2 -->v3--> c7
v3 --"rdfs:subPropertyOf"--> c9