semantics
Semantic analysis and validation of search templates.
This module performs semantic validation on syntactically parsed search templates. It verifies that the template is meaningful and executable against a corpus by:
- Validating object types exist in the corpus - Checking that referenced features are loaded - Verifying relation operators are valid - Building the query graph (qnodes, qedges) for execution - Type-checking feature value comparisons
The semantic analysis runs after syntactic parsing (see `cfabric.search.syntax`) and before search execution (see `cfabric.search.searchexe`).
See Also -------- cfabric.search.syntax : Syntactic parsing of templates cfabric.search.search : High-level search API cfabric.search.relations : Relation definitions and operators
Functions
semantics(searchExe: SearchExe) → NonePerform semantic analysis on a parsed search template.
Parameters
searchExe: SearchExe