polymatheia.util
Utility classes and functions.
- polymatheia.util.namespace_mapping(identifier, namespaces)
Get the namespace-mapped version of the
identifier
.If the
identifier
has a namespace, then this is looked up in thenamespaces
dictionary. If the namespace is found, then it returns text in the formatns_localName
.- Parameters:
identifier (
string
) – The identifier to mapnamespaces (
dict
) – Namespaces to use for mapping