query-ebc7bc981a0295bd812343b06f1ff266

rq turtle/ttl

Streekproducten uit Pajottenland-Zennevallei SELECT DISTINCT ?item ?itemLabel ?itemDescription ?itemAlias ?madeofLabel ?processLabel ?regionLabel ?countryLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en,es,it,no,se,fi". } VALUES ?region { wd:Q640303 wd:Q1882768 } ?item wdt:P31 wd:Q2185963; wdt:P1071 wd:Q640303, ?region. OPTIONAL { ?item wdt:P186 ?madeof. } OPTIONAL { ?item wdt:P495 ?country. } OPTIONAL { ?item wdt:P2079 ?process. } OPTIONAL { ?item skos:altLabel ?itemAlias. FILTER((LANG(?itemAlias)) = "nl") } } ORDER BY (?itemLabel)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Streekproducten uit Pajottenland-Zennevallei
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?itemAlias ?madeofLabel ?processLabel ?regionLabel ?countryLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en,es,it,no,se,fi". }
  VALUES ?region { wd:Q640303 wd:Q1882768 }
  ?item wdt:P31 wd:Q2185963;
    wdt:P1071 wd:Q640303, ?region.
  OPTIONAL { ?item wdt:P186 ?madeof. }
  OPTIONAL { ?item wdt:P495 ?country. }
  OPTIONAL { ?item wdt:P2079 ?process. }
  OPTIONAL {
    ?item skos:altLabel ?itemAlias.
    FILTER((LANG(?itemAlias)) = "nl")
  }
}
ORDER BY (?itemLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?country") v4("?item"):::projected v2("?itemAlias"):::projected v1("?itemLabel"):::projected v5("?madeof") v7("?process") v3("?region") c9(["wd:Q640303"]):::iri c5(["#91;AUTO_LANGUAGE#93;,nl,fr,de,en,es,it,no,se,fi"]):::literal c3(["bd:serviceParam"]):::iri c7(["wd:Q2185963"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end bind0[/VALUES ?region/] bind0-->v3 bind00(["wd:Q640303"]) bind00 --> bind0 bind01(["wd:Q1882768"]) bind01 --> bind0 v4 --"wdt:P31"--> c7 v4 --"wdt:P1071"--> c9 v4 --"wdt:P1071"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P186".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P495".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P2079".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v4 -."skos:altLabel".-> v2 end