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 the namespaces dictionary. If the namespace is found, then it returns text in the format ns_localName.

  • identifier (string) – The identifier to map

  • namespaces (dict) – Namespaces to use for mapping