1

For example, I need to get list of eye colors with wikidata API:

https://www.wikidata.org/wiki/Property:P1340

Is it possible to receive names of the colors without SPARQL queries?

https://www.wikidata.org/w/api.php?action=wbgetentities&ids=P1340&languages=en

Thanks in advance.

Enstl
  • 15
  • 3
  • I find it easier via [SPARQL query](https://query.wikidata.org/#SELECT%20DISTINCT%20%3Fcolor%20%3FcolorLabel%20%20WHERE%20%7B%0A%09%3Fs%20wdt%3AP1340%20%3Fcolor.%0A%20%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%0A%20%20%20%7D%0A%7D%20%0A). Then you can, eventually, use the item ids (e.g. Q17122705) to query for the label like [this](https://www.wikidata.org/w/api.php?format=jsonfm&action=wbgetentities&ids=Q17122705&languages=en&props=labels) – atineoSE Aug 13 '16 at 10:42