Function createVocabulary

  • Creates a Vocabulary with the given baseUri as namespace and all localNames as entries. The values are the local names expanded from the given base URI as strings. The terms field contains all the same values but as NamedNode instead.

    Type Parameters

    • TBase extends string

    • TLocal extends string

    Parameters

    • baseUri: TBase
    • Rest ...localNames: TLocal[]

    Returns string extends TLocal
        ? PartialVocabulary<TBase>
        : Vocabulary<TBase, TLocal>