use of org.apache.jena.sdb.Store in project jena by apache.
the class sdbtuple method execLoad.
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);
}
use of org.apache.jena.sdb.Store in project jena by apache.
the class TestPrefixMappingSDB method setUpClass.
@BeforeClass
public static void setUpClass() {
JDBC.loadDriverHSQL();
//SDB.init() ;
sdb = SDBFactory.createConnection(hsql, "sa", "");
StoreDesc desc = new StoreDesc("Layout2", "HSQLDB", null);
Store store = SDBFactory.connectStore(sdb, desc);
store.getTableFormatter().format();
// Make a store and format it.
}
use of org.apache.jena.sdb.Store in project jena by apache.
the class TestAssembler method model_6.
@Test
public void model_6() {
Model assem = FileManager.get().loadModel(dir + "graph-assembler.ttl");
Resource xNamed = assem.getResource("http://example/test#graphNamed");
Store store = create(assem);
// Named graph: Check they are connected to the same place in the store
Model model2 = (Model) Assembler.general.open(xNamed);
Model model3 = (Model) Assembler.general.open(xNamed);
Resource s = model2.createResource();
Property p = model2.createProperty("http://example/p");
// Check two models connected to the same graph
Literal o2 = model2.createLiteral("xyz");
model2.add(s, p, o2);
assertTrue(model3.contains(s, p, o2));
}
Aggregations