query-2ec6de06b3cb4c567902a21d5c5a20cd
Ponts amb mides
SELECT DISTINCT ?item ?itemLabel ?llarg ?ample ?llum ?alt
WHERE {
VALUES ?tipus {wd:Q12280}
?item wdt:P17 wd:Q29.
?item wdt:P31/wdt:P279* ?tipus.
?item wdt:P166 [].
OPTIONAL {?item p:P2043 ?sllarg.
?sllarg psn:P2043 ?sllargn.
?sllargn wikibase:quantityAmount ?llarg.
}
OPTIONAL { ?item wdt:P2787 [].
?item p:P2787 ?sllum.
?sllum psn:P2787 ?sllumn.
?sllumn wikibase:quantityAmount ?llum.
}
OPTIONAL {?item p:P2049 ?sample.
?sample psn:P2049 ?samplen.
?samplen wikibase:quantityAmount ?ample.
}
OPTIONAL {?item p:P2048 ?salt.
?salt psn:P2048 ?saltn.
?saltn wikibase:quantityAmount ?alt.
}
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr".}
}
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 psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Ponts amb mides
SELECT DISTINCT ?item ?itemLabel ?llarg ?ample ?llum ?alt
WHERE {
VALUES ?tipus {wd:Q12280}
?item wdt:P17 wd:Q29.
?item wdt:P31/wdt:P279* ?tipus.
?item wdt:P166 [].
OPTIONAL {?item p:P2043 ?sllarg.
?sllarg psn:P2043 ?sllargn.
?sllargn wikibase:quantityAmount ?llarg.
}
OPTIONAL { ?item wdt:P2787 [].
?item p:P2787 ?sllum.
?sllum psn:P2787 ?sllumn.
?sllumn wikibase:quantityAmount ?llum.
}
OPTIONAL {?item p:P2049 ?sample.
?sample psn:P2049 ?samplen.
?samplen wikibase:quantityAmount ?ample.
}
OPTIONAL {?item p:P2048 ?salt.
?salt psn:P2048 ?saltn.
?saltn wikibase:quantityAmount ?alt.
}
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr".}
}