Package com.hp.hpl.jena.sdb

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


      JDBC.loadDriverMySQL();
     
      SDBConnection sdb = SDBFactory.createConnection(
        "jdbc:mysql://localhost/test2-hash", "user", "password");
   
      StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.MySQL) ;
      sdbmsh = new StoreTriplesNodesHashMySQL(sdb, desc);
     
      sdbmsh.getTableFormatter().create();
    }
    else
View Full Code Here


      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

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

            SDBConnection sdb = SDBFactory.createConnection(MSSQL_url+"test2-hash", MSSQL_user, MSSQL_password) ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.SQLServer) ;
      sdbssh = new StoreTriplesNodesHashSQLServer(sdb, desc);
      sdbssh.getTableFormatter().create();
    }
    else
        sdbssh.getTableFormatter().truncate();
View Full Code Here

      JDBC.loadDriverDerby() ;
     
      String url = JDBC.makeURL("derby", "localhost", "DB/test2-hash") ;
     
      SDBConnection sdb = new SDBConnection(url, null, null) ;
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.Derby) ;

      sdbdh = new StoreTriplesNodesHashDerby(sdb, desc);
      sdbdh.getTableFormatter().create();
    }
    else
View Full Code Here

     
      String url = JDBC.makeURL("derby", "localhost", "DB/test2-index") ;
     
      SDBConnection sdb = new SDBConnection(url, null, null) ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesIndex, DatabaseType.Derby) ;
      sdbdi = new StoreTriplesNodesIndexDerby(sdb, desc);
      sdbdi.getTableFormatter().create();
    }
    else
        sdbdi.getTableFormatter().truncate();
View Full Code Here

      // "jena", "swara"
      String url = JDBC.makeURL("oracle:thin", "localhost:1521", "XE") ;
     
      SDBConnection sdb = new SDBConnection(url, "test2-hash", "test2-hash") ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.Oracle) ;
      sdboh = new StoreTriplesNodesHashOracle(sdb, desc);
      sdboh.getTableFormatter().create();
    }
    else
        sdboh.getTableFormatter().truncate();
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.