Package com.hp.hpl.jena.sdb

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


      JDBC.loadDriverHSQL();

      SDBConnection sdb = SDBFactory.createConnection(
          "jdbc:hsqldb:mem:aname", "sa", "");

      StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesIndex, DatabaseType.HSQLDB) ;
      sdbhsi = new StoreTriplesNodesIndexHSQL(sdb, desc);

      sdbhsi.getTableFormatter().create();
    }
    else
View Full Code Here


      JDBC.loadDriverHSQL();

      SDBConnection sdb = SDBFactory.createConnection(
          "jdbc:hsqldb:mem:bname", "sa", "");

            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.HSQLDB) ;
      sdbhsh = new StoreTriplesNodesHashHSQL(sdb, desc);
      sdbhsh.getTableFormatter().create();
    }
    else
        sdbhsh.getTableFormatter().truncate();
View Full Code Here

  public static Store getIndexPgSQL() {
    if (sdbpgi == null) {
      JDBC.loadDriverPGSQL();
      SDBConnection sdb = SDBFactory.createConnection(
        "jdbc:postgresql://localhost/test2-index", "user", "password");
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesIndex, DatabaseType.PostgreSQL) ;
      sdbpgi = new StoreTriplesNodesIndexPGSQL(sdb, desc);
      sdbpgi.getTableFormatter().create() ;
    }
    else
        sdbpgi.getTableFormatter().truncate();
View Full Code Here

  public static Store getHashPgSQL() {
    if (sdbpgh == null) {
      JDBC.loadDriverPGSQL();
      SDBConnection sdb = SDBFactory.createConnection(
        "jdbc:postgresql://localhost/test2-hash", "user", "password");
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.PostgreSQL) ;
      sdbpgh = new StoreTriplesNodesHashPGSQL(sdb, desc);
      sdbpgh.getTableFormatter().create();
    }
    else
        sdbpgh.getTableFormatter().truncate();
View Full Code Here

    if (sdbssi == null) {
      JDBC.loadDriverSQLServer();

      SDBConnection sdb = SDBFactory.createConnection(MSSQL_url+"test2-index", MSSQL_user, MSSQL_password) ;

            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesIndex, DatabaseType.SQLServer) ;
      sdbssi = new StoreTriplesNodesIndexSQLServer(sdb, desc);
      sdbssi.getTableFormatter().create();
    }
    else
        sdbssi.getTableFormatter().truncate();
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
View Full Code Here

    super(c);
   
    // need to make sure we have RDF support:
    c.requireInstance(AgentWithRdfFactory.class, "dtask.agent-factory");
   
    storeDesc = new StoreDesc(
      c.getString("dtask.rdf.db-persistence.layout", "layout2"),
      c.getString("dtask.rdf.db-persistence.db-type", "MySQL"));
   
   
  }
View Full Code Here

  public DbPersistence(Configuration c) {
    // need to make sure we have RDF support:
    c.requireInstance(AgentWithRdfFactory.class, "dtask.agent-factory");
   
    dataSource = c.getSharedObject(DataSource.class);
    storeDesc = new StoreDesc(
      c.getString("dtask.rdf.db-persistence.layout", "layout2"),
      c.getString("dtask.rdf.db-persistence.db-type", "MySQL"));
  }
View Full Code Here

        // meaning the default graph of the dataset.
       
        Resource dataset = GraphUtils.getResourceValue(root, AssemblerVocab.pDataset) ;
        if ( dataset == null )
            throw new MissingException(root, "No dataset for model or graph") ;
        StoreDesc storeDesc = datasetAssem.openStore(a, dataset, mode) ;

        // Attempt to find a graph name - may be absent.
        // Two names : "namedGraph" and "graphName"
        String x = GraphUtils.getAsStringValue(root, AssemblerVocab.pNamedGraph1) ;
        if ( x == null )
View Full Code Here

            String v = GraphUtils.getStringValue(r, AssemblerVocab.featureValueProperty) ;
            Feature f = new Feature(new Feature.Name(n), v) ;
            fSet.addFeature(f) ;
        }
       
        StoreDesc storeDesc = new StoreDesc(layoutName, dbType, fSet) ;
        storeDesc.connDesc = sdbConnDesc ;

        // MySQL specials
        String engineName = GraphUtils.getStringValue(root, AssemblerVocab.pMySQLEngine) ;
        storeDesc.engineType = null ;
View Full Code Here

TOP

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

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.