diff options
author | Kajur, Harish (vk250x) <vk250x@att.com> | 2018-08-13 02:44:43 -0400 |
---|---|---|
committer | Kajur, Harish (vk250x) <vk250x@att.com> | 2018-08-13 12:35:56 -0400 |
commit | 9220f729873a7be6455f832468f5090ccd2a25cb (patch) | |
tree | 26ea9dc633bad1bd9bb0f25465a998cd85e6ee5f /aai-traversal/src/main/resources/antlr4/org | |
parent | cdeda67931317caa0582b6e806aaf2df42616170 (diff) |
Update traversal to use schema ingest library
Update the traversal microservice to use the ingest
library to make the application more model driven
Issue-ID: AAI-1465
Change-Id: Ifcf56b5d0e7f25ce2bc735b3186e09bc28234100
Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'aai-traversal/src/main/resources/antlr4/org')
-rw-r--r-- | aai-traversal/src/main/resources/antlr4/org/onap/aai/AAIDsl.g4 | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/aai-traversal/src/main/resources/antlr4/org/onap/aai/AAIDsl.g4 b/aai-traversal/src/main/resources/antlr4/org/onap/aai/AAIDsl.g4 index 2713677..f0c866a 100644 --- a/aai-traversal/src/main/resources/antlr4/org/onap/aai/AAIDsl.g4 +++ b/aai-traversal/src/main/resources/antlr4/org/onap/aai/AAIDsl.g4 @@ -6,21 +6,15 @@ grammar AAIDsl; aaiquery: dslStatement; -dslStatement: (queryStep) (traverseStep | unionTraverseStep)* limitStep*; - -queryStep : (singleNodeStep |singleQueryStep | multiQueryStep); +dslStatement: (singleNodeStep ) (traverseStep )* limitStep*; unionQueryStep: LBRACKET dslStatement ( COMMA (dslStatement))* RBRACKET; -traverseStep: (TRAVERSE ( queryStep | unionQueryStep)); - -unionTraverseStep: TRAVERSE unionQueryStep; +traverseStep: (TRAVERSE ( singleNodeStep | unionQueryStep)); -singleNodeStep: NODE STORE? ; -singleQueryStep: NODE STORE? (filterStep | filterTraverseStep); -multiQueryStep: NODE STORE? (filterStep | filterTraverseStep) (filterStep)+; +singleNodeStep: NODE STORE? (filterStep | filterTraverseStep)*; -filterStep: NOT? (LPAREN KEY COMMA KEY (COMMA KEY)*RPAREN); +filterStep: NOT? (LPAREN KEY (COMMA KEY)* RPAREN); filterTraverseStep: (LPAREN traverseStep* RPAREN); limitStep: LIMIT NODE; @@ -28,7 +22,8 @@ limitStep: LIMIT NODE; LIMIT: 'LIMIT'; NODE: ID; -KEY: ['] ID ['] ; +KEY: ['] (ID | ' ')* ['] ; + AND: [&]; |