Unclear.
1/ 2.11.0 is old. Use a later version with JSON-LD built-in.
2/ You may need to use RDFDataMgr.
Not sure at 2.11.old whether Lang registration interacted with the Jena
RDFReaderFImpl.
3/ Not clear what you registered and how.
4/ Did you call RIOT.init()? Maybe needed.
Andy
On 21/12/15 17:25, Martynas Jusevičius wrote:
Hey,
I have a situation where I register a new Lang (JSON-LD) in Jena
2.11.0 but I only have a Writer for it, not a Reader. How can I check
whether Reader exists for a certain Lang before doing the actual read?
Right now I get an exception:
com.hp.hpl.jena.shared.NoReaderForLangException: JSON-LD
at
com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:100)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:274)
Thanks,
Martynas