Traqula docs
    Preparing search index...
    interface SparqlContext {
        astFactory: AstFactory;
        baseIRI: string | undefined;
        namedAggregatorCallback?: (iri: string) => boolean;
        parseMode: Set<string>;
        prefixes: Record<string, string>;
        rejectGroupedSelectAliasReuse?: boolean;
        skipValidation: boolean;
    }
    Index

    Properties

    astFactory: AstFactory

    Data-factoryMixins to be used when constructing rdf primitives.

    baseIRI: string | undefined

    Currently scoped base IRI. Only used to resolve the IRIs of function calls for namedAggregatorCallback.

    namedAggregatorCallback?: (iri: string) => boolean

    Decides whether the function with the given full IRI is a custom aggregate. Without it, validation assumes any function call might be one. Can be called multiple times per function call.

    parseMode: Set<string>

    Set of queryModes. Primarily used for note 8, 14.

    prefixes: Record<string, string>

    Current scoped prefixes. Used to validate parsed prefixes are known, and to resolve the IRIs of function calls for namedAggregatorCallback.

    rejectGroupedSelectAliasReuse?: boolean

    Reject select expressions that use a variable bound by an earlier select expression in a grouped query, like SELECT (COUNT(?o) AS ?c) (?c + 1 AS ?d) WHERE { ?s ?p ?o }. In an ungrouped query, this reuse is always allowed: https://www.w3.org/TR/sparql11-query/#selectExpressions

    In SELECT expressions, the variable may be used in an expression later in the same SELECT clause In a grouped query, the SPARQL 1.1 text does not allow it, since only aggregates, constants, and GROUP BY variables may be projected: https://www.w3.org/TR/sparql11-query/#aggregateRestrictions SPARQL 1.2 allows it (https://github.com/w3c/sparql-query/pull/380): https://www.w3.org/TR/sparql12-query/#aggregateRestrictions Defaults to false, following SPARQL 1.2 and since the algebra does not really care.

    skipValidation: boolean

    Can be used to disable the validation that used variables in a select clause are in scope.