He correctly identified JSON-LD. JSON-LD is not a stream output language (the writer needs all the data available before calling the jsonld-java code), and riot is a stream analyzer (it can handle files of any size) and must be written to the stream mode.
A tool for reading data into memory and writing it to rdfcat .
rdfcat -out JSONLD NIF-example2.ttl
source share