Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

Namespace

Namespace<TKey, TValue>: { namespace: TValue } & RecordOf<TKey, TValue>

Type parameters

  • TKey: any[]

  • TValue

Variables

Const ACL

ACL: { namespace: TValue } & Record<"default" | "accessTo" | "agent" | "agentClass" | "AuthenticatedAgent" | "mode" | "Write" | "Read" | "Append" | "Control", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const AUTH

AUTH: { namespace: TValue } & Record<"userMode" | "publicMode", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const CONTENT_TYPE

CONTENT_TYPE: string = ...

Const CONTENT_TYPE_TERM

CONTENT_TYPE_TERM: NamedNode<string> = ...

Const DC

DC: { namespace: TValue } & Record<"modified", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const FOAF

FOAF: { namespace: TValue } & Record<"Agent", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const HTTP

HTTP: { namespace: TValue } & Record<"location" | "slug", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const LDP

LDP: { namespace: TValue } & Record<"contains" | "BasicContainer" | "Container" | "Resource", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const MA

MA: { namespace: TValue } & Record<"format", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const PIM

PIM: { namespace: TValue } & Record<"Storage", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const POSIX

POSIX: { namespace: TValue } & Record<"mtime" | "size", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const PREFERRED_PREFIX

PREFERRED_PREFIX: string = ...

Const PREFERRED_PREFIX_TERM

PREFERRED_PREFIX_TERM: NamedNode<string> = ...

Const RDF

RDF: { namespace: TValue } & Record<"type", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const VANN

VANN: { namespace: TValue } & Record<"preferredNamespacePrefix", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Const XSD

XSD: { namespace: TValue } & Record<"dateTime" | "integer", string> & { terms: Namespace<typeof localNames, NamedNode> } = ...

Functions

createNamespace

  • createNamespace<TKey, TValue>(baseUri: string, toValue: (expanded: string) => TValue, ...localNames: TKey[]): Namespace<TKey[], TValue>
  • Creates a function that expands local names from the given base URI, and exports the given local names as properties on the returned object.

    Type parameters

    • TKey: string

    • TValue

    Parameters

    • baseUri: string
    • toValue: (expanded: string) => TValue
        • (expanded: string): TValue
        • Parameters

          • expanded: string

          Returns TValue

    • Rest ...localNames: TKey[]

    Returns Namespace<TKey[], TValue>

createTermNamespace

  • createTermNamespace<T>(baseUri: string, ...localNames: T[]): Namespace<T[], NamedNode<string>>
  • Creates a function that expands local names from the given base URI into named nodes, and exports the given local names as properties on the returned object.

    Type parameters

    • T: string

    Parameters

    • baseUri: string
    • Rest ...localNames: T[]

    Returns Namespace<T[], NamedNode<string>>

createUriAndTermNamespace

  • createUriAndTermNamespace<T>(baseUri: string, ...localNames: T[]): { namespace: TValue } & Record<T, string> & { terms: Namespace<typeof localNames, NamedNode> }
  • Creates a function that expands local names from the given base URI into string, and exports the given local names as properties on the returned object. Under the terms property, it exposes the expanded local names as named nodes.

    Type parameters

    • T: string

    Parameters

    • baseUri: string
    • Rest ...localNames: T[]

    Returns { namespace: TValue } & Record<T, string> & { terms: Namespace<typeof localNames, NamedNode> }

createUriNamespace

  • createUriNamespace<T>(baseUri: string, ...localNames: T[]): Namespace<T[], string>
  • Creates a function that expands local names from the given base URI into strings, and exports the given local names as properties on the returned object.

    Type parameters

    • T: string

    Parameters

    • baseUri: string
    • Rest ...localNames: T[]

    Returns Namespace<T[], string>