Hey there,

While testing I found that the notations of precision in the internal dumpfiles is not always what I expected:

My example is the item Zwickau (json and stacktrace attached):

The precision in the geolocation is denoted as an decimal value, while the implementation of GlobalCoordinatesValueImpl requires a long value encoding a precision.

How should this discrepancy be handled best?

Greetings,
Fredo

PS: I am at the moment checking all the errors that occur while converting an earlier dumpfile, so I am likely to stumble upon more problems soon.
Precision must be one of the predefined 
values.org.wikidata.wdtk.datamodel.implementation.GlobeCoordinatesValueImpl.<init>(GlobeCoordinatesValueImpl.java:77)org.wikidata.wdtk.datamodel.implementation.DataObjectFactoryImpl.getGlobeCoordinatesValue(DataObjectFactoryImpl.java:87)org.wikidata.wdtk.dumpfiles.JsonConverter.getGlobeCoordinatesValue(JsonConverter.java:482)org.wikidata.wdtk.dumpfiles.JsonConverter.getValueSnak(JsonConverter.java:402)org.wikidata.wdtk.dumpfiles.JsonConverter.getSnak(JsonConverter.java:684)org.wikidata.wdtk.dumpfiles.JsonConverter.getClaim(JsonConverter.java:658)org.wikidata.wdtk.dumpfiles.JsonConverter.getStatements(JsonConverter.java:287)org.wikidata.wdtk.dumpfiles.JsonConverter.convertToItemRecord(JsonConverter.java:241)wikidata.assignment.JSONChecker.parseString(JSONChecker.java:58)wikidata.assignment.JSONChecker.call(JSONChecker.java:27)wikidata.assignment.JSONChecker.call(JSONChecker.java:1)java.util.concurrent.FutureTask.run(FutureTask.java:262)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)java.lang.Thread.run(Thread.java:744)

Attachment: Zwickau.json
Description: application/json

_______________________________________________
Wikidata-tech mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech

Reply via email to