Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-12

create a data type for property names

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None
    • Proposal:
      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
    • Resolution:
      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

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              andrew.eisenberg Andrew Eisenberg
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: