Search in sources :

Example 6 with PrefixMappingSDB

use of org.apache.jena.sdb.graph.PrefixMappingSDB in project jena by apache.

the class TestPrefixMappingSDB method prefix5.

@Test
public void prefix5() {
    String uri = "http://example/";
    PrefixMapping pmap = new PrefixMappingSDB(defaultPrefixURI, sdb);
    pmap.setNsPrefix("ex", uri);
    assertEquals(uri + "foo", pmap.expandPrefix("ex:foo"));
}
Also used : PrefixMapping(org.apache.jena.shared.PrefixMapping) PrefixMappingSDB(org.apache.jena.sdb.graph.PrefixMappingSDB) Test(org.junit.Test)

Aggregations

PrefixMappingSDB (org.apache.jena.sdb.graph.PrefixMappingSDB)6 PrefixMapping (org.apache.jena.shared.PrefixMapping)6 Test (org.junit.Test)6