Structured Data/Wikidata

From Open Food Facts wiki
Revision as of 14:24, 21 May 2022 by Teolemon (talk | contribs)
Jump to navigation Jump to search

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

Open Pet Food Facts

Other/To investigate

https://wikirate.org/The_Coca_Cola_Company