create a data type for property names

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • V4.0_WD01
    • Affects Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • None
    • Hide

      Introduce "primitive types" Edm.Property and Edm.NavigationProperty that can only be used in the Type attribute of a Term or a property of a complex type that is used as the type of a term.

      Add new attributes PropertyPath and NavigationPropertyPath to Annotation and PropertyValue with the same syntax as the Path attribute:

      <Annotation Term="Temporal.ApplicationPeriod">
      <PropertyValue Property="StartPeriod" PropertyPath="bus_start" />
      <PropertyValue Property="EndPeriod" PropertyPath="bus_end" />
      </Annotation>

      <Annotation Term="RelatedStuff" NavigationPropertyPath="Suppliers" />

      <Annotation Term="LookOverThere">
      <PropertyPath>SupplierName</PropertyPath>
      </Annotation>

      Also introduce elements for element notation of annotation values.

      Accepted: https://www.oasis-open.org/committees/download.php/48097/odata-meeting-23_on-20130130_31-F2F-minutes.html#odata-12

      Show
      Introduce "primitive types" Edm.Property and Edm.NavigationProperty that can only be used in the Type attribute of a Term or a property of a complex type that is used as the type of a term. Add new attributes PropertyPath and NavigationPropertyPath to Annotation and PropertyValue with the same syntax as the Path attribute: <Annotation Term="Temporal.ApplicationPeriod"> <PropertyValue Property="StartPeriod" PropertyPath="bus_start" /> <PropertyValue Property="EndPeriod" PropertyPath="bus_end" /> </Annotation> <Annotation Term="RelatedStuff" NavigationPropertyPath="Suppliers" /> <Annotation Term="LookOverThere"> <PropertyPath>SupplierName</PropertyPath> </Annotation> Also introduce elements for element notation of annotation values. Accepted: https://www.oasis-open.org/committees/download.php/48097/odata-meeting-23_on-20130130_31-F2F-minutes.html#odata-12
    • Show
      https://www.oasis-open.org/committees/download.php/48171/odata-core-v1.0-wd01-part3-csdl-2013-02-07-RH.doc https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/schemas/csdl.xsd?rev=175 Accepted: https://www.oasis-open.org/committees/download.php/48269/odata-meeting-25_on-20130214-minutes.html#odata-12

      The Edm.String data type can be used to define a type annotation property when the property will hold the name of some other property. A more specific data type could be added to OData for this purpose.

      In the OData Extension for Temporal Data we suggested this annotation:

      <Annotation Term="Temporal.ApplicationPeriod">
      <PropertyValue Property="StartPeriod" String="bus_start" />
      <PropertyValue Property="EndPeriod" String="bus_end" />
      </Annotation>

      Instead of declaring StartPeriod and EndPeriod to be of type String, we could declare them to be of type PropertyName.

            Assignee:
            handl
            Reporter:
            Andrew Eisenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: