Library that contains the most recent copies of the OData vocabularies authored by OASIS and SAP
- Aggregation
- Authorization
- Core
- Capabilities
- Measures
- Temporal
- Repeatability
- Validation
- JSON
- Analytics
- CodeList
- Common
- Communication
- DataIntegration
- DirectEdit
- Graph
- Hierarchy
- HTML5
- ODM
- PersonalData
- Session
- UI
Npm
npm install --save @sap-ux/odata-vocabularies
Yarn
yarn add @sap-ux/odata-vocabularies
Pnpm
pnpm add @sap-ux/odata-vocabularies
-
Import the needed functions in your modules
import { VocabularyService } from '@sap/ux-odata-vocabularies';
The vocabulary API is implemented via class VocabularyService and currently exposes the following functions:
-
checkTermApplicability
-
getComplexType
-
getComplexTypeProperty
-
getDerivedTypeNames
-
getDocumentation
-
getTerm
-
getTermsForTargetKinds
-
getType
-
getVocabularies
-
getVocabulary
-
getVocabularyNamespace