@metreeca/trio - v0.1.1
    Preparing search index...

    Type Alias Mapper<T>

    Mapper: (value: T) => Term | Graph

    Maps a domain value to its RDF rendering: either a single Term or a whole Graph.

    How each rendering is consumed is the caller's concern: property takes a Term as a direct triple object and a Graph as a sub-resource linked at its own root. A mapper is otherwise a plain value-to-graph function, free to mint its own blank-node anchors and never handed one by the caller.

    Type Parameters

    • T

      The domain value being mapped

    Type Declaration