⚠️ LLM-generated content notice: Parts of this page may have been created or edited with the assistance of a large language model (LLM). The prompts that have been used might be on the page itself, the discussion page or in straight forward cases the prompt was just "Write a mediawiki page on X" with X being the page name. While the content has been reviewed it might still not be accurate or error-free.
A query language is considered resource-bounded safe if, in addition to returning finite results, it provides guarantees about resource consumption within practical constraints:
A query language is considered semantically constrained if it can express and enforce cardinality expectations based on domain-specific knowledge:
These extended definitions move beyond purely mathematical safety toward practical guarantees that reflect real-world data characteristics and resource constraints.