OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (ODATA-12) create a data type for property names


    [ http://tools.oasis-open.org/issues/browse/ODATA-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31124#action_31124 ] 

Ralf Handl commented on ODATA-12:
---------------------------------

The verbosity of this example is due to the fact that we cannot define "simple" types that are based on primitive types, see ODATA-119. Using this we could define

<Schema Namespace="OData.Model">
  <SimpleType Name="Property" BaseType="Edm.String" />
</Schema>

and reduce the annotation to 

<ValueAnnotation Term="Temporal.ApplicationPeriod"> 
   <Record Type="Temporal.Period"> 
      <PropertyValue Name="StartPeriod" String="bus_start" /> 
      <PropertyValue Name="EndPeriod" String="bus_end" /> 
   </Record> 
</ValueAnnotation> 



> create a data type for property names
> -------------------------------------
>
>                 Key: ODATA-12
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-12
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData CSDL v1.0
>            Reporter: Andrew Eisenberg
>            Assignee: Michael Pizzo
>            Priority: Minor
>
> 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:
> <TypeAnnotation Term="Temporal.ApplicationPeriod">
>    <PropertyValue Name="StartPeriod" String="bus_start" />
>    <PropertyValue Name="EndPeriod" String="bus_end" />
> </TypeAnnotation>
> Instead of declaring StartPeriod and EndPeriod to be of type String, we could declare them to be of type PropertyName.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]