query-d195b721562af46a77d89291c3294d6a
Finding thematic maps
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?class ?classLabel ?qobject ?qobjectLabel ?object ?objectLabel
WHERE {
#OPTIONAL {?item wdt:P31 ?class}.
?stmt pq:P180 ?qobject.
?stmt ?ps ?object.
?wd wikibase:statementProperty ?object.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?class ?classLabel ?qobject ?qobjectLabel ?object ?objectLabel
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?class"):::projected
v2("?classLabel"):::projected
v5("?object"):::projected
v6("?objectLabel"):::projected
v8("?ps")
v3("?qobject"):::projected
v4("?qobjectLabel"):::projected
v7("?stmt")
v9("?wd")
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
v7 --"pq:P180"--> v3
v7 -->v8--> v5
v9 --"wikibase:statementProperty"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end