Hey,

> and it's DataType should be  "Commons media file"  ? not "string" ?

The DataType is not specified in the JSON segment you pasted. It is not
stored in entity pages. The "string" indicates the type of DataValue, which
is a more low level concept. We have a limited set of these DataValue
types, and a potentially much bigger set of DataTypes build on top of that.
For instance the DataTypes "integer", "positive integer", "percentage" and
"probability" would presumably all use the "number" DataValue.

> another Question : should i usually rely on the datatypes written in the
json dumps or should i build and index of wkidata properties and their
datatypes to avoid such situation ?

If you need the actual DataType, you will indeed need to build an index
with the properties.

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil. ~=[,,_,,]:3
--
_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l

Reply via email to