valueFactory, getParserConfig(), getParseErrorListener());
try {
JsonLdProcessor.toRDF(JSONUtils.fromInputStream(in), callback);
} catch (final JsonLdError 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;