options.useNamespaces = true;
try {
JsonLdProcessor.toRDF(JsonUtils.fromInputStream(in), callback, options);
} catch (final JsonLdError e) {
throw new RDFParseException("Could not parse JSONLD", e);
} catch (final JsonParseException e) {
throw new RDFParseException("Could not parse JSONLD", e);
} catch (final RuntimeException e) {
if (e.getCause() != null && e.getCause() instanceof RDFParseException) {
throw (RDFParseException) e.getCause();
}
throw e;