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.
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.