Package org.wymiwyg.rdf.molecules.diff

Examples of org.wymiwyg.rdf.molecules.diff.CrossGraphFgNode


   */
  private CrossGraphFgNode getCgFgNodeFromPathNode(ZipFile zipFile, PathNode currentPath)
      throws IOException {
    NamedNode describingResource = new NamedNodeImpl(
        ReferencingNaturalizer.rootURL + currentPath.getPath());
    CrossGraphFgNode result = new CrossGraphFgNode();
    PathNode nodesIn1Path = currentPath.getSubPath("onlyIn1/");
    deserializeFgNodes(zipFile, nodesIn1Path, result.getNodesIn1());
    PathNode nodesIn2Path = currentPath.getSubPath("onlyIn2/");
    deserializeFgNodes(zipFile, nodesIn2Path, result.getNodesIn2());
    descriptionPathToFgNode.put(describingResource, result);
    return result;
  }
View Full Code Here


      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()) {
View Full Code Here

TOP

Related Classes of org.wymiwyg.rdf.molecules.diff.CrossGraphFgNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.