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

Allow expressing that a term can be applied any collection and is not restricted to entity sets

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_OS
    • Fix Version/s: V4.01_WD01
    • Component/s: Protocol
    • Labels:
    • Environment:

      Annotations

    • Proposal:
      Hide

      Add AppliesTo value "Collection" to clearly indicate that this term can be applied to any collection of entities, not only entity sets.

      The new value is intentionally vague, i.e. not differentiated into EntityCollection, ComplexCollection, PrimitiveCollection because this optional restricition will typically be implied by the term semantics.

      Show
      Add AppliesTo value "Collection" to clearly indicate that this term can be applied to any collection of entities, not only entity sets. The new value is intentionally vague, i.e. not differentiated into EntityCollection, ComplexCollection, PrimitiveCollection because this optional restricition will typically be implied by the term semantics.
    • Resolution:
      Show
      https://www.oasis-open.org/apps/org/workgroup/odata/download.php/59031/odata-csdl-xml-v4.01-wd01.docx https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/4.01%20spec/vocabularies/Org.OData.Core.V1.xml

      Description

      We have a number of annotations (for example, in the capabilities vocabulary) that target entity sets. Most of these annotations can similarly be applied to containment relationships and singletons. How does the service apply such annotations to containment/singletons?

      AppliesTo is only a hint, so the Capability annotations can already applied to non-containment navigation properties that are just collections of entities and not entity sets.

      Still open: does AppliesTo="EntitySet" imply that the annotation can target any collection of entities, or do we need an additional AppliesTo value, e.g. "Collection"?

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo (Inactive)
              Reporter:
              mikep Michael Pizzo (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: