Examples of JenaModelGraph


Examples of org.wymiwyg.rdf.graphs.jenaimpl.JenaModelGraph

    // "N-TRIPLE");
    // m2.read(MinimumFailingGraphDetector.class.getResource("test14-2.nt").toString(),
    // "N-TRIPLE");
    m0 = LeanDiffPatch.leanify(m0);
    m1 = LeanDiffPatch.leanify(m1);
    FCAGraph g1 = new FCAGraphImpl(new JenaModelGraph(m0, true));
    // FCAGraph g2 = new JenaModelGraph(m1, true);
    FCAGraph[] graphs = new FCAGraph[2];
    graphs[0] = getGraphFromResource("test4-m0.rdf");
    graphs[1] = getGraphFromResource("test4-m1.rdf");
    // GraphLeanifier.makeLean(graphs[0]);
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.jenaimpl.JenaModelGraph

    //m2.read(new File("problematic-model2.nt").toURL().toString(), "N-TRIPLE");
    m1.read(MinimumFailingGraphDetector.class.getResource("test14-1.nt").toString(), "N-TRIPLE");
    m2.read(MinimumFailingGraphDetector.class.getResource("test14-2.nt").toString(), "N-TRIPLE");
    m1 = LeanDiffPatch.leanify(m1);
    m2 = LeanDiffPatch.leanify(m2);
    Graph g1 = new JenaModelGraph(m1, true);
    Graph g2 = new JenaModelGraph(m2, true);
    MinimumFailingGraphDetector detector = new MinimumFailingGraphDetector(g1, g2);
    System.out.println("minimum failing g1 (of size "+detector.minimumFailingG1.size()+") :");
    JenaUtil.getModelFromGraph(
        detector.minimumFailingG1).write(
        System.out, "N-TRIPLE");
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.jenaimpl.JenaModelGraph

   */
  private void assertIsomorphic(String message, Model model1, Model model2) {
    long startTime = System.currentTimeMillis();
    assertTrue("Jena isomorphism", model1.isIsomorphicWith(model2));
    //System.out.println(message+" took with jena "+(System.currentTimeMillis()-startTime));
    Graph g1 = new JenaModelGraph(model1, false);
    Graph g2 = new JenaModelGraph(model2, false);
    startTime = System.currentTimeMillis();
    assertNotNull(message, GraphMatcher.getValidMapping(g1, g2));
    //System.out.println(message+" took "+(System.currentTimeMillis()-startTime));
   
  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.jenaimpl.JenaModelGraph

 
  private void assertNotIsomorphic(String message, Model model1, Model model2) {
    long startTime = System.currentTimeMillis();
    assertFalse("Jena isomorphism", model1.isIsomorphicWith(model2));
    System.out.println(message+" took with jena "+(System.currentTimeMillis()-startTime));
    Graph g1 = new JenaModelGraph(model1, false);
    Graph g2 = new JenaModelGraph(model2, false);
    startTime = System.currentTimeMillis();
    assertNull(message, GraphMatcher.getValidMapping(g1, g2));
    System.out.println(message+" took "+(System.currentTimeMillis()-startTime));
   
  }
View Full Code Here

Examples of org.wymiwyg.rdf.graphs.jenaimpl.JenaModelGraph

    StmtIterator modelIter = model.listStatements();
    while (modelIter.hasNext()) {
      Statement stmt = modelIter.nextStatement();
      System.out.println(stmt);
    }
    getValidMapping(new JenaModelGraph(model, false), new JenaModelGraph(model, false));
  }
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.