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

Define term for links to related information

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD01
    • Fix Version/s: V4.0_CSD02
    • Component/s: Vocabularies
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      Define new Core term:

      <Term Name="Links" Type="Collection(Core.Link)">
      <Annotation Term="Core.Description" String="Link to related information" />
      <Annotation Term="Core.LongDescription"
      String="The Link term is inspired by the `atom:Link` element, see [RFC4287](https://tools.ietf.org/html/rfc4287#section-4.2.7) and the `Link` HTTP header, see [RFC5988](https://tools.ietf.org/html/rfc5988)" />
      </Term>
      <ComplexType Name="Link">
      <Property Name="rel" Type="Edm.String" Nullable="false">
      <Annotation Term="Core.Description"
      String="Link relation type, see [IANA Link Relations](http://www.iana.org/assignments/link-relations/link-relations.xhtml)" />
      </Property>
      <Property Name="href" Type="Edm.String" Nullable="false">
      <Annotation Term="Core.IsURL" />
      <Annotation Term="Core.Description" String="URL of related information" />
      </Property>
      </ComplexType>

      <!-- Example -->
      <Annotation Term="Core.Links">
      <Collection>
      <Record>
      <PropertyValue Property="rel" String="latest-version" />
      <PropertyValue Property="href"
      String="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml" />
      </Record>
      </Collection>
      </Annotation>

      Show
      Define new Core term: <Term Name="Links" Type="Collection(Core.Link)"> <Annotation Term="Core.Description" String="Link to related information" /> <Annotation Term="Core.LongDescription" String="The Link term is inspired by the `atom:Link` element, see [RFC4287] ( https://tools.ietf.org/html/rfc4287#section-4.2.7 ) and the `Link` HTTP header, see [RFC5988] ( https://tools.ietf.org/html/rfc5988 )" /> </Term> <ComplexType Name="Link"> <Property Name="rel" Type="Edm.String" Nullable="false"> <Annotation Term="Core.Description" String="Link relation type, see [IANA Link Relations] ( http://www.iana.org/assignments/link-relations/link-relations.xhtml )" /> </Property> <Property Name="href" Type="Edm.String" Nullable="false"> <Annotation Term="Core.IsURL" /> <Annotation Term="Core.Description" String="URL of related information" /> </Property> </ComplexType> <!-- Example --> <Annotation Term="Core.Links"> <Collection> <Record> <PropertyValue Property="rel" String="latest-version" /> <PropertyValue Property="href" String="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml" /> </Record> </Collection> </Annotation>
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-vocabularies/commit/c0e912b0d926d31f4866746fc0f12f2aa331bdfc

      Description

      Define term for links to related information, e.g. "latest-version" or similar.
      Sources of inspiration: the <atom:link> element and the Link HTTP header.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: