首页 百科知识 商业流通领域数据字典(GS1GDD)示例

商业流通领域数据字典(GS1GDD)示例

时间:2024-10-15 百科知识 版权反馈
【摘要】:GS1为了全球商业流通领域的电子数据交换,制定了商业流通领域全球数据字典。GS1 GDD使用UML类图作为数据的结构设计,在GDD中定义了核心元数据的组成,构成了GS1全球商业流通领域核心元数据完整的描述和设计方法。G lobalLocationNum ber是一个13位数字代码,用于唯一标识贸易参与方的位置。

2.6.2 商业流通领域数据字典(GS1 GDD)示例

GS1为了全球商业流通领域的电子数据交换,制定了商业流通领域全球数据字典(GS1 GDD)。GS1 GDD通用数据仓库(Common Library,CL)中存储了全球商业流通领域业务过程和信息交换使用的标准化的、可重用的类(Class)、业务属性(Business Attribute)、业务语境(Business Context)、数据类型、数据格式、约束条件(必备/可选)并提供了应用参考,包括XML schemas示例、EANCOM、核心组件(ebXML CC)以及包括全部产品信息编码标准的GS1通用规范,并对其实施动态维护。

GS1 GDD使用UML类图作为数据的结构设计,在GDD中定义了核心元数据的组成,构成了GS1全球商业流通领域核心元数据完整的描述和设计方法。

以核心贸易项目为例,核心贸易项目是贸易各方都涉及的最基本的数据,数据字典中核心贸易项目的内容包括:

(1)核心贸易项目高层级类图

核心贸易项目高层级类图如图2-8所示。

(2)核心贸易项目数据字典。

核心贸易项目数据字典见表2-5。

img21


图2-8 核心贸易项目高层级类图


表2-5

img22


续表

img23

●类: ItemDescription

ItemDescription的属性包括: brandName、discriptionShort、itemName等。每一个属性都由语言代码和文本组成。文本语言使用ISO 639-1988两位字母代码,如英语是EN,法语是FR。

additionalAttributeDescription——自由文本,用来记录附加的产品属性。它可以用来标识信息提供者需要传送的任何附加信息。如制造商名称。additionalAttributeDescription是可选项。

brandName——品名。brandName是可选项。

descriptionShort——贸易项目的简要描述,descriptionShort是必备项。

itemDescription——信息提供者提供的产品描述。itemDescription是可选项。

itemName——比品名更完全的产品名称。itemName是可选项。

●类: Classification

贸易项目的Classification是必备项,根据需要可重复。Classification包括以下属性:

classificationAgency——classificationAgency是负责管理和维护产品分类代码的团体,例如UN/SPSC、CPC等。classificationAgency是必备项。

●类: PartyIdentification

全球贸易参与方位置代码(GlobalLocationNumber,GLN)或者使用AlternatePartyIdentification来标识一个贸易参与方。每个参与方仅能使用一个参与方标识符。

●类: GlobalLocationNumber

G lobalLocationNum ber(GLN)是一个13位数字代码,用于唯一标识贸易参与方的位置。包括:

——EAN.UCC厂商识别代码。

——位置参考。

——校验位。GLN是用来标识一个法律实体的机构或组织的代码,即对贸易参与方的标识,如:

合法实体:批发公司、附属机构或部门,如供应商、零售商、客户、银行和转运商等。

功能实体:在合法实体内具体的部门,如会计部门、销售部门和客户编号等。

物理实体:在建筑物、仓库、仓库门、装运码头、交付点、箱体、住宅线路板、建筑物内的房间等。

gln——一个具体的GlobalLocationNumber。gln是必备项。

●类: GlobalTradeItemNumber

GlobalTradeItemNumber是主要的贸易项目标识符。如果产品申请了GlobalTradeItem Number(GTIN)代码,就必须使用它来标识产品。而且仅能使用一个标识代码。GTIN包括UCC-12、EAN.UCC-8、EAN.UCC-13和EAN.UCC-14。

gtin——一个具体的GlobalTradeItemNumber。gtin是必备项。

(3)核心贸易项目XML schema文件(Item.xsd)。

<? xm l version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.uc-council.org/smp/schemas/core"

xmlns="http://www.uccouncil.

org/smp/schemas/core" elementFormDefault="unqualified"

attributeFormDefault="unqualified">

<xsd:annotation>

<xsd:documentation>

℃Uniform Code Council,Inc. and EAN International,Inc. 2001

The Uniform Code Council,Inc.(UCC) is providing this XML Schema Definition

file and resultant XML file as a service to interested industries.

This XML Schema Definition file and resultant XML file were developed through a

consensus process of interested parties.

Although efforts have beenmade to assure that the XML Schema Definition file and

resultant XML file are correct,reliable,and technically accurate,the UCC

makes NO WARRANTY,EXPRESS OR IMPLIED,THAT THIS XML Schema

Definition file and resultant XML file ARE CORRECT,W ILL NOT REQUIRE

MODIFICATION AS EXPERIENCE AND TECHNOLOGICAL ADVANCES

DICTATE,OR W ILL BE SUITABLE FOR ANY PURPOSE OR WORKABLE IN ANY

APPLICATION,OR OTHERW ISE. Use of the XML Schema Definition file and

resultant XML file are with the understanding that the UCC has no liability for any

claim to the contrary,or for any damage or loss of any kind or nature.

Version Information:

Version Number: 1.0

Date of creation: July 2001.

The schema and subsequent updates will be provided on the EAN and UCC websites.

</xsd:documentation>

</xsd:annotation>

<xsd:complexType name="ItemType" abstract="true">

<xsd:complexContent>

<xsd:extension base="DocumentType"/>

</xsd:complexContent>

</xsd:complexType>

<xsd:complexType name="Item InformationType" abstract="true">

<xsd:sequence>

<xsd:group ref="TermsGroupType"/>

<xsd:element name="manufacturer" type="PartyIdentificationType"minOccurs="0"maxOccurs="1"/>

<xsd:element name="itemDescription" type="ItemDescriptionType"minOccurs="1"maxOccurs="1"/>

<xsd:element name="unitOfMeasure" type="UnitOfMeasureType" minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="ItemDescriptionType">

<xsd:sequence>

<xsd:element name="additionalAttributeDescription" type="TextDescriptionType" minOccurs="0" maxOccurs="1"/>

<xsd:element name="brandName" type="TextDescriptionType" minOccurs="0"maxOccurs="1"/>

<xsd:element name="descriptionShort" type="TextDescriptionType"minOccurs="1"maxOccurs="1"/>

<xsd:element name="itemDescription" type="TextDescriptionType"minOccurs="0"maxOccurs="1"/>

<xsd:element name="itemName" type="TextDescriptionType"minOccurs="0"maxOccurs="1"/>

<xsd:element name="itemClassification" type="ClassificationType"minOccurs="1"maxOccurs="unbounded"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="ClassificationType">

<xsd:sequence>

<xsd:element name="agency" type="String1to35Type"minOccurs="1" max Occurs="1"/>

<xsd:element name="attribute" type="ClassificationAttributeType"minOccurs="0"maxOccurs="unbounded"/>

<xsd:element name="category" type="ClassificationCategoryType" minOccurs="1"maxOccurs="unbounded"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="ClassificationCategoryType">

<xsd:sequence>

<xsd:element name="code" type="String1to35Type"minOccurs="1" max

Occurs="1"/>

<xsd:element name="classificationName" type="TextDescriptionType" min

Occurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="ClassificationAttributeType">

<xsd:sequence>

<xsd: element name=" classificationItemCode" type=" String1to35Type" minOccurs="1"maxOccurs="1"/>

<xsd:element name=" classificationItemName" type="TextDescriptionType" minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="RelationshipDependentDataType" abstract="true">

<xsd:complexContent>

<xsd:extension base="Item InformationType">

<xsd:sequence>

<xsd:element name="colorCharacteristics" type="ColorCharacteristicsType" minOccurs="0" maxOccurs="1"/>

<xsd:element name="tradeItemHandlingInformation" type=

"TradeItemHandlingInformationType" minOccurs="0"maxOccurs=

"unbounded"/>

<xsd:element name="tradeItemHazardousInformation" type=

"TradeItemHazardousInformationType"minOccurs="0"maxOccurs=

"unbounded"/>

<xsd:element name="tradeItemDate" type="TradeItemDateType" minOccurs="1"maxOccurs="1"/>

<xsd:element name="materialSafetyData" type="MaterialSafetyDataType" minOccurs="1" maxOccurs="1"/>

<xsd:element name="packagingCharacteristics" type=

"PackagingCharacteristicsType" minOccurs="0"maxOccurs="1"/>

<xsd: element name=" packagingMaterial" type="PackagingMaterialType" minOccurs="0" maxOccurs="1"/>

<xsd: element name=" sizeCharacteristics" type="SizeCharacteristicsType" minOccurs="0" maxOccurs="1"/>

<xsd:element name="tradeItemQuantities" type="TradeItemQuantitiesType" minOccurs="0" maxOccurs="1"/>

<xsd: element name=" unitIndicator" type="TradeItemUnitIndicatorType" minOccurs="1" maxOccurs="1"/>

</xsd:sequence>

</xsd:extension>

</xsd:complexContent>

</xsd:complexType>

<xsd:complexType name="ColorCharacteristicsType">

<xsd:sequence>

<xsd:element name="color" type="TextDescriptionType" minOccurs="1" maxOccurs="1"/>

<xsd: element name=" colorCodeListAgency" type=" Integer1to3Type" minOccurs="1"maxOccurs="1"/>

<xsd:element name="colorCodeValue" type="String1to17Type" minOccurs

="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="TradeItemHandlingInformationType">

<xsd:sequence>

<xsd: element name=" handlingInstructions" type=" TextDescriptionType" minOccurs="1"maxOccurs="1"/>

<xsd: element name=" palletDataPalletHandlingOnewayReusable" type="String1to35Type"minOccurs="1"maxOccurs="1"/>

<xsd: element name=" palletDataPalletTypeCode" type="String1to3Type" minOccurs="1"maxOccurs="1"/>

<xsd:element name="stackingFactor" type="Integer1to6Type" minOccurs="1"maxOccurs="1"/>

<xsd:element name="stackingWeightMaximum" type="MeasurementType" minOccurs="1"maxOccurs="1"/>

<xsd:element name="storageHandlingTemperatureMaximum" type="Measurement Type"minOccurs="1"maxOccurs="1"/>

<xsd:element name="storageHandlingTemperatureMinimum" type="Measurement Type"minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="TradeItemHazardousInformationType">

<xsd:sequence>

<xsd:element name="dangerousGoodsItemNumberLetter" type="String1to6

Type"minOccurs="1"maxOccurs="1"/>

<xsd:element name="dangerousGoodsSubstanceIdentificationNumber" type="String1to4Type"minOccurs="1"maxOccurs="1"/>

<xsd:element name="dangerousGoodsTechnicalName" type="TextDescription Type"minOccurs="1"maxOccurs="1"/>

<xsd: element name=" flashPointTemperature" type="MeasurementType" minOccurs="1"maxOccurs="1"/>

<xsd:element name="hazardCode" type="String1Type" minOccurs="1" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="TradeItemDateType">

<xsd:sequence>

<xsd:element name="effectiveChangeDate" type="DateType"minOccurs="0" maxOccurs="1"/>

<xsd: element name=" endAvailabilityDate" type=" DateAndTimeType" minOccurs="0" maxOccurs="1"/>

<xsd:element name=" firstSaleDate" type="DateType" minOccurs="0" maxOccurs="1"/>

<xsd: element name=" orderingLeadTimeDays" type=" Integer1to12Type" minOccurs="0" maxOccurs="1"/>

<xsd: element name=" startAvailabilityDate" type=" DateAndTimeType" minOccurs="1" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="MaterialSafetyDataType">

<xsd:sequence>

<xsd:element name="materialSafetyDataSheet" type="xsd:boolean"minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="PackagingCharacteristicsType">

<xsd:sequence>

<xsd:element name="numberOfCompleteLayersContainedInATradeItem" type="String1to6Type" minOccurs="0"maxOccurs="1"/>

<xsd:element name="numberOfTradeItemsContainedInACompleteLayer" type="String1to6Type" minOccurs="0"maxOccurs="1"/>

<xsd:element name="numberOfTradeItemsPerPallet" type="String1to6Type" minOccurs="0" maxOccurs="1"/>

<xsd:element name="numberOfTradeItemsPerPalletLayer" type="String1to6Type" minOccurs="0"maxOccurs="1"/>

<xsd: element name=" numberOfLayersPerPallet" type=" String1to6Type" minOccurs="0"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="PackagingMaterialType">

<xsd:sequence>

<xsd: element name=" code" type=" String1to3Type" minOccurs=" 1" maxOccurs="1"/>

<xsd:element name=" codeListMaintenanceAgency" type="String1to3Type" minOccurs="1"maxOccurs="1"/>

<xsd:element name="composition" type="PercentageType" minOccurs="1" maxOccurs="1"/>

<xsd:element name="description" type="TextDescriptionType" minOccurs="1"maxOccurs="1"/>

<xsd: element name=" type" type=" String1to3Type" minOccurs=" 1" maxOccurs="1"/>

<xsd:element name="packagingType" type="String1to3Type" minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="SizeCharacteristicsType">

<xsd:sequence>

<xsd:element name="size" type="TextDescriptionType" minOccurs="1" maxOccurs="1"/>

<xsd:element name="sizeCodeListAgency" type="String1to3Type" minOccurs="1"maxOccurs="1"/>

<xsd:element name="sizeCodeValue" type="String1to3Type" minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="TradeItemQuantitiesType">

<xsd:sequence>

<xsd: element name=" orderQuantityMaximum" type=" QuantityType" minOccurs="1" maxOccurs="1"/>

<xsd: element name=" orderQuantityMinimum" type=" QuantityType" minOccurs="1" maxOccurs="1"/>

<xsd:element name="orderQuantityMultiple" type="QuantityType"minOccurs="1"maxOccurs="1"/>

<xsd:element name="orderSizingFactor" type="Integer1to15Type" minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="TradeItemUnitIndicatorType">

<xsd:sequence>

<xsd:element name="baseUnitIndicator" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>

<xsd:element name="despatchUnitIndicator" type="xsd:boolean" minOccurs="1"maxOccurs="1"/>

<xsd:element name="invoiceUnitIndicator" type="xsd:boolean" minOccurs="1"maxOccurs="1"/>

<xsd:element name="orderingUnitIndicator" type="xsd:boolean" minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="TradeItemCharacteristicsType">

<xsd:sequence>

<xsd: element name=" countryOfOrigin" type=" CountryISOCodeType" minOccurs="1" maxOccurs="1"/>

<xsd:element name="nonPublicIndicator" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>

<xsd: element name=" prePricedAmount" type="MonetaryAmountType" minOccurs="1" maxOccurs="1"/>

<xsd:element name="pricingOnTheProduct" type="xsd:boolean" minOccurs="1"maxOccurs="1"/>

<xsd: element name=" rightOfReturnForNonSoldTradeItems" type=" xsd: boolean"minOccurs="1"maxOccurs="1"/>

<xsd:element name="tradeItemBarcoded" type="xsd:boolean"minOccurs="1"maxOccurs="1"/>

<xsd: element name=" variableWeightTradeItem" type=" xsd: boolean" minOccurs="1"maxOccurs="1"/>

<xsd: element name=" targetMarketCode" type=" TargetMarketCodeType" minOccurs="0"maxOccurs="unbounded"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="TargetMarketCodeType">

<xsd:sequence>

<xsd:element name="description" type="TextDescriptionType"minOccurs="1"maxOccurs="1"/>

<xsd: element name=" type" type="String1to35Type" minOccurs="1" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="TradeItemMeasuresType" abstract="true">

<xsd:sequence>

<xsd:element name="measureCode" type="MeasurementType" minOccurs="1"maxOccurs="1"/>

<xsd:element name="measureValue" type="Integer1to6Type"minOccurs="1"maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:group name="ItemLinksOrDetailsGroupType">

<xsd:sequence/>

</xsd:group>

<xsd:complexType name="ItemLinkDetailsRecursiveType" abstract="true"/>

<xsd:complexType name="ItemLinksType" abstract="true"/>

<xsd:complexType name="ChildItemType" abstract="true">

<xsd:attribute name="quantity" type="Integer1to6Type" use="required"/>

</xsd:complexType>

<xsd:complexType name="ChildItemDetailsType">

<xsd:attribute name="quantity" type="Integer1to6Type" use="required"/>

</xsd:complexType>

<xsd:complexType name="UnitOfMeasureType">

<xsd:sequence>

<xsd:elementname="netContent" type="MeasurementType"minOccurs="1" maxOccurs="1"/>

<xsd:element name="grossWeight" type="MeasurementType" minOccurs="1"maxOccurs="1"/>

<xsd:element name="packagingWeight" type="MeasurementType" minOccurs="1"maxOccurs="1"/>

<xsd:element name="depth" type="MeasurementType" minOccurs="0" maxOccurs="1"/>

<xsd:element name="diameter" type="MeasurementType" minOccurs="0" maxOccurs="1"/>

<xsd:element name="height" type="MeasurementType" minOccurs="0" maxOccurs="1"/>

<xsd:element name="pegHorizontal" type="MeasurementType" minOccurs="0"maxOccurs="1"/>

<xsd:element name="pegVertical" type="MeasurementType" minOccurs="0"maxOccurs="1"/>

<xsd:element name="width" type="MeasurementType" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

</xsd:schema>

免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。

我要反馈