Heracles.ts

@hydra-cg/heracles.ts > CompoundGraphTransformer

Class: CompoundGraphTransformer

Provides a collective wrapper over multiple IGraphTransformers.

Hierarchy

CompoundGraphTransformer

Implements

Index

Constructors

Properties

Methods


Constructors

constructor

new CompoundGraphTransformer(…graphTransformers: IGraphTransformer[]): CompoundGraphTransformer

Defined in JsonLd/GraphTransformations/CompoundGraphTransformer.ts:9

Initializes a new instance of the CompoundGraphTransformer class.

Parameters:

Name Type Description
Rest graphTransformers IGraphTransformer[] Other graph transforming facilities to use.

Returns: CompoundGraphTransformer


Properties

<Private> graphTransformers

● graphTransformers: Iterable<IGraphTransformer>

Defined in JsonLd/GraphTransformations/CompoundGraphTransformer.ts:9


Methods

transform

transform(graph: object[], processor: IHypermediaProcessor, options?: IHypermediaProcessingOptions): Promise<object[]>

Implementation of IGraphTransformer.transform

Defined in JsonLd/GraphTransformations/CompoundGraphTransformer.ts:20

Tranforms a given graph.

Parameters:

Name Type
graph object[]
processor IHypermediaProcessor
Optional options IHypermediaProcessingOptions

Returns: Promise<object[]>