Graph fooGraph = JRDF_FACTORY.getNewGraph("foo");
Graph barGraph = JRDF_FACTORY.getNewGraph("bar");
GraphElementFactory barElementFactory = barGraph.getElementFactory();
URI uri1 = URI.create("urn:hello");
URI uri2 = URI.create("urn:there");
Resource resource = barElementFactory.createResource(uri1);
resource.addValue(uri1, uri2);
resource.addValue(uri2, uri2);
GraphElementFactory fooElementFactory = fooGraph.getElementFactory();
Resource blankResource = fooElementFactory.createResource();
blankResource.addValue(uri1, uri2);
blankResource.addValue(uri1, uri1);
blankResource.addValue(uri2, uri2);
}