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

Examples 86 and 87 apply an entity type as term

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: CSDL JSON, CSDL XML
    • Labels:
      None
    • Proposal:
      Hide

      Extend the example to

      <Annotations Target="org.example.Person">
        <Annotation Term="org.example.hcm.Employee">
          ...
      </Annotations>
      

      Explain that the term org.example.hcm.Employee is of structured type. Introduce notion of an entity-valued annotation.

      This may be less confusing because we use org.example.hcm as a term namespace in Example 5.

      Go all the way and give the definition of term org.example.hcm.Employee and its type in an additional code block within this example, maybe a subset of https://schema.org/Person.

      Align the two example representations: the JSON representation has the @type control information, but the XML representation lacks the Type attribute.

      Explain that this annotation can be used in term-cast expressions in requests and give examples.

      Show
      Extend the example to <Annotations Target= "org.example.Person" > <Annotation Term= "org.example.hcm.Employee" > ... </Annotations> Explain that the term org.example.hcm.Employee is of structured type. Introduce notion of an entity-valued annotation. This may be less confusing because we use org.example.hcm as a term namespace in Example 5. Go all the way and give the definition of term org.example.hcm.Employee and its type in an additional code block within this example, maybe a subset of https://schema.org/Person . Align the two example representations: the JSON representation has the  @type  control information, but the XML representation lacks the  Type attribute. Explain that this annotation can be used in term-cast expressions in requests and give examples.
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-specs/pull/61

      Description

      Example 86 shows an annotation and uses an entity type as term:

      <Annotation Term="org.example.person.Employee">

      ...

      This is in conflict with 14.2 Annotation where the Term attribute is defined as a reference to a Term definition.

        Attachments

          Activity

            People

            • Assignee:
              heiko.theissen Heiko Theissen
              Reporter:
              gerald.krause1 Gerald Krause
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: