On 26/02/14 16:42, Fredo Erxleben wrote:
I will extend this question to:
- So I can ignore "unit" - keys in quantity values too (at least as for
now)?
Yes. Units will most likely be represented by Wikidata entities at some point, similar to the globe or preferred calendar models, but the details are not known yet.
- will "wikibase-entityid"s (in the WDTK: EntityIdValue) only be of
"entity-type" "item" (WDTK: ItemIdValue)?
example: ["value",57, "wikibase-entityid",{"entity-type":"item","numeric-id":353501}]
I have not encountered other versions so far…
For now, all entities in values are items, but having also properties and other things there is planned (having properties would make sense once claims on property pages are supported, to relate properties with each other). So it is ok to support only items for now, but an exception should be thrown if an unsupported type is encountered.
Markus
On 26.02.2014 16:34, Markus Krötzsch wrote:
Hi Fredo,
On 26/02/14 16:18, Fredo Erxleben wrote:
Hey there,
When I parse the JSON from the dumpfiles, I find coordinates like
{"latitude":51.835, "longitude":10.785277777778, "altitude":null, "precision":0.00027777777777778, "globe":"http://www.wikidata.org/entity/Q2"}
However the altitude-key is not represented in the WDTK data model. Is this key deprecated (i.e. should I ignore it when converting dump-JSON to WDTK-objects)?
Yes, it has been decided some time ago that altitude will not become part of the geo datatype any time soon. Altitudes will probably be specified using quantity values (as soon as units of measurement work). The altitude data in the internal dump format can be ignored for now.
Cheers,
Markus
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech