@sap-ux/odata-vocabularies
Library that contains the most recent copies of the OData vocabularies authored by OASIS and SAP
Supported Vocabularies
OASIS Vocabularies
- Aggregation
- Authorization
- Core
- Capabilities
- Measures
- Temporal
- Repeatability
- Validation
- JSON
SAP Vocabularies
- Analytics
- CodeList
- Common
- Communication
- DataIntegration
- DirectEdit
- Graph
- Hierarchy
- HTML5
- ODM
- PDF
- PersonalData
- Session
- UI
Installation
Npm
npm install --save @sap-ux/odata-vocabularies
Yarn
yarn add @sap-ux/odata-vocabularies
Pnpm
pnpm add @sap-ux/odata-vocabularies
Usage
-
Import the needed functions in your modules
import { VocabularyService } from '@sap/ux-odata-vocabularies';
Vocabulary API
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