final Object input = JSONUtils.fromString(inputstring);
final Graph graph = new LinkedHashModel();
final ParseErrorCollector parseErrorListener = new ParseErrorCollector();
final ParserConfig parserConfig = new ParserConfig();
final SesameTripleCallback callback = new SesameTripleCallback(
new StatementCollector(graph), ValueFactoryImpl.getInstance(), parserConfig,
parseErrorListener);
JsonLdProcessor.toRDF(input, callback);