Christopher added a comment.
The PRETTY_PRINT setting of the TurtleWriter is set to "true" by default.
This causes the writer to only write the literal "label" without the datatype.
This affects boolean, decimal, integer and double literals.
To fix make the following change (starting at line 623) in Munge.java:
final RDFWriter writer = Rio.createWriter(RDFFormat.TURTLE, lastWriter);
final WriterConfig config = writer.getWriterConfig();
config.set(BasicWriterSettings.PRETTY_PRINT, false);
handler = new PrefixRecordingRdfHandler(writer, prefixes);
Other default config settings are:
config.set(BasicWriterSettings.RDF_LANGSTRING_TO_LANG_LITERAL, true);
config.set(BasicWriterSettings.XSD_STRING_TO_PLAIN_LITERAL, true);
TASK DETAIL
https://phabricator.wikimedia.org/T131235
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Christopher
Cc: Christopher, Aklapper, Avner, debt, Gehel, D3r1ck01, FloNight, Izno,
jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs