query-f112777b5d33fe0f47f908ce47923a72
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?P4812value ?instance ?instanceLabel ?territory ?territoryLabel WHERE {
?item p:P4812/ps:P4812 ?P4812value .
OPTIONAL { ?item wdt:P31 ?instance }
OPTIONAL { ?item wdt:P131 ?territory }
SERVICE wikibase:label { bd:serviceParam wikibase:language 'el' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?P4812value"):::projected
v3("?instance"):::projected
v1("?item"):::projected
v4("?territory"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["el"]):::literal
v1 --"p:P4812"--> a1
a1 --"p:statement/P4812"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P31".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P131".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end