throw new RuntimeException(e);
}
// System.out.println("writing " + fgNode + " to " +
// namedNode.getURIRef());
if (fgNode instanceof CrossGraphFgNode) {
CrossGraphFgNode crossGraphFgNode = (CrossGraphFgNode) fgNode;
// naturalizer.setCurrentGraphLabel("onlyIn1");
// naturalizer.setCurrentGraphLabel(relativePath.substring("fgNodes/"
// .length())
// + "onlyIn1");
for (FunctionallyGroundedNode node : crossGraphFgNode.getNodesIn1()) {
writeFgNode(node, naturalizer.getGroundedIn(node), naturalizer,
zipOut);
}
// naturalizer.setCurrentGraphLabel("onlyIn2");
/*
* naturalizer.setCurrentGraphLabel(relativePath.substring("fgNodes/"
* .length()) + "onlyIn2");
*/
for (FunctionallyGroundedNode node : crossGraphFgNode.getNodesIn2()) {
writeFgNode(node, naturalizer.getGroundedIn(node), naturalizer,
zipOut);
}
} else {
for (NonTerminalMolecule molecule : fgNode.getGroundingMolecules()) {