Changes between Version 16 and Version 17 of SemanticQuery
- Timestamp:
- Mar 20, 2012, 6:29:42 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SemanticQuery
v16 v17 96 96 For example, we may need the functions with variables named {{{File}}}. This information can not be expressed with the help of properties. Without embedded queries it is only possible to query the variables named {{{File}}} and query the functions containing these variables after that, with the following query: 97 97 {{{ 98 "mods.functions.variables[name=="File"].function_definition98 mods.functions.variables[name=="File"].function_definition 99 99 }}} 100 100 Embedded queries make it possible to use these kind of queries effectively, without the need to continue with the query directly. The continuation of the query is in the filter, used like a property with a boolean value. The value is considered true if the result of the query is not empty. For the previous example using the following query will give the desired results. 101 101 {{{ 102 @mods.functions[.variables[name=="File"]] "}}}102 @mods.functions[.variables[name=="File"]] 103 103 }}} 104 104