Data interface for the type of action.

interface IActionRdfParseHtml {
    baseIRI: string;
    context: IActionContext;
    emit: ((quad) => void);
    end: (() => void);
    error: ((error) => void);
    headers?: Headers;
}

Hierarchy (view full)

Properties

baseIRI: string

The base IRI.

The input context that is passed through by actors.

emit: ((quad) => void)

This function can be called whenever a quad has been parsed.

Type declaration

    • (quad): void
    • Parameters

      • quad: Quad

        A parsed quad.

      Returns void

end: (() => void)

This function must be called when parsing is complete.

Type declaration

    • (): void
    • Returns void

error: ((error) => void)

This function can be called when an error occurs.

Type declaration

    • (error): void
    • Parameters

      • error: Error

        An error.

      Returns void

headers?: Headers

The headers with which the RDF document should be parsed.