-
Notifications
You must be signed in to change notification settings - Fork 5
/
odata-temporal-abnf.txt
91 lines (81 loc) · 3.23 KB
/
odata-temporal-abnf.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
;------------------------------------------------------------------------------
; OData Temporal ABNF Construction Rules Version 4.0
;------------------------------------------------------------------------------
; 13 January 2022
;
; Latest version: https://github.com/oasis-tcs/odata-abnf/blob/main/abnf/odata-temporal-abnf.txt
;------------------------------------------------------------------------------
;
; Technical Committee:
; OASIS Open Data Protocol (OData) TC
; https://www.oasis-open.org/committees/odata
;
; Chairs:
; - Ralf Handl ([email protected]), SAP SE
; - Michael Pizzo ([email protected]), Microsoft
;
; Editors:
; - Ralf Handl ([email protected]), SAP SE
; - Hubert Heijkers ([email protected]), IBM
; - Michael Pizzo ([email protected]), Microsoft
; - Martin Zurmuehl ([email protected]), SAP SE
;
; Additional artifacts:
; This grammar is one component of a Work Product which consists of:
; - OData Extension for Temporal Data Version 4.0
; - OData Temporal ABNF Construction Rules Version 4.0
; - OData Temporal ABNF Test Cases Version 4.0
; - OData Temporal Vocabulary
;
; Related work:
; This specification is related to:
; - OData Version 4.01 Part 1: Protocol
; - OData Version 4.01 Part 2: URL Conventions
; - OData Common Schema Definition Language (CSDL) JSON Representation Version 4.01
; - OData Common Schema Definition Language (CSDL) XML Representation Version 4.01
; - OData JSON Format Version 4.01
; - OData ABNF Construction Rules Version 4.01
; - OData Core Vocabulary
;
; This specification replaces or supersedes:
; - None
;
; Declared XML namespaces:
; - None
;
; Abstract:
; This specification defines how to represent and interact with temporal data
; using the Open Data Protocol (OData).
;
; Overview:
; This grammar uses the ABNF defined in RFC5234 and RFC7405.
;
; It extends the OData ABNF Construction Rules Version 4.01
;
; Contents:
; 1. New alternatives for OData ABNF Construction Rules
; 2. Temporal System Query Options
;
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
; 1. New alternatives for OData ABNF Construction Rules
;------------------------------------------------------------------------------
systemQueryOption =/ temporalOption
expandOption =/ temporalOption
temporalOption = at-option
/ from
/ to
/ toInclusive
;------------------------------------------------------------------------------
; 2. Temporal System Query Options
;------------------------------------------------------------------------------
at-option = "$at" EQ temporalExpr
from = "$from" EQ temporalExpr
to = "$to" EQ temporalExpr
toInclusive = "$toInclusive" EQ temporalExpr
temporalExpr = "min"
/ "max"
/ commonExpr ; evaluating to a dateValue or dateTimeOffsetValue
;------------------------------------------------------------------------------
; End of odata-temporal-abnf
;------------------------------------------------------------------------------