• Preparing search index...
  • The search index is not available
Community Solid Server - v7.1.7
  • Community Solid Server
  • createVocabulary

Function createVocabulary

  • createVocabulary<TBase, TLocal>(baseUri, ...localNames): string extends TLocal
        ? PartialVocabulary<TBase>
        : Vocabulary<TBase, TLocal>
  • 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>

    • Defined in src/util/Vocabularies.ts:80

Settings

Member Visibility
Community Solid Server - v7.1.7
  • Loading...