Line 897: |
Line 897: |
| | | |
| === Linked Data (coming soon) === | | === Linked Data (coming soon) === |
− | Whenever possible, Open Food Facts entities are linked to Wikidata, and in turn to Wikipedia. What this means is that you get access to a trove of additional encyclopedic knowledge about food. You can for instance get: Wikipedia articles about Camembert, the translation of salt in many languages, the molecular structure of a cosmetic ingredient… | + | ==== Link to Wikipedia and Wikidata ==== |
− | You have to use the Wikipedia and Wikidata APIs (here and here) to get the information you want | + | Whenever possible, Open Food Facts entities are linked to Wikidata, and in turn to Wikipedia. What this means is that you get access to a trove of additional encyclopedic knowledge about food. You can for instance get: Wikipedia articles about Camembert, the translation of salt in many languages, the molecular structure of a cosmetic ingredient…<br> |
| + | We provide the Wikidata QID, which is an unambiguous, stable and reliable identifier for a concept that will be useful to actually retrieve info from Wikipedia and Wikidata. |
| + | ===== Example ===== |
| + | Camembert de Normandie >> https://world.openfoodfacts.org/category/camemberts-de-normandie >> Q1086855 >> https://www.wikidata.org/wiki/Q1086855<br> |
| + | As you see, you'll get a beautiful image, information about the Quality label… As Wikidata is a Wiki, the knowledge you'll be able to retrieve will increase over time. |
| + | |
| + | ==== Retrieving info from Wikipedia and Wikidata ==== |
| + | You can use the Wikipedia and Wikidata APIs to get the information you want<br> |
| + | * https://www.wikidata.org/wiki/Wikidata:Data_access |
| + | * https://en.wikipedia.org/w/api.php |
| + | |
| + | ==== Examples of things you can do ==== |
| + | * Provide more context and more information about a specific Product, a Category of products, a Quality label, a Geography, a Brand, a Packaging material, an ingredient… |
| + | * Perform checks or computations by mixing Wikidata information and Open Food Facts information (and possibly other APIs) |
| | | |
| == WRITE API Documentation == | | == WRITE API Documentation == |