Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "util/ResourceUtil"

Index

Functions

Const generateContainmentQuads

  • generateContainmentQuads(containerURI: NamedNode, childURIs: string[]): Quad[]
  • Helper function to generate the quads describing that the resource URIs are children of the container URI.

    Parameters

    • containerURI: NamedNode

      The URI of the container.

    • childURIs: string[]

      The URI of the child resources.

    Returns Quad[]

    The generated quads.

Const generateResourceQuads

  • generateResourceQuads(subject: NamedNode, isContainer: boolean): Quad[]
  • Helper function to generate type quads for a Container or Resource.

    Parameters

    • subject: NamedNode

      Subject for the new quads.

    • isContainer: boolean

      If the identifier corresponds to a container.

    Returns Quad[]

    The generated quads.