A comunica Solid Type Index Extract Links Actor.

Hierarchy (View Summary)

Constructors

Properties

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.

mediatorDereferenceRdf: MediatorDereferenceRdf
name: string

The name for this actor.

{<rdf:subject>}
queryEngine: QueryEngineBase
RDF_TYPE: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'

Methods

  • Determine all entries within the given type index.

    Parameters

    • typeIndex: string

      The URL of a type index.

    • context: IActionContext

      The context.

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

    typeLinks A record mapping class URLs to an array of links.

  • Parameters

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

    Returns any

  • Determine all links that match with the current query pattern.

    Parameters

    • typeLinks: Record<string, ILink[]>

      The type index links.

    • query: Operation

      The original query that is being executed.

    • pattern: Pattern

      The current pattern that is being evaluated and traversed in.

    Returns Promise<ILink[]>

  • To fetch the domain of the predicate.

    Parameters

    • predicateSubjects: Record<string, Term>

      A dictionary of predicate and its subjects from the query.

    • typeSubjects: Record<string, Term[]>

      A dictionary of class type and its subjects from the query.

    Returns Promise<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

  • 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.