polymatheia.util
Utility classes and functions.
- polymatheia.util.namespace_mapping(identifier, namespaces)
Get the namespace-mapped version of the
identifier.If the
identifierhas a namespace, then this is looked up in thenamespacesdictionary. 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