I am reading a file using the following: myModel.read(myInputStream, "JSON-LD");
I get an exception:org.apache.jena.riot.RiotException: [line: 1, col: 1 ] Content is not allowed in prolog. at org.apache.jena.riot.system.ErrorHandlerFactory$ErrorHandlerStd.fatal(ErrorHandlerFactory.java:153) at org.apache.jena.riot.lang.ReaderRIOTRDFXML$ErrorHandlerBridge.fatalError(ReaderRIOTRDFXML.java:313)
...The "ReaderRIOTRDFXML" makes me wonder if Jena is trying to input my data in RDF/XML rather than JSON-LD format. I am still on Jena 3.17. Do I need a later version to read JSON-LD?
OpenPGP_signature
Description: OpenPGP digital signature