Examples of FCAGraphImpl


Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

      //model.read(new File(fileName).toURL().toString());
      model.read(MinimumFailingGraphDetector.class.getResource(fileName).toString());
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
    return new FCAGraphImpl(model);

  }
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);
    Source source = new SourceImpl("http://example.org/graph-source#");
    Model model0 = ModelFactory.createDefaultModel();
    model0.read(StoreTest.class.getResource("update-test0.rdf").toString());
    FCAGraph graph0 = new FCAGraphImpl(model0);
    clock.setTime(new Date());
    store.updateGraph(source, graph0);
    store = null;
    Thread.sleep(2);
    store = reGetStoreImpl();
    Model model1 = ModelFactory.createDefaultModel();
    model1.read(StoreTest.class.getResource("update-test1.rdf").toString());
    FCAGraph graph1 = new FCAGraphImpl(model1);
    clock.setTime(new Date());
    store.updateGraph(new SourceImpl("http://example.org/graph-source#"),
        graph1);
    FCAGraph graphR = store.getGraphOverTime(
        Collections.singleton((Source) new SourceImpl(
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

    expectedGraph = testData.getGraph(graphNumber);
    System.out.println("Expecting graph number " + graphNumber + " for "
        + retrievingDate);
    FCAGraph retrievedGraph = store.getGraphOverTime(sourceSet).getGraph(
        retrievingDate);
    retrievedGraph = new FCAGraphImpl(MoleculeBasedLeanifier
        .getLeanVersionOf(retrievedGraph));
    boolean result = expectedGraph.equals(retrievedGraph);
    if (!result) {
      System.out.println("Jena isomorphism: "
          + JenaUtil.getModelFromGraph(retrievedGraph)
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

    expectedGraph = testData.getGraph(graphNumber);
    System.out.println("Expecting graph number " + graphNumber + " for "
        + retrievingDate);
    FCAGraph retrievedGraph = store.getGraphOverTime(sourceSet).getGraph(
        retrievingDate);
    retrievedGraph = new FCAGraphImpl(MoleculeBasedLeanifier
        .getLeanVersionOf(retrievedGraph));
    boolean result = expectedGraph.equals(retrievedGraph);
    if (!result) {
      System.out.println("But got: ");
      JenaUtil.getModelFromGraph(retrievedGraph).write(System.out);
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

    // Model model1 = modelWithStatements("_a dc:subject 'test1';
    // http://www.google.com/ foaf:maker 'ygf'");
    Model model1 = modelWithStatements("_a dc:subject _b");
    Model model2 = ModelFactory.createDefaultModel();
    model2.createResource().addProperty(DC.subject, "test2");
    graphs[0] = new FCAGraphImpl(model1);
    graphs[1] = new FCAGraphImpl(model2);
    clock.setTime(new W3CDateFormat()
    .parse("2006-05-01T16:30:00Z"));
    store.updateGraph(source, graphs[0]);
    clock.setTime(new W3CDateFormat()
    .parse("2006-05-01T16:32:00Z"));
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

    Store store = getStoreImpl(clock);
    Source source0 = new SourceImpl("http://example.org/graph-source0");
    Source source1 = new SourceImpl("http://example.org/graph-source1");
    Model model0 = modelWithStatements("_a dc:subject 'hello'; _a http://xmlns.com/foaf/0.1/mbox 'm'");
    Model model1 = modelWithStatements("_a rdfs:label 'hi'; _a http://xmlns.com/foaf/0.1/mbox 'm'");
    FCAGraph graph0 = new FCAGraphImpl(model0);
    FCAGraph graph1 = new FCAGraphImpl(model1);
    clock.setTime(new W3CDateFormat()
    .parse("2006-05-01T16:30:00Z"));
    store.updateGraph(source0, graph0);
    clock.setTime(new W3CDateFormat()
    .parse("2006-05-01T16:32:00Z"));
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

    Store store = getStoreImpl(clock);
    Source source0 = new SourceImpl("http://example.org/graph-source0");
    Source source1 = new SourceImpl("http://example.org/graph-source1");
    Model model0 = modelWithStatements("_a dc:subject 'hello'; _a http://xmlns.com/foaf/0.1/mbox 'm'; _a http://xmlns.com/foaf/0.1/mbox 'n'");
    Model model1 = modelWithStatements("_a rdfs:label 'hi'; _a http://xmlns.com/foaf/0.1/mbox 'm'");
    FCAGraph graph0 = new FCAGraphImpl(model0);
    FCAGraph graph1 = new FCAGraphImpl(model1);
    clock.setTime(new W3CDateFormat()
    .parse("2006-05-01T16:30:00Z"));
    store.updateGraph(source0, graph0);
    clock.setTime(new W3CDateFormat()
    .parse("2006-05-01T16:32:00Z"));
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

    Source source3 = new SourceImpl("http://example.org/graph-source3");
    Model model0 = modelWithStatements("_a dc:subject 'hello'; _a http://xmlns.com/foaf/0.1/mbox 'm'; _a http://xmlns.com/foaf/0.1/mbox 'n'");
    Model model1 = modelWithStatements("_a rdfs:label 'hi'; _a http://xmlns.com/foaf/0.1/mbox 'm'");
    Model model2 = modelWithStatements("_a rdfs:comment 'foo'; _a http://xmlns.com/foaf/0.1/mbox 'n'; _a http://xmlns.com/foaf/0.1/mbox 'o'");
    Model model3 = modelWithStatements("_a rdfs:comment 'bar'; _a http://xmlns.com/foaf/0.1/mbox 'o'");
    FCAGraph graph0 = new FCAGraphImpl(model0);
    FCAGraph graph1 = new FCAGraphImpl(model1);
    FCAGraph graph2 = new FCAGraphImpl(model2);
    FCAGraph graph3 = new FCAGraphImpl(model3);
    clock.setTime(new W3CDateFormat()
        .parse("2006-05-01T16:30:00Z"));
    store.updateGraph(source0, graph0);
    clock.setTime(new W3CDateFormat()
    .parse("2006-05-01T16:32:00Z"));
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

  public void testReaddingSame() throws Exception {
    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);
    Source source = new SourceImpl("http://example.org/graph-source");
    FCAGraph[] graphs = new FCAGraph[3];
    graphs[0] = new FCAGraphImpl(
        modelWithStatements("_a dc:subject ''"));
    graphs[1] = new FCAGraphImpl(
        modelWithStatements("_a dc:author 'bla'"));
    graphs[2] = new FCAGraphImpl(
        modelWithStatements("_a dc:subject ''"));
    clock.setTime(new W3CDateFormat()
    .parse("2006-05-01T16:30:00Z"));
    store.updateGraph(source, graphs[0]);
    clock.setTime(new W3CDateFormat()
View Full Code Here

Examples of com.hp.hpl.jena.gvs.impl.FCAGraphImpl

  public void testNamedUnnamed() {
    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);;
    Source source = new SourceImpl("http://example.org/graph-source");
    FCAGraph[] graphs = new FCAGraph[3];
    graphs[0] = new FCAGraphImpl(
        modelWithStatements("_a dc:subject 'nbmnb'"));
    graphs[1] = new FCAGraphImpl(
            modelWithStatements("urn:urn-5:BvkoXZbrJ83FXCkas0+D67bgHJo= dc:subject _b"));
    graphs[2] = new FCAGraphImpl(
            modelWithStatements("urn:urn-5:BvkoXZbrJ83FXCkas0+D67bgHJo= dc:author _b"));
    TimedGraphSequence tgs = TimedGraphSequence
        .getSequenceWithRandomDates(graphs);
    for (int i = 0; i < tgs.getSize(); i++) {
      clock.setTime(tgs.getDate(i));
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.