query-07ffdf8a0f56b4d7fda65f914a3e8151
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 ?item ?label ?image WHERE {
?item (wdt:P31/wdt:P279*) wd:Q170409.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "pl,en,ru".
?item rdfs:label ?label.
}
OPTIONAL { ?item wdt:P117 ?image }.
}
GROUP BY ?item ?label ?image
ORDER BY ?label
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?image"):::projected
v2("?item"):::projected
v1("?label"):::projected
a1((" "))
c3(["wd:Q170409"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["pl,en,ru"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v2 --"rdfs:label"--> v1
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P117".-> v3
end