An RDF Metadata Extract Actor that extracts all Hydra controls from the metadata stream.

Hierarchy (View Summary)

Constructors

Properties

beforeActors: Actor<
    IActionRdfMetadataExtract,
    IActorTest,
    IActorRdfMetadataExtractOutput,
    undefined,
>[] = []

Actor that must be registered in the bus before this actor.

bus: Bus<
    Actor<
        IActionRdfMetadataExtract,
        IActorTest,
        IActorRdfMetadataExtractOutput,
        undefined,
    >,
    IActionRdfMetadataExtract,
    IActorTest,
    IActorRdfMetadataExtractOutput,
    undefined,
>

The bus this actor subscribes to.

name: string

The name for this actor.

{<rdf:subject>}
parsedUriTemplateCache: Record<string, UriTemplate> = {}
HYDRA: string = 'http://www.w3.org/ns/hydra/core#'
LINK_TYPES: string[] = ...

Methods

  • Collect all hydra properties from a given metadata stream in a nice convenient nested hash (property / subject / objects).

    Parameters

    • metadata: Stream<Quad>

    Returns Promise<Record<string, Record<string, string[]>>>

    The collected Hydra properties.

  • Collect all Hydra page links from the given Hydra properties object.

    Parameters

    • pageUrl: string

      The page URL in which the Hydra properties are defined.

    • hydraProperties: Record<string, Record<string, string[]>>

      The collected Hydra properties.

    Returns Record<string, any>

    The Hydra links