Interface MappedRDFTypeConverters<T>

interface MappedRDFTypeConverters {
    deserializer?: ((thing, instance?) => T);
    serializer?: ((object, baseUri?) => Quad_Object | Partial<Thing>);
}

Type Parameters

  • T

Properties

deserializer?: ((thing, instance?) => T)

Type declaration

    • (thing, instance?): T
    • Custom (partial) deserializer for this object.

      Parameters

      • thing: Thing
      • Optional instance: T

      Returns T

serializer?: ((object, baseUri?) => Quad_Object | Partial<Thing>)

Type declaration

    • (object, baseUri?): Quad_Object | Partial<Thing>
    • Custom (partial) serializer for this object.

      Parameters

      • object: T
      • Optional baseUri: `http://${string}` | `https://${string}`

      Returns Quad_Object | Partial<Thing>