query-f72762c42f336a3b78f0b8c1f2de86e2
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?entity ?propertyLabel ?value ?valueLabel WHERE
{
VALUES ?entity {wd:Q21715205}
{?entity ?predicate ?value.
?property wikibase:directClaim ?predicate. }
UNION
{ ?entity rdfs:label ?value . filter(lang(?value)="en")
BIND("rdfs:label" as ?propertyLabel)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?entity"):::projected
v2("?predicate")
v4("?property")
v5("?propertyLabel"):::projected
v3("?value"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?entity/]
bind0-->v1
bind00(["wd:Q21715205"])
bind00 --> bind0
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
f1[["?value = 'en'"]]
f1 --> v3
v1 --"rdfs:label"--> v3
bind2[/"'rdfs:label'"/]
bind2 --as--o v5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 -->v2--> v3
v4 --"wikibase:directClaim"--> v2
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end