@metreeca/core - v0.13.0
    Preparing search index...

    Function getNamespaceIRI

    • Retrieves the IRI of a namespace.

      Returns the absolute IRI the namespace was created with, which prefixes every term it mints. The accessor offers a named alternative to the empty string key (namespace[""]), returning the same IRI under a self-describing call.

      Parameters

      • namespace: { "": string; readonly [term: string]: string }

        The namespace to retrieve the IRI from

      Returns string

      The absolute IRI of namespace

      getNamespaceIRI(base);                             // "base:/#"
      getNamespaceIRI(createNamespace("urn:example:")); // "urn:example:"