use of org.apache.jena.riot.system.PrefixMap in project jena by apache.
the class TestPrefixLib method abbreviate_2.
@Test
public void abbreviate_2() {
PrefixMap prefixes = create();
prefixes.add(pref1, "http://example.net/ns#");
String x = PrefixLib.abbreviate(prefixes, "http://other/ns#xyz");
assertNull(x);
}
use of org.apache.jena.riot.system.PrefixMap in project jena by apache.
the class TestPrefixLib method abbrev_1.
@Test
public void abbrev_1() {
PrefixMap prefixes = create();
prefixes.add(pref1, "http://example.net/ns#");
Pair<String, String> x = PrefixLib.abbrev(prefixes, "http://example.net/ns#xyz");
assertEquals("pref1", x.getLeft());
assertEquals("xyz", x.getRight());
}
use of org.apache.jena.riot.system.PrefixMap in project jena by apache.
the class TestPrefixMappingOverDatasetPrefixes2 method view.
@Override
protected PrefixMapping view() {
StoragePrefixMap view = StoragePrefixesView.internal_viewGraph(dsgprefixes, gn);
PrefixMap pmap = PrefixesDboeFactory.newPrefixMap(view);
return Prefixes.adapt(pmap);
}
Aggregations