Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
Note: The AAS Query Language and the AAS Access Rules xref:bibliography.adoc#bib3[[3\]] share the same BNF grammar. Therefore, the result is a superset, with `query` as the entrypoint for the Query Language.
====

[#formula-grammar-sot]
=== Single source of truth for the formula grammar and JSON Schema

The BNF grammar and JSON Schema productions for *formula expressions* (logical expressions, comparisons, FieldIdentifiers, value literals, operands, type casts, and `$match` / `$and` / `$or` / `$not` operators) are *normatively defined in this specification* (IDTA-01002, this chapter and the JSON Schema below).

Check warning on line 28 in documentation/IDTA-01002-3/modules/ROOT/pages/query-language.adoc

View workflow job for this annotation

GitHub Actions / qodana

Typo

Typo: In word 'IDTA'

Check warning

Code scanning / QDJVMC

Typo Warning documentation

Typo: In word 'IDTA'

IDTA-01004 Part 4: Security xref:bibliography.adoc#bib3[[3\]] uses the same formula grammar and schema for `FORMULA`, `FILTER` and related constructs in Access Rules. IDTA-01004 MUST NOT redefine or diverge from these shared productions; it only adds Access-Rule-specific productions (`ACL`, `OBJECTS`, `RIGHTS`, `ACCESS`, `ROUTE`, etc.) on top.

Check warning on line 30 in documentation/IDTA-01002-3/modules/ROOT/pages/query-language.adoc

View workflow job for this annotation

GitHub Actions / qodana

Typo

Typo: In word 'IDTA'

Check warning

Code scanning / QDJVMC

Typo Warning documentation

Typo: In word 'IDTA'

If a future bugfix or minor release changes a shared production in IDTA-01002, IDTA-01004 inherits that change. Implementations SHOULD validate formulas against the schema shipped with their IDTA-01002 version.

Check warning on line 32 in documentation/IDTA-01002-3/modules/ROOT/pages/query-language.adoc

View workflow job for this annotation

GitHub Actions / qodana

Typo

Typo: In word 'IDTA'

Check warning

Code scanning / QDJVMC

Typo Warning documentation

Typo: In word 'IDTA'


== Use Case Examples

Expand Down
Loading