Examples of AnonymizedGraph


Examples of org.wymiwyg.rdf.graphs.impl.AnonymizedGraph

   */
  private void createDecomposition() {
    decomposition = new SimpleFilterableDecomposition(
        new ReferenceGroundedDecompositionImpl(
            new ModelReferencingDecompositionImpl(
                new AnonymizedGraph(graph))));

  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.AnonymizedGraph

      previousResource.addProperty(FOAF.mbox, model
          .createResource("mailto:foo"));
    }
    Graph graph = JenaUtil.getGraphFromModel(model, true);
    ReferenceGroundedDecomposition dec = new ReferenceGroundedDecompositionImpl(
        new AnonymizedGraph(graph));
    /*System.out.println(dec.getContextualMolecules().size() + " - "
        + dec.getFunctionallyGroundedNodes().size() + " - "
        + dec.getTerminalMolecules().size());*/
    Set<FunctionallyGroundedNode> functionallyGroundedNodes = dec
        .getFunctionallyGroundedNodes();
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.AnonymizedGraph

   * @param graph
   *            the graph to be leanified
   * @return a lean graph expressing the same content
   */
  public static Graph getLeanVersionOf(Graph graph) {
    graph = new AnonymizedGraph(graph);
    Graph result = getLeanVersionWithoutAnonymizing(graph);
    return new DeAnonymizedGraph(result);
  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.AnonymizedGraph

  public void fileTest4() {
    for (int i = 0; i < 1; i++) {
      Model origM = ModelFactory.createDefaultModel();
      origM.read(getClass().getResource("test4.rdf").toString());

      Graph graph = new AnonymizedGraph(JenaUtil.getGraphFromModel(origM,
          true));
      ReferenceGroundedDecomposition ref = new ReferenceGroundedDecompositionImpl(
          graph);
      Set<FunctionallyGroundedNode> fgNodes = ref
          .getFunctionallyGroundedNodes();
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.AnonymizedGraph

      previousResource.addProperty(FOAF.mbox, model
          .createResource("mailto:foo"));
    }
    Graph graph = JenaUtil.getGraphFromModel(model, true);
    ReferenceGroundedDecomposition dec = new ReferenceGroundedDecompositionImpl(
        new AnonymizedGraph(graph));
    /*System.out.println(dec.getContextualMolecules().size() + " - "
        + dec.getFunctionallyGroundedNodes().size() + " - "
        + dec.getTerminalMolecules().size());*/
    Set<FunctionallyGroundedNode> functionallyGroundedNodes = dec
        .getFunctionallyGroundedNodes();
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.AnonymizedGraph

  private static boolean useDefaultOntology = true;

  public static MoleculeDiff getDiff(Model m1, Model m2) {
    return new MoleculeDiffImpl(
        (new ReferenceGroundedDecompositionImpl(
            new AnonymizedGraph(JenaUtil
                .getGraphFromModel(m1, ontology,
                    useDefaultOntology)))),
        (new ReferenceGroundedDecompositionImpl(
            new AnonymizedGraph(JenaUtil
                .getGraphFromModel(m2, ontology,
                    useDefaultOntology)))));
  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.impl.AnonymizedGraph

                    useDefaultOntology)))));
  }

  public static Model patch(Model m, MoleculeDiff diff) {
    ReferenceGroundedDecomposition resultDec = diff.patch(new ReferenceGroundedDecompositionImpl(
            new AnonymizedGraph(JenaUtil
                .getGraphFromModel(m, ontology,
                    useDefaultOntology))));
    return JenaUtil.getModelFromGraph(new DeAnonymizedGraph(ReferenceGroundedUtil.reconstructGraph(resultDec)));
  }
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.