Data interface for the type of action.

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

Hierarchy (View Summary)

Properties

baseIRI: string

The base IRI.

The input context that is passed through by actors.

emit: (quad: Quad) => void

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

Type declaration

    • (quad: Quad): void
    • Parameters

      • quad: Quad

        A parsed quad.

      Returns void

end: () => void

This function must be called when parsing is complete.

error: (error: Error) => void

This function can be called when an error occurs.

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

        An error.

      Returns void

headers?: Headers

The headers with which the RDF document should be parsed.