Package com.hp.hpl.jena.gvs.impl

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


  }

  public void testSimpleIFP() throws Exception {
    ToyClock clock = new ToyClock();
    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()
View Full Code Here


  }

  public void testOneAndTwoNTifp() throws Exception {
    ToyClock clock = new ToyClock();
    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()
View Full Code Here

  }

  public void testCrossoverIFP() throws Exception {
    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);
    Source source0 = new SourceImpl("http://example.org/graph-source0");
    Source source1 = new SourceImpl("http://example.org/graph-source1");
    Source source2 = new SourceImpl("http://example.org/graph-source2");
    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);
View Full Code Here

  }

  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'"));
View Full Code Here

  }

  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"));
View Full Code Here

   * @throws Exception
   */
  public void testBorderTime() throws Exception {
    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);
    Source source = new SourceImpl("http://example.org/graph-source");
    FCAGraph[] graphs = new FCAGraph[2];
    graphs[0] = new FCAGraphImpl(
        modelWithStatements("_a dc:subject _b"));
    graphs[1] = new FCAGraphImpl(
        modelWithStatements("http://example.org/ dc:author 'foo'"));
View Full Code Here

  }

  public void testFromFiles10io() throws Exception {
    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);
    Source source = new SourceImpl("http://example.org/graph-source");
    FCAGraph orig = getGraphFromResource("test10-m0.rdf");
    clock.setTime(new Date());
    store.assertGraph(source, orig);
    FCAGraph retrived = store.getGraphOverTime(Collections.singleton(source))
        .getGraph(new Date());
View Full Code Here

  }

  public void testFromFiles13() throws Exception {
    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);
    Source source = new SourceImpl("http://example.org/graph-source");
    FCAGraph orig = getGraphFromResource("test13.rdf");
    clock.setTime(new Date());
    store.assertGraph(source, orig);
    FCAGraph retrived = store.getGraphOverTime(Collections.singleton(source))
        .getGraph(new Date());
View Full Code Here

  }

  public void testFromFiles14() throws Exception {
    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);
    Source source = new SourceImpl("http://example.org/graph-source");
    FCAGraph orig = getGraphFromResource("test14.rdf");
    clock.setTime(new Date());
    store.assertGraph(source, orig);
    FCAGraph retrived = store.getGraphOverTime(Collections.singleton(source))
        .getGraph(new Date());
View Full Code Here

  }

  protected void performTestsWithGraphs(FCAGraph[] graphs) {
    ToyClock clock = new ToyClock();
    Store store = getStoreImpl(clock);
    Source source = new SourceImpl("http://example.org/graph-source");
    TimedGraphSequence tgs = TimedGraphSequence
        .getSequenceWithRandomDates(graphs);
    for (int i = 0; i < tgs.getSize(); i++) {
      clock.setTime(tgs.getDate(i));
      store.updateGraph(source, tgs.getGraph(i));
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.gvs.impl.SourceImpl

Copyright © 2018 www.massapicom. 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.