@metreeca/blue - v0.12.0
    Preparing search index...

    Function iri

    • Creates a shape for Internationalized Resource Identifier values.

      Fixes the datatype to xsd:string. IRIs generalise URIs (RFC 3986) and URLs by admitting the full Unicode character set beyond ASCII; the variant states which subset of the IRI hierarchy is accepted: hierarchical (URLs/IRLs with authority), absolute (scheme-based URIs/IRIs), internal (absolute or root-relative), or relative (any valid reference, the default).

      As a limitation, variants are told apart by their scheme and leading slashes rather than parsed against the full RFC 3987 grammar: relative admits any whitespace-free sequence, and the stricter variants check the prefix alone, leaving the rest of the reference unvalidated.

      Type Parameters

      Parameters

      Returns StringShape<{ inferred from <C> }>

      An immutable shape admitting IRIs of the stated variant, narrowed to the values the constraints enumerate

      TraceError Where the stated constraints contradict one another