Examples of markFinalized()


Examples of org.wymiwyg.rdf.graphs.fgnodes.impl.FunctionallyGroundedNodeImpl.markFinalized()

  private FunctionallyGroundedNode functionalyze(FunctionallyGroundedNode node) {
    FunctionallyGroundedNodeImpl result = new FunctionallyGroundedNodeImpl();
    for (NonTerminalMolecule molecule : node.getGroundingMolecules()) {
      result.addMolecule(functionalyze(molecule));
    }
    result.markFinalized();
    return result;
  }

  private GroundedNode functionalyze(GroundedNode node) {
    if (node instanceof NamedNode) {
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.fgnodes.impl.FunctionallyGroundedNodeImpl.markFinalized()

    LiteralNode uriLit = new TypedLiteralNodeImpl(uriString, anyURIDataType);
    Triple triple = new TripleImpl(afgn, nameProp, uriLit);
    molecule.add(triple);
    molecule.markFinalized();
    result.addMolecule(molecule);
    result.markFinalized();
    result.notifyAllFinalized();
    return result;
  }

  private NonTerminalMolecule functionalyze(NonTerminalMolecule molecule) {
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.fgnodes.impl.NaturalizedGraph.markFinalized()

    }

    try {
      SimpleGraph result = new NaturalizedGraph(nonNaturalGraph, leanifiedDec
          .getFunctionallyGroundedNodes());
      result.markFinalized();
      /*System.out.println("DEBUG not anonymized:");
      JenaUtil.getModelFromGraph(result).write(System.out, "N3");*/
      return result;
    } catch (NoReplacementFoundException ex) {
      log.error(ex.toString());
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.SimpleGraph.markFinalized()

    for (Triple triple : relevantTriples) {
      result.add(new TripleImpl(replaceIfPossible(triple.getSubject(),
          map), triple.getPredicate(), replaceIfPossible(triple
          .getObject(), map)));
    }
    result.markFinalized();
    return result;
  }

  /**
   * @param subject
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.SimpleGraph.markFinalized()

                    object = NonTerminalMolecule.GROUNDED_NODE;
                  }
                  SimpleGraph result = new SimpleGraph();
                  result.add(new TripleImpl(subject, triple
                      .getPredicate(), object));
                  result.markFinalized();
                  return result;
                }

              }.readComponent(componentDir);
            }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.SimpleGraph.markFinalized()

          if ((downloadAttemptNode == null) || !triple.getSubject().equals(downloadAttemptNode)) {
            newWorkingGraph.add(triple);
          }
        }
        newWorkingGraph.addAll(logEntryGraph);
        newWorkingGraph.markFinalized();
        storeView.revokeAll();
        storeView.assertGraph(new FCAGraphImpl(newWorkingGraph));
      }
     
    });
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.SimpleGraph.markFinalized()

  public void testWithEmptyGraphs() throws Exception {
    FCAGraph[] graphs = new FCAGraph[4];
    for (int i = 0; i < graphs.length; i++) {
      SimpleGraph simpleGraph = new SimpleGraph();
      simpleGraph.markFinalized();
      graphs[i] = new FCAGraphImpl(simpleGraph);
    }
    performTestsWithGraphs(graphs);
  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.SimpleGraph.markFinalized()

        node2descriptionDocMap.put(triple.getSubject(), descriptionDoc);
      } else {
        simpleGraph.add(triple);
      }
    }
    simpleGraph.markFinalized();
    SimpleGraph tripleSet = simpleGraph;
    for (Entry<Node, NamedNode> entry : node2descriptionDocMap.entrySet()) {
      tripleSet = replaceNode(entry.getKey(), descriptionPathToFgNode
          .get(entry.getValue()), tripleSet);
      tripleSet.markFinalized();
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.SimpleGraph.markFinalized()

    simpleGraph.markFinalized();
    SimpleGraph tripleSet = simpleGraph;
    for (Entry<Node, NamedNode> entry : node2descriptionDocMap.entrySet()) {
      tripleSet = replaceNode(entry.getKey(), descriptionPathToFgNode
          .get(entry.getValue()), tripleSet);
      tripleSet.markFinalized();
    }
    return tripleSet;
  }

  /**
 
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.SimpleGraph.markFinalized()

    }

    try {
      SimpleGraph result = new NaturalizedGraph(nonNaturalGraph, leanifiedDec
          .getFunctionallyGroundedNodes());
      result.markFinalized();
      /*System.out.println("DEBUG not anonymized:");
      JenaUtil.getModelFromGraph(result).write(System.out, "N3");*/
      return result;
    } catch (NoReplacementFoundException ex) {
      log.error(ex.toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.