Package org.openrdf.sail.rdbms

Examples of org.openrdf.sail.rdbms.RdbmsStore


      String jdbcDriver = rdbmsConfig.getJdbcDriver();
      String url = rdbmsConfig.getUrl();
      String user = rdbmsConfig.getUser();
      String password = rdbmsConfig.getPassword();

      RdbmsStore store = new RdbmsStore(jdbcDriver, url, user, password);

      store.setMaxNumberOfTripleTables(rdbmsConfig.getMaxTripleTables());

      return store;
    }

    throw new IllegalArgumentException("Supplied config objects should be an RdbmsStoreConfig, is: "
View Full Code Here


            RdbmsRepositoryConfiguration conf = configuration.get();
            String jdbcDriver = conf.jdbcDriver().get();
            String jdbcUrl = conf.jdbcUrl().get();
            String user = conf.user().get();
            String password = conf.password().get();
            repo = new SailRepository( new RdbmsStore( jdbcDriver, jdbcUrl, user, password ) );
            repo.initialize();
        }
View Full Code Here

    String url = rdbms.getUrl();
    String user = rdbms.getUser();
    String password = rdbms.getPassword();
    String layout = rdbms.getLayout();
    String indexed = rdbms.getIndexed();
    RdbmsStore store = new RdbmsStore(jdbcDriver, url, user, password);
    if ("layout2".equals(layout)) {
      store.setMaxNumberOfTripleTables(1);
    }
    else if ("layout2/hash".equals(layout)) {
      store.setMaxNumberOfTripleTables(1);
      store.setSequenced(false);
    }
    else if ("layout2/index".equals(layout)) {
      store.setMaxNumberOfTripleTables(1);
      store.setSequenced(true);
    }
    else if ("layout3/hash".equals(layout)) {
      store.setSequenced(false);
    }
    else if ("layout3/index".equals(layout)) {
      store.setSequenced(true);
    }
    else {
      assert "layout3".equals(layout);
    }
    if (indexed != null) {
      try {
        store.setIndexed(Boolean.valueOf(indexed));
      }
      catch (SailException e) {
        // this shouldn't happen
        throw new AssertionError(e);
      }
View Full Code Here

   */
  public RepositoryConnection initWithRDBMS(String driver, String url, String user, String password, boolean inferencing) {
    Sail sailStack;
   
    if(user == null) {
      sailStack = new RdbmsStore(driver, url);
    } else {
      sailStack = new RdbmsStore(driver, url, user, password);
    }
   
    return initFromSail(sailStack, inferencing);
  }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.rdbms.RdbmsStore

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.