什么是 SAP vocabulary-based annotations
我們?cè)?SAP Fiori Elements 應(yīng)用的本地注解里,能看到大量如下以 Common 和 UI 為前綴的注解屬性:
這些 Common,UI,實(shí)際是命名空間(namespace), 定義在本地注解文件(文件夾localService下面) 的開(kāi)頭部分:
<?xml version="1.0" encoding="utf-8"?> <edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"><edmx:Reference Uri="../../catalogservice;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_COMMON',Version='0001',SAP__Origin='LOCAL')/$value"><edmx:Include Namespace="com.sap.vocabularies.Common.v1" Alias="Common"/></edmx:Reference><edmx:Reference Uri="../../catalogservice;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_UI',Version='0001',SAP__Origin='LOCAL')/$value"><edmx:Include Namespace="com.sap.vocabularies.UI.v1" Alias="UI"/></edmx:Reference>- com.sap.vocabularies.Common.v1: Common terms for all SAP vocabularies
https://sap.github.io/odata-vocabularies/vocabularies/Common.html
- com.sap.vocabularies.UI.v1:Terms for presenting data in user interfaces
https://sap.github.io/odata-vocabularies/vocabularies/UI.html
SAP 為 Fiori Elements 定義的所有 OData vocabulary 注解,都能在這個(gè)鏈接里找到:
https://sap.github.io/odata-vocabularies/
vocabulary-based annotations 有兩種類型:
These annotations are available using a query to the SAP Gateway catalog service, /sap/opu/odata/IWFND/CATALOGSERVICE;v=2/. Entity Set: ?Annotations‘.
例如下圖所示:
更多Jerry的原創(chuàng)文章,盡在:“汪子熙”:
總結(jié)
以上是生活随笔為你收集整理的什么是 SAP vocabulary-based annotations的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 消息称苹果 Thunderbolt Di
- 下一篇: SAP Fiori Elements c