Comunica Link Traversal
    Preparing search index...

    A comunica Solid Type Index Extract Links Actor.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    beforeActors: Actor<
        IActionExtractLinks,
        IActorTest,
        IActorExtractLinksOutput,
        undefined,
    >[]

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

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

    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

    • To fetch the domain of the predicate.

      Parameters

      • predicateSubjects: Record<string, RDF.Term>

        A dictionary of predicate and its subjects from the query.

      • typeSubjects: Record<string, RDF.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 Logger | undefined

      The logger or undefined.