A comunica Traverse Content Policies RDF Metadata Extract Actor.

Hierarchy (View Summary)

Implements

Constructors

Properties

actorInitQuery: ActorInitQueryBase

An init query actor that is used to query all links to follow from a stream.

{<urn:comunica:default:init/actors#query>}
beforeActors: Actor<IActionExtractLinks, IActorTest, IActorExtractLinksOutput>[]

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

bus: Bus<
    Actor<IActionExtractLinks, IActorTest, IActorExtractLinksOutput>,
    IActionExtractLinks,
    IActorTest,
    IActorExtractLinksOutput,
>

The bus this actor subscribes to.

name: string

The name for this actor.

{<rdf:subject>}
queryEngine: QueryEngineBase
traverseConditional: boolean

If true (default), then content policies will be applied on links that are being detected by some other actor, if false, then links detected by content policies will forcefully be added to the link queue.

{true}

Methods

  • Parameters

    • context: IActionContext
    • Optionaldata: () => any

    Returns any

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • A helper function to append links based on incoming quads.

    Parameters

    • metadata: Stream

      A metadata stream of quads.

    • onQuad: (quad: Quad, links: ILink[]) => void

      A callback that will be invoked for each quad in the metadata stream. The second argument is the array of links that can be appended to.

    Returns Promise<ILink[]>

  • Get the logger from the given context.

    Parameters

    • context: IActionContext

      An optional context.

    Returns undefined | Logger

    The logger or undefined.