• Generate SPARQL CONSTRUCT query from a traversal schema

    Parameters

    • subjectIRI: OptionalStringOrStringArray

      The IRI(s) of the subject(s) to construct (single IRI or array of IRIs) or undefined/null to construct all subjects

    • typeIRIs: any

      The IRI(s) of the type(s) to construct (single IRI or array of IRIs) or undefined/null to construct all types

    • traversalSchema: TraversalSchema

      Dereferenced + projected schema from buildTraversalSchema

    • Optionaloptions: {
          excludedProperties?: string[];
          filterOptions?: GraphTraversalFilterOptions;
          flavour?: SPARQLFlavour;
          maxRecursion?: number;
          prefixMap?: Prefixes;
          resolveInverseMaxDepth?: number;
          sparqlFeatures?: Partial<SparqlFeatureFlags>;
      }

      Optional configuration

    Returns ConstructResult

    CONSTRUCT and WHERE patterns with metadata