query-4dc1487fecc1a2b69c88b189f9738a8d

rq turtle/ttl

title: Seleccionar per la unitat (m., km,.) d'una propietat numèrica (amplada, llargada,superficie,..) SELECT ?object ?objectLabel ?baselong ?instancia ?instanciaLabel WHERE { ?object (p:P2043/psv:P2043) :b5. :b5 wikibase:quantityAmount ?baselong; wikibase:quantityUnit wd:Q828224. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?object wdt:P31 ?instancia. # informa P31 per saber si és una unitat coherent amb l'element } LIMIT 500

Use at

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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Seleccionar per la unitat (m., km,.) d'una propietat numèrica (amplada, llargada,superficie,..)
SELECT ?object ?objectLabel ?baselong ?instancia ?instanciaLabel  WHERE {
  ?object (p:P2043/psv:P2043) _:b5. 
   _:b5 wikibase:quantityAmount ?baselong; 
   wikibase:quantityUnit wd:Q828224.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?object wdt:P31 ?instancia.  # informa P31 per saber si és una unitat coherent amb l'element
}
LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?baselong"):::projected v3("?instancia"):::projected v1("?object"):::projected a2((" ")) a1((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q828224"]):::iri v1 --"p:P2043"--> a1 a1 --"p:statement/value/P2043"--> a2 a2 --"wikibase:quantityAmount"--> v2 a2 --"wikibase:quantityUnit"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end v1 --"p:direct/P31"--> v3