@hydra-cg/heracles.ts > CompoundGraphTransformer
Provides a collective wrapper over multiple IGraphTransformers.
CompoundGraphTransformer
⊕ 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
<Private> graphTransformers● graphTransformers: Iterable<IGraphTransformer>
Defined in JsonLd/GraphTransformations/CompoundGraphTransformer.ts:9
▸ 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[]>