Package com.hp.hpl.jena.sdb

Examples of com.hp.hpl.jena.sdb.Store


      super(name);
    }
   
    @Override
    public Model getModel() {
      Store store = StoreCreator.getIndexSAP();
      return SDBFactory.connectNamedModel(store, "http://example.com/graph");
    }
View Full Code Here


      super(name);
    }
   
    @Override
    public Model getModel() {
      Store store = StoreCreator.getHashSAP();
      return SDBFactory.connectDefaultModel(store);
    }
View Full Code Here

      super(name);
    }
   
    @Override
    public Model getModel() {
      Store store = StoreCreator.getHashSAP();
      return SDBFactory.connectNamedModel(store, "http://example.com/graph");
    }
View Full Code Here

      File zipFile;
        ZipEntry entry;
        ZipInputStream zipInputStream = null;     
        SDBConnection sdbConnection;
        StoreDesc sdbStoreDesc;
        Store sdbStore;

        // create hsql-in-memory-database
        JDBC.loadDriverHSQL();
        sdbConnection = SDBFactory.createConnection(SDB_URL, SDB_USER, SDB_PASS);
    sdbStoreDesc = new StoreDesc(LayoutType.LayoutTripleNodesIndex, DatabaseType.HSQLDB) ;
    sdbStore = new StoreTriplesNodesIndexHSQL(sdbConnection, sdbStoreDesc);
    sdbStore.getTableFormatter().create();
    sdbDataModel = SDBFactory.connectDefaultModel(sdbStore);
       
    // load all data from dataset.ttl.zip
    zipFile = new File(CURR_DIR + "/" + DATA_DIR + "/" + FILENAME_TTL_DATA);       
        zipInputStream = new ZipInputStream(new FileInputStream(zipFile));
View Full Code Here

 
  public static void run(DataSource ds, StoreDesc sd, String graph, SdbQuery q)
      throws SQLException {
    Connection conn = ds.getConnection();
    try {
      Store store = SDBFactory.connectStore(conn, sd);
      try {
        q.exec(SDBFactory.connectNamedModel(store, graph));
      } finally {
        store.close();
      }
    } finally {
      conn.close();
    }
  }
View Full Code Here

        if ( cmdTruncate cmdError("Tuple truncate - not implemented (yet)", true) ;
    }

    private void execPrint(String tableName)
    {
        Store store = getStore() ;
        TupleTable table = null ;
        if ( tableName.equalsIgnoreCase(store.getNodeTableDesc().getTableName()))
        {
            // A hack.
            // Need to chage SQLBridge to work on Node tables directly (no special build of value getters)
            TableDesc desc = new TableDesc(tableName, store.getNodeTableDesc().getNodeRefColName()) ;
            table = new TupleTable(store, desc) ;
        }
        else
            table = new TupleTable(store, tableName) ;
        divider() ;
View Full Code Here

    }

    private void execLoad(String tableName)
    {
        cmdError("Tuple load - not implemented (yet)", true) ;
        Store store = getStore() ;

        TupleTable table = null ;
        if ( tableName.equalsIgnoreCase(store.getNodeTableDesc().getTableName()))
            cmdError("Can't load the node table as a tupole table" );
        else
            table = new TupleTable(store, tableName) ;
    }
View Full Code Here

    /**
     * Create a store, based on the store description and connection.
     */
    public static Store create(StoreDesc desc, SDBConnection sdb)
    {
        Store store = _create(sdb, desc) ;
        return store ;
    }
View Full Code Here

    }
   
    @Override
    protected void execCmd(List<String> args)
    {
        Store store = getModStore().getStore() ;
        if ( ! modConfig.format() &&
             ! modConfig.createStore() &&
             ! modConfig.dropIndexes() &&
             ! modConfig.addIndexes() )
        {
View Full Code Here

public class ReportSparqlUpdate
{
    public static void main(String ...args)
    {
        Store store = SDBTestUtils.createInMemoryStore() ;
        Dataset ds = SDBFactory.connectDataset(store) ;

        Model m = ds.getDefaultModel() ;
        ModelChangedListener listener = new StatementListener()
        {
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sdb.Store

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.