Explains how to add vocabulary-based annotations to data model artifacts in the Service
Builder.
Context
Add vocabulary-based annotations to data model artifacts such as complex types, entity
types, and associations entity sets, association sets and, function import to
specify additional information about a particular artifact that would not be
possible using core attributes alone. To add vocabulary-based annotations, you can
use the vocabulary files available in the Vocabulary Repository as standard in the
/IWBEP/ name-space or you can define and upload
customer-specific vocabulary files. For example, you want to use the standard
vocabulary Org.OData.Aggregation.V1 to add the annotations
LeveledHierarchy or RecursiveHierarchy
to entity types for which only core attributes could be defined such as
Base Type Name and
Is Abstract. You can import one or more
vocabulary files in a data model, provided that the data model is created in a
Service Builder project of type Service with Vocabulary-Based
Annotations or Annotation Model for Referenced
Service.
Imported VocabulariesAfter you
have imported a vocabulary file into your data model, a
Vocabularies subfolder is displayed for the data
model in the tree view. The
Vocabularies subfolder
includes:
- Imports subfolder that lists the name of the
vocabulary files explicitly imported from the Vocabulary Repository to
the data model. Expand Imports folder, expand the imported vocabulary
folder and double click folder Terms to know to which data model
artifact the terms in the imported vocabulary file are applicable. The
Name column displays the name of the vocabulary terms and columns with
selected check-box indicates to which data model artifact the specific
term applies. For example, complex types and their properties and the
defined terms.
- Implicit References subfolder that lists the names
of the vocabular files used implicitly since the imported vocabularies
reference it. For each implicitly referenced vocabulary file, you can
expand the data model artifacts for which it applies, for example,
complex types and their properties and the defined terms.
Further, nested inside each sub-folder for a particular entity type or
complex type, for example, in the data model, an Annotations sub-folder exists that
lists the imported vocabularies folder. Double click this folder to display the
number of applicable terms each vocabulary defines for the given node (this
information is displayed in the mass maintenance view). These are the
vocabulary-based annotations you can add to these artifacts.