@faubulous/mentor-rdf-parsers
    Preparing search index...

    Function sparqlVariableSymbols

    • Returns a flat, positioned, scope-aware list of every SPARQL variable occurrence in source, each tagged with a co-reference binding id. Tolerant of malformed input: returns [] if the source does not lex/parse, so IDE features (variable rename, occurrence highlighting) can fall back gracefully while editing.

      Group the result by binding to get all rename sites of one variable. See variableSymbolsFromCst for the scoping rules.

      Parameters

      • source: string

      Returns SparqlVariableSymbol[]