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=31125#action_31125 ] 

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

Yet another approach would be to define a core annotation

<Schema Namespace="OData.Core"> 
  <ValueTerm Name="IsPropertyName" Type="Boolean" DefaultValue="true" /><!-- Thanks to ODATA-95 -->
</Schema>

<Schema Namespace="OData.Temporal"> 
  <ComplexType Name="Period"> 
    <Property Name="StartPeriod" Type="String" Nullable="False"> 
      <ValueAnnotation Term="OData.Core.IsPropertyName"/>
    </Property>
    <Property Name="EndPeriod" Type="String" Nullable="False"> 
      <ValueAnnotation Term="OData.Core.IsPropertyName"/>
    </Property>
  </ComplexType> 

  <ValueTerm Name="ApplicationPeriod" Type="Temporal.Period"> 
</Schema> 

Now Annotation Editing tools caninterpret the core annotation and provide code completion and syntax check to annotation authors.

> 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]