Closed TBoonX closed 1 year ago
One part of the issue seems to be that there is no streaming json ld writer in jena. The code is adapted that the request for formats for which no streaming writer exists now fall back to non-streaming serialization.
A useful improvement now would be writing out a log message whether streaming or non-streaming is used - not yet sure about how to handle this; e.g. the sink could either expose a flag or a more general set of capabilities.
A release candidate with the jsonld fix (and the latest jenax plugins) has been created at https://github.com/SmartDataAnalytics/RdfProcessingToolkit/releases/tag/v1.9.2-rc1
Works with RC1.
A couple of minor issues:
--out-format json
(instead of --out-format jsonld
) only writes out an empty json array []
(which might be easily mistaken for a blank node). The reason is that the json
format is only internally used if the --jq
switch is present . This is somewhat confusing.--jq
and --out-file
unexpectedly requires to specify --out-format json
Command:
java -jar $PATH_RPT integrate -o=local_licenses.jsonld --out-format=jsonld datasources.n3 get_licenses.rq
Version: 1.9.1
datasources.n3:
get_licenses.rq:
It shows an RDF result in the terminal, but writes
[]
into the jsonld file. With other formats it works.