roygronmo commented on issue #2300:
URL: https://github.com/apache/jena/issues/2300#issuecomment-1971145323
Thank you. I upgraded to jena 4.10.0, but I am a bit skeptic to using 5.0.0,
since it is only a release candidate (rc1).
The following code works:
```
public static String convertToTurtle(Model description) {
try (ByteArrayOutputStream modelWriter = new
ByteArrayOutputStream();) {
RDFWriter.source(description)
.format(RDFFormat.TURTLE)
.output(modelWriter);
return modelWriter.toString(StandardCharsets.UTF_8);
} catch (IOException e) {
throw new NrkTechnicalException("Failed to serialize model as
TURTLE", e);
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]