query-b63c127a84d73275871c94b871649b4c
Ponts amb mides normalitzades (totes en metres)
SELECT DISTINCT ?item ?itemLabel ?mides
WHERE {
VALUES ?tipus {wd:Q12280}
?item wdt:P17 wd:Q29.
?item wdt:P31/wdt:P279* ?tipus.
OPTIONAL {?item p:P2043 ?sllarg.
?sllarg psn:P2043 ?sllargn.
?sllargn wikibase:quantityAmount ?llarg.
}
OPTIONAL { ?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.
}
OPTIONAL {?item wdt:P1314 ?ulls}
BIND(CONCAT(IF(BOUND(?ulls),CONCAT("ulls:",str(?ulls),""),""),
IF(BOUND(?llum),CONCAT("llum:",str(?llum),""),""),
IF(BOUND(?llarg),CONCAT("llarg:",str(?llarg),""),""),
IF(BOUND(?ample),CONCAT("ample:",str(?ample),""),""),
IF(BOUND(?alt),CONCAT("alt:",str(?alt),""),"")) as ?mides)
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 normalitzades (totes en metres)
SELECT DISTINCT ?item ?itemLabel ?mides
WHERE {
VALUES ?tipus {wd:Q12280}
?item wdt:P17 wd:Q29.
?item wdt:P31/wdt:P279* ?tipus.
OPTIONAL {?item p:P2043 ?sllarg.
?sllarg psn:P2043 ?sllargn.
?sllargn wikibase:quantityAmount ?llarg.
}
OPTIONAL { ?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.
}
OPTIONAL {?item wdt:P1314 ?ulls}
BIND(CONCAT(IF(BOUND(?ulls),CONCAT("ulls:",str(?ulls),"</br>"),""),
IF(BOUND(?llum),CONCAT("llum:",str(?llum),"</br>"),""),
IF(BOUND(?llarg),CONCAT("llarg:",str(?llarg),"</br>"),""),
IF(BOUND(?ample),CONCAT("ample:",str(?ample),"</br>"),""),
IF(BOUND(?alt),CONCAT("alt:",str(?alt),"</br>"),"")) as ?mides)
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr".}
}