Skip to content

CIMVocabCheck: warn on unused SPARQL variables #23

Description

@spah-soptim

Currently, variables that are declared but never meaningfully used in a query are silently accepted without any feedback. This can hide typos (e.g. ?nmae vs ?name) or leftover variables from query edits.

Two cases to cover:

Projected but unbound — a variable in the SELECT clause that doesn't appear anywhere in WHERE/BIND/VALUES.
Bound but unreferenced — a variable that appears in a triple pattern but is never projected, filtered on, ordered/grouped by, or used elsewhere in the query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions