query-764a0df7331b2a134fc40ca8d7f6c025
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?normalizedSuperficie ?normalizedUnitLabel ?originalSuperficie ?originalUnitLabel ?normalizedSuperficieKM2 WHERE {
?item wdt:P31 wd:Q23019040 .
?item p:P2046 [ psn:P2046 [ wikibase:quantityAmount ?normalizedSuperficie; wikibase:quantityUnit ?normalizedUnit ] ] .
?item p:P2046 [ psv:P2046 [ wikibase:quantityAmount ?originalSuperficie; wikibase:quantityUnit ?originalUnit ] ] .
BIND(?normalizedSuperficie/1000000 AS ?normalizedSuperficieKM2) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr"}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?normalizedSuperficie"):::projected
v6("?normalizedSuperficieKM2"):::projected
v3("?normalizedUnit")
v4("?originalSuperficie"):::projected
v5("?originalUnit")
a2((" "))
a1((" "))
a4((" "))
a3((" "))
c9(["bd:serviceParam"]):::iri
c2(["wd:Q23019040"]):::iri
c11(["fr"]):::literal
v1 --"p:direct/P31"--> c2
a1 --"wikibase:quantityAmount"--> v2
a1 --"wikibase:quantityUnit"--> v3
a2 --"p:statement/value-normalized/P2046"--> a1
v1 --"p:P2046"--> a2
a3 --"wikibase:quantityAmount"--> v4
a3 --"wikibase:quantityUnit"--> v5
a4 --"p:statement/value/P2046"--> a3
v1 --"p:P2046"--> a4
bind0[/"?normalizedSuperficie / '1000000^^xsd:integer'"/]
v2 --o bind0
bind0 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end