Class TypedGraph

A type-aware structure for extracting objects from quads.

This structure is capable of detecting based on the

Since

0.11.0

Hierarchy

  • TypedGraph

Constructors

Properties

factory: Record<string, Mixed>

Methods

  • chooses a codec.

    Returns errors or a Codec, based on the type key of the input object.

    Parameters

    • jsonld: any

    Returns Mixed

    Since

    0.11.0

  • Thin error-throwing wrapper around .decode.

    This method exists for compatibility.

    Type Parameters

    • C extends Mixed

    Parameters

    • c: C
    • jsonld: any

    Returns TypeOf<C>

    Since

    0.11.0

  • Consumes a Stream, and may produce a typed object.

    Parameters

    Returns TaskEither<Error, {
        type: string | string[];
    }>

    Since

    0.11.0

  • Consumes a Stream, and may produce a typed object.

    Type Parameters

    • C extends Mixed

    Parameters

    Returns TaskEither<Error, TypeOf<C>>

    Since

    0.11.0

Generated using TypeDoc