Package com.hp.hpl.jena.sdb.layout2.hash

Examples of com.hp.hpl.jena.sdb.layout2.hash.StoreTriplesNodesHashSQLServer


    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 (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 (sdbsaph == null) {
      JDBC.loadDriverSAP();
      SDBConnection sdb = SDBFactory.createConnection(
        "jdbc:sap://localhost/test2-hash", "user", "password");
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.SAP) ;
      sdbsaph = new StoreTriplesNodesHashSAP(sdb, desc);
      sdbsaph.getTableFormatter().create();
    }
    else
        sdbsaph.getTableFormatter().truncate();
     
View Full Code Here

      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.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.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

        in = new FileInputStream("T.sse") ;
        Item x = SSE.parse(in) ;
        TransGraphNode tg = TransGraphNode.build(x) ;

        Store store = makeMemHash() ;
        TupleLoader loader = new TupleLoaderOneHash(store.getConnection()) ;

        // ---- Config
        String tableName = "classes" ;

        // ---- Load auxillary table
        String subColName = "sub" ;
        String superColName = "super" ;
        TableDesc tableDesc = new TableDesc(tableName, subColName, superColName) ;
        TupleTable tuples = new TupleTable(store, tableDesc) ;
       
        // ---- Create auxillary table
       
        String colType = store.getNodeTableDesc().getNodeRefTypeString() ;
        try {
            String sqlCreateStr =
                String.format("CREATE TABLE %s ( sub %s not null, super %s not null )",
                              tableName, colType, colType) ;
            store.getConnection().execUpdate(sqlCreateStr) ;
        } catch (SQLException ex) { throw new SDBExceptionSQL(ex) ; }
       
        loader.setTableDesc(tableDesc) ;
       
        loader.start() ;
        for (Pair<Node, Node> p : tg )
            loader.load(p.getLeft(), p.getRight()) ;
        loader.finish() ;
       
        // ---- Dump it.
        tuples.dump() ;
        store.close() ;
    }
View Full Code Here

      String url = JDBC.makeURL("db2", "sweb-sdb-4:50000", "TEST2I") ;
     
      SDBConnection sdb = new SDBConnection(url, "user", "password") ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesIndex, DatabaseType.DB2) ;
      sdbdb2i = new StoreTriplesNodesIndexDB2(sdb, desc);
      sdbdb2i.getTableFormatter().create();
    }
   
    sdbdb2i.getTableFormatter().truncate();
     
View Full Code Here

      String url = JDBC.makeURL("db2", "sweb-sdb-4:50000", "TEST2I") ;
     
      SDBConnection sdb = new SDBConnection(url, "user", "password") ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesIndex, DatabaseType.DB2) ;
      sdbdb2i = new StoreTriplesNodesIndexDB2(sdb, desc);
      sdbdb2i.getTableFormatter().create();
    }
   
    sdbdb2i.getTableFormatter().truncate();
     
View Full Code Here

      String url = JDBC.makeURL("db2", "sweb-sdb-4:50000", "TEST2I") ;
     
      SDBConnection sdb = new SDBConnection(url, "user", "password") ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesIndex, DatabaseType.DB2) ;
      sdbdb2i = new StoreTriplesNodesIndexDB2(sdb, desc);
      sdbdb2i.getTableFormatter().create();
    }
   
    sdbdb2i.getTableFormatter().truncate();
     
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sdb.layout2.hash.StoreTriplesNodesHashSQLServer

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.