Wikidata talk:WikiProject Food

From Wikidata
Jump to navigation Jump to search
Teolemon
Vladimir Alexiev
Ash_Crow
d1g
Dhx1
Tris T7 TT me
Gobonobo
Ainali
Wkee4ager
Rtnf
Dguarrac
Middle river exports (talk) 13:59, 5 September 2022 (UTC)[reply]
Wolfgang8741

Notified participants of WikiProject Food Hello, I thought you might be interested by the creation of a "child" wikiproject, Wikidata:WikiProject Cheese. -Ash Crow (talk) 18:19, 22 February 2015 (UTC)[reply]

Food items: P31 or P279[edit]

Last month I had a question about the use of P31 or P279 at food items. I copy the discussion here (maybe continue?). Michiel1972 (talk) 10:59, 8 January 2015 (UTC)[reply]


Hi, I have a question about the use of P279 or P31 at food items. I see your bot did put P279 in most cases (e.g. https://www.wikidata.org/w/index.php?title=Q3441161&diff=168212206&oldid=97170126). Can you explain me why it is not P31? Yesterday I claimed instance of (P31) pudding (Q9053) on a lot of items because I thought these are instances ( a specific type of pudding, no need to make it a subclass since there will no other items created that use them as subclass) Michiel1972 (talk) 08:05, 19 December 2014 (UTC)[reply]

Hi Michiel1972, when referring to concepts, the difference between subclass and instance appears to be debatable, but in this case it is pretty clear: "cake" refers to a concrete, material object, so an "instance of cake" has to be a meterial object, like say, the wedding cake of Queen Victoria. Anything that is not a unique material object is a subclass of cake, that is, a set of features shared by potentially several instances of cakes. --Zolo (talk) 06:09, 23 December 2014 (UTC)[reply]
So this means almost all food items (soups, puddings and all cheeses,..) should have a P279 claim and not a P31 right (because we don't have many items about a cheese consumed by a specific person)? Well, some cleanup is really needed then. Michiel1972 (talk) 10:26, 27 December 2014 (UTC)[reply]
Yes, there is a lot of cleanup to do. Zolo (talk) 10:47, 28 December 2014 (UTC)[reply]

Menu Challenge[edit]

A notice in this project seem relevant; right now the Wikidata:Menu Challenge is ongoing. Add labels, images and pronunciations of around 290 food related items and help us show off the power of Wikidata at a food festival. Jan Ainali (WMSE) (talk) 08:48, 8 May 2015 (UTC)[reply]

Notified participants of WikiProject Food

Meat dish[edit]

I can't find an item for meat dish (any kind of meat). Anyone aware of one in another language? Danrok (talk) 19:30, 31 October 2015 (UTC)[reply]

Meat product or perhaps https://www.wikidata.org/wiki/Q1427844 ?, because of https://www.wikidata.org/wiki/Q8170843 --Teolemon (talk) 11:02, 1 November 2015 (UTC)[reply]

Wikimania 2016[edit]

Only this week left for comments: Wikidata:Wikimania 2016 (Thank you for translating this message). --Tobias1984 (talk) 11:43, 25 November 2015 (UTC)[reply]

Mix'n'match link bug[edit]

@Teolemon: Links to OpenFoodFacts are like "https://tools.wmflabs.org/mix-n-match/world.openfoodfacts.org/category/acar". --AVRS (talk) 15:07, 17 August 2016 (UTC)[reply]

Items without statements related to this Wikiproject[edit]

I haven't had time to look into these yet, but maybe you are interested.
--- Jura 10:12, 20 September 2016 (UTC)[reply]

Closely related project proposal[edit]

Teolemon
Vladimir Alexiev
Ash_Crow
d1g
Dhx1
Tris T7 TT me
Gobonobo
Ainali
Wkee4ager
Rtnf
Dguarrac
Middle river exports (talk) 13:59, 5 September 2022 (UTC)[reply]
Wolfgang8741

Notified participants of WikiProject Food

Greetings members of WikiProject Food! We'd like to let you know about a complementary set of work we are planing related to food composition data. We are planing to create a Wikibase for food composition data. To support this work we are proposing a WMF grant. We invite your review of the description of the project so we can learn of any feedback you may be willing to share with us. If you think this is a good idea, please consider adding endorsement for the project. Hackfish (talk) 18:59, 19 February 2020 (UTC)[reply]

meta:Grants:Project/Hackfish/Global food and nutrition database

WikiProject Nutrition[edit]

Teolemon
Vladimir Alexiev
Ash_Crow
d1g
Dhx1
Tris T7 TT me
Gobonobo
Ainali
Wkee4ager
Rtnf
Dguarrac
Middle river exports (talk) 13:59, 5 September 2022 (UTC)[reply]
Wolfgang8741

Notified participants of WikiProject Food

I create a project to discuss food composition data in WD: WikiProject Nutrition. Please join if you're interested in the discussion on how/what to add in WD! Hackfish (talk) 04:26, 20 February 2020 (UTC)[reply]

instance or subclass of cocktail[edit]

Teolemon
Vladimir Alexiev
Ash_Crow
d1g
Dhx1
Tris T7 TT me
Gobonobo
Ainali
Wkee4ager
Rtnf
Dguarrac
Middle river exports (talk) 13:59, 5 September 2022 (UTC)[reply]
Wolfgang8741

Notified participants of WikiProject Food

there is a this popular query which promotes that cocktails should all be instance of (P31) cocktail (Q134768).

#defaultView:ImageGrid
SELECT ?cocktail ?cocktailLabel (SAMPLE(?recipe) AS ?recipe) (SAMPLE(?image) AS ?image)
WHERE
{
  {
    SELECT ?cocktail ?cocktailLabel (GROUP_CONCAT(DISTINCT ?ingredient; separator=", ") AS ?ingredientsList) (GROUP_CONCAT(DISTINCT ?garnishLabel; separator=", ") AS ?garnishList) (COUNT(DISTINCT ?ingredient) + COUNT(DISTINCT ?garnishLabel) AS ?count)
    WHERE
    {
      ?cocktail wdt:P31/wdt:P279* wd:Q134768;
                p:P186 ?materialStat.
      MINUS { ?materialStat pq:P518/wdt:P279* wd:Q2453629. }
      MINUS { ?materialStat ps:P186 wd:Q488463; pq:P366 wd:Q26876981. }
      MINUS { ?materialStat pq:P366 wd:Q59541. }
      ?materialStat ps:P186/rdfs:label ?materialLabel.
      FILTER(LANG(?materialLabel) = "en").
      BIND(?materialLabel AS ?ingredientSolo).
      OPTIONAL {
        ?materialStat ps:P186/rdfs:label ?materialLabel;
                      pq:P1114 ?quantity.
        FILTER(LANG(?materialLabel) = "en").
        BIND(CONCAT(STR(?quantity), " ", ?materialLabel) AS ?ingredientWithQuantity).
        OPTIONAL {
          ?materialStat pq:P1114 ?quantity;
                        ps:P186/rdfs:label ?materialLabel;
                        pqv:P1114/wikibase:quantityUnit ?unit.
          FILTER(LANG(?materialLabel) = "en").
          FILTER(?unit != wd:Q199).
          ?unit rdfs:label ?unitLabel.
          FILTER(LANG(?unitLabel) = "en").
          BIND(CONCAT(STR(?quantity), " ", IF(?quantity = 1, ?unitLabel, CONCAT(?unitLabel, IF(STRENDS(?unitLabel, "sh"), "es", "s"))), " ", ?materialLabel) AS ?ingredientWithUnit).
        }
      }
      BIND(COALESCE(?ingredientWithUnit, ?ingredientWithQuantity, ?ingredientSolo) AS ?ingredient).
      OPTIONAL {
        ?cocktail p:P186 [ ps:P186 ?garnish; pq:P366 wd:Q59541 ].
        ?garnish rdfs:label ?garnishLabel.
        FILTER(LANG(?garnishLabel) = "en").
      }
      ?cocktail rdfs:label ?cocktailLabel.
      FILTER(LANG(?cocktailLabel) = "en").
    }
    GROUP BY ?cocktail ?cocktailLabel
  }
  BIND(
    IF(REGEX(?ingredientsList, ", .*,"),
       REPLACE(?ingredientsList, "(.*), (.*)", "$1, and $2"),
       REPLACE(?ingredientsList, "(.*), (.*)", "$1 and $2"))
    AS ?ingredients).
  BIND(
    IF(REGEX(?garnishList, ", .*,"),
       REPLACE(?garnishList, "(.*), (.*)", "$1, and $2"),
       REPLACE(?garnishList, "(.*), (.*)", "$1 and $2"))
    AS ?garnishes).
  OPTIONAL {
    ?cocktail p:P186 [ ps:P186 ?glass; pq:P518/wdt:P279* wd:Q2453629 ].
    ?glass rdfs:label ?glassLabel.
    FILTER(LANG(?glassLabel) = "en").
    BIND(IF(REGEX(?glassLabel, "^[AEIOUaeiou]"), "an", "a") AS ?article).
    BIND(CONCAT(" in ", ?article, " ", ?glassLabel) AS ?container).
    BIND(", served" AS ?served).
  }
  OPTIONAL {
    ?cocktail p:P186 [ ps:P186 wd:Q488463; pq:P366 wd:Q26876981 ].
    BIND(" on the rocks" AS ?onTheRocks).
    BIND(", served" AS ?served).
  }
  OPTIONAL {
    FILTER(STRLEN(STR(?garnishes)) > 1).
    BIND(CONCAT(" with ", ?garnishes) AS ?garnish).
    BIND(", served" AS ?served).
  }
  BIND(CONCAT(
    ?ingredients,
    COALESCE(?served, ""),
    COALESCE(?onTheRocks, ""),
    COALESCE(?garnish, ""),
    COALESCE(?container, ""))
    AS ?recipe).
  OPTIONAL { ?cocktail wdt:P18 ?image. }
}
GROUP BY ?cocktail ?cocktailLabel
ORDER BY DESC(MAX(?count)
Try it!

This is in my option inconsistent with the scheme promoted here: An instance of a cocktail would imply an individual cocktail once consumed by someone rather than a recipe.

So I suggest this query should not longer return any cocktail:

SELECT ?cocktail ?cocktailLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?cocktail wdt:P31 wd:Q134768.
}
Try it!

Rather should this one:

SELECT ?cocktail ?cocktailLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?cocktail wdt:P279 wd:Q134768.
}
Try it!

--Shisma (talk) 19:11, 16 March 2020 (UTC)[reply]

Changing datatype of Property:P1820 to external-id[edit]

I asked to change the datatype of Open Food Facts food additive ID (P1820) from string to external-id, like two other properties of Open Food Facts project: Open Food Facts food category ID (P1821) and Open Food Facts ingredient ID (P5930). If you have any comments, write on the property discussion page or Wikidata:Contact_the_development_team#String_to_external-id. Wostr (talk) 11:34, 28 September 2020 (UTC)[reply]

Relationship with Open Food Facts[edit]

There are Wikidata properties for open food facts and obviously some cultural exchange here. I am unclear if there is on-wiki documentation of project relationships.

There was this recent talk

at FOSDEM 2020, and I thought to check out this WikiProject. Blue Rasberry (talk) 00:52, 22 December 2020 (UTC)[reply]

A personal subproject[edit]

Teolemon
Vladimir Alexiev
Ash_Crow
d1g
Dhx1
Tris T7 TT me
Gobonobo
Ainali
Wkee4ager
Rtnf
Dguarrac
Middle river exports (talk) 13:59, 5 September 2022 (UTC)[reply]
Wolfgang8741

Notified participants of WikiProject Food I’m working on a personal project on the subject wild food (Q29957571), and would be happy to receive relevant comments from contributors to this wikiproject. My personal project page: [1]. -- Abuluntu (👨🏼‍💻💬) 08:40, 27 July 2021 (UTC)[reply]

Should I use has part(s) (P527) or made from material (P186) to add all the things that make a brigadeiro (Q2914862)?[edit]

I asked this in the wider Project Chat, but I imagine it's better to talk about the people more involved in this. Tetizeraz (talk) 11:53, 28 August 2021 (UTC)[reply]

Property talk:P186 recommends made from material (P186) as far as I can tell. -- Abuluntu (👨🏼‍💻💬)
Abuluntu what about has listed ingredient (P4543)? Tetizeraz (talk) 17:15, 29 August 2021 (UTC)[reply]
TetizerazIf brigadeiro (Q2914862) is commonly available as a packaged item with an ingredient list, that is the correct option. I’m not an expert, but the property proposal summarizes the intention of the property at creation, look at whats written under “description:”. -- Abuluntu (👨🏼‍💻💬) 19:38, 29 August 2021 (UTC)[reply]

Large-scale imports of food items data from FoodData Central & OpenFoodFacts & studies[edit]

Have people built pipelines by which data added or changed on these data repositories are at large-scale and quickly synced to WikiData? That could be very useful, for example for open source food scanning apps that could then use Wikidata (so that things better integrate with each other and can also use additional properties&values).

  • FoodData Central data by the US Departments of Agriculture is released under CC0 and especially useful for generic foods such as categories of fruits like "apple" (Q89)
  • OpenFoodFacts seems very aligned with Wikidata – they have a project for improving Wikidata with Open Food Facts Data but I don't know what is being done here in terms of automatic updating and maybe changes to Wikidata items should also be updating OFF items or show up in some merge conflicts reports
  • There are and could be studies that assess items at large scale which would be especially be useful in regards to supply chain transparency / issues like deforestation-associated products (e.g. lots of beef products and some cocoa products). Here is an example dataset study that calculated standardized detailed environmental impacts of >57,000 food products of some supermarkets (the source dataset could be linked to in some property)

With automatic synchronization I'd also include bots that propose change that only need to be quickly confirmed similar to how patrolling works. I'm also interested if there already are open source apps or other tools that use Wikidata instead of OpenFoodFacts directly.

Are there already some projects and ongoing work to or that implement these things? Please link. If not, it would be great if you could set up the coding for this. Prototyperspective (talk) 12:20, 20 February 2024 (UTC)[reply]