Class ShortNameMgr
java.lang.Object
org.aksw.commons.utils.trie.ShortNameMgr
Allocate short name for IRIs.
By default this is the IRI's localName but conflicts are resolved.
The manager guarantees uniqueness of generated short names.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected ToIntFunction<CharSequence> protected org.apache.commons.collections4.trie.PatriciaTrie<String> protected Map<String, ShortNameMgr.Name> -
Constructor Summary
ConstructorsConstructorDescriptionShortNameMgr(Function<String, String> shortNameSanitizer) ShortNameMgr(ToIntFunction<CharSequence> nameSplitter, Function<String, String> shortNameSanitizer) -
Method Summary
Modifier and TypeMethodDescriptionprotected ShortNameMgr.Nameprotected StringallocPrefix(String ns) clone()static voidstatic int
-
Field Details
-
namespaceCounter
protected int namespaceCounter -
prefixMap
-
shortToFull
-
shortNameSanitizer
-
nameSplitter
-
-
Constructor Details
-
ShortNameMgr
public ShortNameMgr() -
ShortNameMgr
-
ShortNameMgr
public ShortNameMgr(ToIntFunction<CharSequence> nameSplitter, Function<String, String> shortNameSanitizer)
-
-
Method Details