Search in sources :

Example 6 with StoragePrefixes

use of org.apache.jena.dboe.storage.StoragePrefixes in project jena by apache.

the class AbstractTestDatasetPrefixesStorage method dsg_prefixes_04.

@Test
public void dsg_prefixes_04() {
    StoragePrefixes prefixes = create();
    prefixes.add(g1, pref1, "http://example.net/ns#");
    prefixes.delete(g1, pref1);
    String x1 = prefixes.get(g1, pref1);
    assertNull(x1);
}
Also used : StoragePrefixes(org.apache.jena.dboe.storage.StoragePrefixes) Test(org.junit.Test)

Example 7 with StoragePrefixes

use of org.apache.jena.dboe.storage.StoragePrefixes in project jena by apache.

the class AbstractTestDatasetPrefixesStorage method dsg_prefixes_03.

@Test
public void dsg_prefixes_03() {
    StoragePrefixes prefixes = create();
    prefixes.add(g1, pref1, "http://example.net/ns#");
    String x1 = prefixes.get(g2, pref1);
    assertNull(x1);
}
Also used : StoragePrefixes(org.apache.jena.dboe.storage.StoragePrefixes) Test(org.junit.Test)

Aggregations

StoragePrefixes (org.apache.jena.dboe.storage.StoragePrefixes)7 Test (org.junit.Test)5 StoragePrefixMap (org.apache.jena.dboe.storage.prefixes.StoragePrefixMap)1 Node (org.apache.jena.graph.Node)1 PrefixEntry (org.apache.jena.riot.system.PrefixEntry)1 ReorderTransformation (org.apache.jena.sparql.engine.optimizer.reorder.ReorderTransformation)1 StoreParams (org.apache.jena.tdb2.params.StoreParams)1 ComponentIdMgr (org.apache.jena.tdb2.sys.ComponentIdMgr)1