g3-toolkit API Reference
    Preparing search index...

    Class ProjectionPipeline

    ProjectionPipeline: ordered sequence of collapse transforms.

    Usage: const pipeline = new ProjectionPipeline(); pipeline.addStep({ name: "Type Collapse", transform: typeCollapse, enabled: true }); const ugm = pipeline.project(rdfGraph);

    Index

    Constructors

    Methods

    • Run all enabled steps in order, then convert the result to UGM. Pre-extracts types and literal properties BEFORE collapses run, so that type/property info is preserved regardless of which collapses are enabled.

      Parameters

      Returns UGM

    • Enable or disable a step by name.

      Parameters

      • name: string
      • enabled: boolean

      Returns void