Package org.wymiwyg.rdf.graphs.impl

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


                    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

          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

  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

        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

    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

    }

    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

            .next();
        // test, why does it takes sooo much longer with molecule?
        SimpleGraph currentGraph = new SimpleGraph();
        currentGraph.addAll(current);
        GraphLeanifier.makeLean(currentGraph);
        currentGraph.markFinalized();
        leanifiedMolecules.add(currentGraph);
      }
      contextualMolecules = new HashSet<MaximumContextualMolecule>();
      for (Iterator<Graph> iter = leanifiedMolecules.iterator(); iter
          .hasNext();) {
View Full Code Here

        object = (Node) mapping.get(object);
      }
      Triple mappedTriple = new TripleImpl(subject, predicate, object);
      result.add(mappedTriple);
    }
    result.markFinalized();
    return result;
  }

  public static void main(String[] args) {
View Full Code Here

     * @see java.util.Iterator#next()
     */
    public Graph nextGraph() {
      SimpleGraph result = new SimpleGraph();
      result.addAll(multiSubllistsIter.nextList());
      result.markFinalized();
      return result;
    }

  }

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.