Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

cloneRepresentation

  • Helper function to clone a representation, the original representation can still be used. This function loads the entire stream in memory.

    Parameters

    Returns Promise<BasicRepresentation>

    The cloned representation.

generateContainmentQuads

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

    Parameters

    • containerURI: NamedNode<string>

      The URI of the container.

    • childURIs: string[]

      The URI of the child resources.

    Returns Quad[]

    The generated quads.

generateResourceQuads

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

    Parameters

    • subject: NamedNode<string>

      Subject for the new quads.

    • isContainer: boolean

      If the identifier corresponds to a container.

    Returns Quad[]

    The generated quads.