interface IActorRdfSerializeJsonLdArgs {
    beforeActors?: Actor<
        IActionAbstractMediaTyped<IActionRdfSerialize>,
        IActorTestAbstractMediaTyped<IActorTest>,
        IActorOutputAbstractMediaTyped<IActorRdfSerializeOutput>,
        undefined,
    >[];
    bus: Bus<
        Actor<
            IActionAbstractMediaTyped<IActionRdfSerialize>,
            IActorTestAbstractMediaTyped<IActorTest>,
            IActorOutputAbstractMediaTyped<IActorRdfSerializeOutput>,
            undefined,
        >,
        IActionAbstractMediaTyped<IActionRdfSerialize>,
        IActorTestAbstractMediaTyped<IActorTest>,
        IActorOutputAbstractMediaTyped<IActorRdfSerializeOutput>,
        undefined,
    >;
    busFailMessage?: string;
    jsonStringifyIndentSpaces: number;
    mediaTypeFormats: Record<string, string>;
    mediaTypePriorities: Record<string, number>;
    name: string;
    priorityScale?: number;
}

Hierarchy (View Summary)

Properties

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

The bus this actor subscribes to.

busFailMessage?: string

The message that will be configured in the bus for reporting failures.

This message may be a template string that contains references to the executed action. For example, the following templated string is allowed: "RDF dereferencing failed: no actors could handle ${action.handle.mediaType}"

jsonStringifyIndentSpaces: number

The number of spaces that should be used to indent stringified JSON.

{2}
mediaTypeFormats: Record<string, string>

A record of media types, with media type name as key, and its format IRI as value.

mediaTypePriorities: Record<string, number>

A record of media types, with media type name as key, and its priority as value. Priorities are numbers between [0, 1].

name: string

The name for this actor.

{<rdf:subject>}
priorityScale?: number

A multiplier for media type priorities. This can be used for keeping the original media types in place, but scaling all of their scores with a certain value.