query-f3a0e5bb36a8de0eef9d8a4dbf9cb936

rq turtle/ttl

Multiple valuesI am still struggling a bit with multiple values. Here:

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?streetno ?img
WHERE 
{
  ?item wdt:P31/wdt:P279* wd:Q41176.
  ?item wdt:P669 wd:Q847613 .
  ?item p:P669 ?street .
  OPTIONAL {?street ps:P669 wd:Q847613; pq:P670 ?streetno } . 
  OPTIONAL {?item wdt:P18 ?img } .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "cs,en". }
}
ORDER BY xsd:integer(?streetno)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?img"):::projected v2("?item"):::projected v3("?street") v1("?streetno"):::projected a1((" ")) c3(["wd:Q41176"]):::iri c13(["cs,en"]):::literal c5(["wd:Q847613"]):::iri c11(["bd:serviceParam"]):::iri v2 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 v2 --"p:direct/P669"--> c5 v2 --"p:P669"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:statement/P669".-> c5 v3 --"p:qualifier/P670"--> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P18".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end