Package org.openrdf.sail.dataset

Examples of org.openrdf.sail.dataset.DatasetSail


  protected Repository newRepository() {
    PgSqlStore sail = new PgSqlStore("sesame_test");
    sail.setUser("sesame");
    sail.setPassword("opensesame");
    return new SailRepository(new DatasetSail(sail));
  }
View Full Code Here


  @Override
  protected Repository newRepository()
    throws IOException
  {
    dataDir = FileUtil.createTempDir("nativestore");
    return new SailRepository(new DatasetSail(new NativeStore(dataDir, "spoc")));
  }
View Full Code Here

  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

  {
    super(testURI, name, queryFileURL, resultFileURL, dataSet, laxCardinality);
  }

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

  public Sail getSail(SailImplConfig config)
    throws StoreConfigException
  {
    if (config instanceof DatasetConfig) {
      DatasetConfig dc = (DatasetConfig)config;
      DatasetSail sail = new DatasetSail();
      sail.setGraphs(dc.getGraphs());
      sail.setClosed(dc.isClosed());
      return sail;
    }

    throw new StoreConfigException("Invalid configuration class: " + config.getClass());
  }
View Full Code Here

  {
    super(testURI, name, queryFileURL, resultFileURL, dataSet, laxCardinality);
  }

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

  protected Repository newRepository() {
    MySqlStore sail = new MySqlStore("sesame_test");
    sail.setUser("sesame");
    sail.setPassword("opensesame");
    return new SailRepository(new DatasetSail(sail));
  }
View Full Code Here

  protected Repository newRepository() {
    PgSqlStore sail = new PgSqlStore("sesame_test");
    sail.setUser("sesame");
    sail.setPassword("opensesame");
    return new SailRepository(new DatasetSail(sail));
  }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.dataset.DatasetSail

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.