mGraph.add(new TripleImpl(node2, prop3, plainLiteralB));
mGraph.add(new TripleImpl(blank1, prop4, plainLiteralC));
mGraph.add(new TripleImpl(blank1, prop5, typedLiteralA));
mGraph.add(new TripleImpl(node1, prop6, blank1));
SerializingProvider provider = new RdfJsonSerializingProvider();
ByteArrayOutputStream serializedGraph = new ByteArrayOutputStream();
provider.serialize(serializedGraph, mGraph, "application/rdf+json");
// System.out.println(serializedGraph.toString());
ParsingProvider parsingProvider = new RdfJsonParsingProvider();
ByteArrayInputStream jsonIn = new ByteArrayInputStream(serializedGraph.toByteArray());
MGraph parsedMGraph = new SimpleMGraph();
parsingProvider.parse(parsedMGraph, jsonIn, "application/rdf+json", null);