Parser parser = Parser.getInstance();
Graph tc1 = parser.parse(
getClass().getResourceAsStream("documentation-example.nt"), SupportedFormat.N_TRIPLE);
final Set<String> lines1 = serializeToLines(tc1);
TripleCollection tc2 = new SimpleMGraph();
tc2.addAll(tc1);
//add <bundle:///intro> <http://clerezza.org/2009/08/documentation#after> <bundle://org.apache.clerezza.platform.documentation/intro> .
tc2.add(new TripleImpl(new UriRef("bundle:///intro"),
new UriRef("http://clerezza.org/2009/08/documentation#after"),
new UriRef("bundle://org.apache.clerezza.platform.documentation/intro")));
final Set<String> lines2 = serializeToLines(tc2);