Changes

Jump to navigation Jump to search
19 bytes added ,  15:13, 11 December 2017
Line 901: Line 901:  
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.
 
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 =====
 
===== Example =====
Camembert de Normandie >> https://world.openfoodfacts.org/category/camemberts-de-normandie >> Q1086855 >> https://www.wikidata.org/wiki/Q1086855<br>
+
 
 +
https://world.openfoodfacts.net/categories.json
 
<pre>
 
<pre>
 
{"linkeddata":{"wikidata:en":"Q40050"},"url":"https://world.openfoodfacts.net/category/beverages","name":"Beverages","id":"en:beverages","products":14196}
 
{"linkeddata":{"wikidata:en":"Q40050"},"url":"https://world.openfoodfacts.net/category/beverages","name":"Beverages","id":"en:beverages","products":14196}
 
</pre>
 
</pre>
 +
 +
Beverages >> https://world.openfoodfacts.org/category/beverages >> Q40050 >> https://www.wikidata.org/wiki/Q40050<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.
 
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.
  

Navigation menu