query-537db9ce13911ac2ecb2162f4ac55b1a

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". } ?item wdt:P31 wd:Q2185963. { ?item wdt:P1071 wd:Q640303, ?region. } UNION { ?item wdt:P1071 wd:Q1882768, ?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". }
  ?item wdt:P31 wd:Q2185963.
  { ?item wdt:P1071 wd:Q640303, ?region. }
  UNION
  { ?item wdt:P1071 wd:Q1882768, ?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") v3("?item"):::projected v2("?itemAlias"):::projected v1("?itemLabel"):::projected v5("?madeof") v7("?process") v4("?region") c9(["wd:Q640303"]):::iri c5(["#91;AUTO_LANGUAGE#93;,nl,fr,de,en,es,it,no,se,fi"]):::literal c10(["wd:Q1882768"]):::iri 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 v3 --"wdt:P31"--> c7 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P1071"--> c10 v3 --"wdt:P1071"--> v4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P1071"--> c9 v3 --"wdt:P1071"--> v4 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P186".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P495".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P2079".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."skos:altLabel".-> v2 end