moleculeRDF.add(factory.createStatement(moleculeURI, RDF.TYPE, factory.createURI(NAMESPACE, "Molecule")));
for (UNode<String> node : graph.nodes()) {
BNode bn = factory.createBNode(moleculeID + "_" + node.index());
nodeMap.put(node.index(), bn);
moleculeRDF.add(factory.createStatement(moleculeURI, hasAtomURI, bn));
moleculeRDF.add(factory.createStatement(bn, partOfURI, moleculeURI));
moleculeRDF.add(factory.createStatement(bn, RDF.TYPE, factory.createURI(NAMESPACE + "atom/", node.label())));
}
for (ULink<String> link : graph.links()) {
moleculeRDF.add(factory.createStatement(nodeMap.get(link.first().index()), bondURI, nodeMap.get(link.second().index())));