Search in sources :

Example 1 with DatasetGraphSDB

use of org.apache.jena.sdb.store.DatasetGraphSDB in project jena by apache.

the class TestAssembler method dataset_1.

@Test
public void dataset_1() {
    Dataset ds = DatasetFactory.assemble(dir + "dataset.ttl");
    assertNotNull(ds);
    // Check it will be dispatched to SDB
    DatasetGraph dsg = ds.asDatasetGraph();
    assertTrue(dsg instanceof DatasetGraphSDB);
}
Also used : Dataset(org.apache.jena.query.Dataset) DatasetGraphSDB(org.apache.jena.sdb.store.DatasetGraphSDB) DatasetGraph(org.apache.jena.sparql.core.DatasetGraph) Test(org.junit.Test)

Example 2 with DatasetGraphSDB

use of org.apache.jena.sdb.store.DatasetGraphSDB in project jena by apache.

the class TestAssembler method create.

private Store create(Model assem) {
    // Create a store and format
    Dataset ds = DatasetFactory.assemble(assem);
    Store store = ((DatasetGraphSDB) ds.asDatasetGraph()).getStore();
    store.getTableFormatter().create();
    return store;
}
Also used : Dataset(org.apache.jena.query.Dataset) DatasetGraphSDB(org.apache.jena.sdb.store.DatasetGraphSDB) Store(org.apache.jena.sdb.Store)

Aggregations

Dataset (org.apache.jena.query.Dataset)2 DatasetGraphSDB (org.apache.jena.sdb.store.DatasetGraphSDB)2 Store (org.apache.jena.sdb.Store)1 DatasetGraph (org.apache.jena.sparql.core.DatasetGraph)1 Test (org.junit.Test)1