Hi,

First a warning, food is known to be not-so-good on Wikidata.

Then, here you're query:

SELECT ?food ?foodLabel ?foodDescription WHERE {
  ?food wdt:P31/wdt:P279* wd:Q2095 . #everything under the class of food
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Cdlt ~nicolas

2018-06-22 1:31 GMT+02:00 Quintin Par <quintinpar@gmail.com>:

Hello all,

 

I tried looking at some examples but couldn’t quite figure out. if I were to write a simple query like this


    SELECT ?food ?cooking
    WHERE
    {
      [] wdt:xx ? food.
      OPTIONAL{?food wdt:xx wd:xxx.}
      SERVICE wikibase:label { bd:serviceParam wikibase:language
        "[AUTO_LANGUAGE]". }
    }

 

What are the correct ids that I should be using?


- Quintin

_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata