Structured Data/Wikidata

From Open Food Facts wiki
Revision as of 10:34, 17 August 2024 by Teolemon (talk | contribs) (→‎Other/To investigate)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This project aims at improving Wikidata with Open Food Facts Data, with the aim of eventually reusing the data, and linking the Open Food Facts data with Wikidata, and thus with many other services.

See also: https://www.wikidata.org/wiki/Wikidata:WikiProject_Food

Companies

Brands

  • Marking brands as "instance of" brands
  • Adding the Wikidata item number (QXXXXXX) on the Open Food Facts taxonomy

Categories

  • Marking categories as "subclass of" their parent category
  • Adding the Wikidata item number (QXXXXXX) on the Open Food Facts taxonomy

Labels

Additives

Ingredients

Diets

Diets on Wikidata: https://tools.wmflabs.org/wikidata-todo/tree.html?q=474191&rp=279,31

Stores

Getting information into Wikidata

Getting information from Wikidata

Food properties

  • barcode property: https://www.wikidata.org/wiki/Property:P3962
  • PLU Code property: https://www.wikidata.org/wiki/Property:P4030
  • INAO: https://www.wikidata.org/wiki/Property:P3895

Tools

Getting a wikidata taxonomy in JSON

npm install -g wikidata-taxonomy
wdtaxonomy -d -i -f json 2095

https://www.npmjs.com/package/wikidata-taxonomy

SPARQL

For SPARQL queries: https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries#Understanding_SPARQL -

Models on the French Wikipedia

Presentation during the Wikidata Reuse Days

Open Beauty Facts

https://wiki.openfoodfacts.org/OBF:Wikidata

Open Products Facts

  • We have 36000 categories of products to model
  • We have many times this of instances of products
  • We have all the associated properties, brands, labels… to improve maintain…

Open Pet Food Facts

Other/To investigate

Get in touch

Slack channel