SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
β€’ Open full site

Learn how to read annotations in OData metadata documents

Annotations from different vocabularies can be found throughout OData metadata documents.

Overview

🎓 beginner 20 min. SAP Business Technology PlatformCloudOdataBeginner

You will learn

  • βœ”How annotations are defined & structured
  • βœ”How annotations are used to extend the information in the schema
DJ Adams D DJ Adams February 25, 2026
Created by February 21, 2026
Contributors

Prerequisites

Steps

Intro

In all cases, annotations consist of two parts - the term and the value. In this tutorial we’ll examine the terms, along with their types and possible values, in our Northbreeze OData metadata document.

This tutorial belongs to the OData Deep Dive mission, a re-write of the original. The re-write is a work in progess, please proceed with caution! More info can be found in the blog post OData Deep Dive rewrite in the open.


Step 1 Revisit the Core.Links annotation
β€”

One of the annotations we took a brief first look at in the previous tutorial was “Core.Links”, where “Core” is the vocabulary alias, referring here to “Org.OData.Core.V1”.

XML
<Schema Namespace="Main" xmlns="http://docs.oasis-open.org/odata/ns/edm">
  <Annotation Term="Core.Links">
    <Collection>
      <Record>
        <PropertyValue Property="rel" String="author"/>
        <PropertyValue Property="href" String="https://cap.cloud.sap"/>
      </Record>
    </Collection>
  </Annotation>
  ...
</Schema>

The XML element structure contained within the &lt;Annotation&gt; element is the annotation term’s value. Staring at this structure for a bit, we see that it’s a collection of records, each of which have two properties (or fields) “rel” and “href”, for which there are corresponding string values.

There’s only a single record in the collection, and it looks like this:

relhref
authorhttps://cap.cloud.sap
Step 2 Dig into the XML representation of the Core vocabulary
+
Step 3 Explore the Core.IsURL annotation
+
Step 4 Revisit the Core vocabulary via the HTML representation
+
Step 5 Examine the other Capabilities annotations
+
Step 6 Further info
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Revisit the Core.Links annotation 2. Dig into the XML representation of the Core vocabulary 3. Explore the Core.IsURL annotation 4. Revisit the Core vocabulary via the HTML representation 5. Examine the other Capabilities annotations 6. Further info

Learn more →