query-808cd092d6ffb9d4566332ebb779dcc8

rq turtle/ttl

Alle streekproducten SELECT DISTINCT ?item ?itemLabel ?itemDescription ?itemAlias ?madeofLabel ?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. OPTIONAL { ?item wdt:P186 ?madeof. } OPTIONAL { ?item wdt:P495 ?country. } OPTIONAL { ?item wdt:P1071 ?region. } 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#>
# Alle streekproducten
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?itemAlias ?madeofLabel ?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.
  OPTIONAL { ?item wdt:P186 ?madeof. }
  OPTIONAL { ?item wdt:P495 ?country. }
  OPTIONAL { ?item wdt:P1071 ?region. }
  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; v5("?country") v3("?item"):::projected v2("?itemAlias"):::projected v1("?itemLabel"):::projected v4("?madeof") v6("?region") c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,nl,fr,de,en,es,it,no,se,fi"]):::literal 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 optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P186".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P495".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1071".-> v6 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."skos:altLabel".-> v2 end