java.lang.Object
org.apache.jena.riot.system.PrefixMapBase
- All Implemented Interfaces:
PrefixMap
- Direct Known Subclasses:
BufferingPrefixMap,PrefixMapAdapter,PrefixMapStd
Abstract base implementation of a
PrefixMap which provides
some implementations of API methods.-
Method Summary
Modifier and TypeMethodDescriptionAbbreviate an IRI and return a pair of prefix and local parts, or null.abbreviate(String uriStr) Abbreviate an IRI or return nullExpand a prefix named, return null if it can't be expandedExpand a prefix, return null if it can't be expandedvoidforEach(BiConsumer<String, String> action) Apply aBiConsumer<String, String> to each entry in the PrefixMap.Return a fresh copy of the underlying mapping, should be safe to modify unlike the mapping returned fromPrefixMap.getMapping()voidAdd a prefix, overwrites any existing associationvoidAdd a prefix, overwrites any existing associationvoidputAll(org.apache.jena.shared.PrefixMapping pmap) Add a prefix, overwrites any existing associationstream()Return a stream ofPrefixEntry, pairs of prefix and URI.toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.riot.system.PrefixMap
add, clear, containsPrefix, delete, get, getMapping, isEmpty, size
-
Method Details
-
getMappingCopy
Description copied from interface:PrefixMapReturn a fresh copy of the underlying mapping, should be safe to modify unlike the mapping returned fromPrefixMap.getMapping()- Specified by:
getMappingCopyin interfacePrefixMap- Returns:
- Copy of the mapping
-
forEach
Description copied from interface:PrefixMapApply aBiConsumer<String, String> to each entry in the PrefixMap. -
stream
Description copied from interface:PrefixMapReturn a stream ofPrefixEntry, pairs of prefix and URI. -
putAll
Description copied from interface:PrefixMapAdd a prefix, overwrites any existing association -
putAll
Description copied from interface:PrefixMapAdd a prefix, overwrites any existing association -
abbreviate
Description copied from interface:PrefixMapAbbreviate an IRI or return null- Specified by:
abbreviatein interfacePrefixMap- Parameters:
uriStr- URI to abbreviate- Returns:
- URI in prefixed name form if possible, null otherwise
-
expand
Description copied from interface:PrefixMapExpand a prefix, return null if it can't be expanded -
abbrev
Description copied from interface:PrefixMapAbbreviate an IRI and return a pair of prefix and local parts, or null. -
expand
Description copied from interface:PrefixMapExpand a prefix named, return null if it can't be expanded -
toString
-