Package org.openrdf.sail.memory

Examples of org.openrdf.sail.memory.MemoryStore


  }

  @Override
  protected Repository newRepository() {
    Federation sail = new Federation();
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    return new SailRepository(new DatasetSail(sail));
  }
View Full Code Here


    // Note: adding more members, combined with the round-robin algorithm for
    // distributing new statements, cause test failures due to the fact that
    // the inferencing happens locally.

    Federation sail = new Federation();
    sail.addMember(new SailRepository(new ForwardChainingRDFSInferencer(new MemoryStore())));
    return new SailRepository(sail);
  }
View Full Code Here

  @Override
  protected Repository createRepository()
    throws IOException
  {
    Federation sail = new Federation();
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    return new SailRepository(sail);
  }
View Full Code Here

  }

  protected void setUp()
    throws Exception
  {
    SailRepository ref = new SailRepository(new MemoryStore());
    ref.initialize();
    reference = ref.getConnection();
    Federation federation = new Federation();
    SailRepository repo = new SailRepository(federation);
    repo.initialize();
View Full Code Here

  }

  private Repository createMember(String id)
    throws StoreException, RDFParseException, IOException
  {
    SailRepository member = new SailRepository(new MemoryStore());
    member.initialize();
    SailRepositoryConnection con = member.getConnection();
    try {
      String resource = "testcases/federation-member-" + id + ".ttl";
      con.add(cl.getResource(resource), "", RDFFormat.TURTLE);
View Full Code Here

  @Override
  protected Sail createSail()
    throws StoreException
  {
    Federation sail = new Federation();
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.addMember(new SailRepository(new MemoryStore()));
    sail.initialize();
    return sail;
  }
View Full Code Here

    super(name);
  }

  @Override
  protected Repository createRepository() {
    return new SailRepository(new ForwardChainingRDFSInferencer(new MemoryStore()));
  }
View Full Code Here

import org.openrdf.sail.memory.MemoryStore;

public class MemorySparqlOrderByTest extends SparqlOrderByTest {

  protected Repository newRepository() {
    return new SailRepository(new MemoryStore());
  }
View Full Code Here

import org.openrdf.sail.memory.MemoryStore;

public class MemoryCascadeValueExceptionTest extends CascadeValueExceptionTest {

  protected Repository newRepository() {
    return new SailRepository(new MemoryStore());
  }
View Full Code Here

   * @return an uninitialized repository.
   */
  protected Repository createRepository()
    throws Exception
  {
    return new SailRepository(new MemoryStore());
  }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.memory.MemoryStore

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.