diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-15 10:55:06 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-15 10:55:06 +0100 |
commit | 3523190bb7ca1c38caea3a1aae51062d22e56b09 (patch) | |
tree | db975c27c38c873a012d88a266ad82621b0859b2 /xsd | |
parent | b67aa2b41247991e361dec0963670b4e5108410a (diff) | |
download | ee-python-3523190bb7ca1c38caea3a1aae51062d22e56b09.tar.gz ee-python-3523190bb7ca1c38caea3a1aae51062d22e56b09.tar.bz2 ee-python-3523190bb7ca1c38caea3a1aae51062d22e56b09.tar.xz ee-python-3523190bb7ca1c38caea3a1aae51062d22e56b09.zip |
o Switching PartDb to serialize into many xml files into a single
<part-db> document.
Diffstat (limited to 'xsd')
-rw-r--r-- | xsd/ee.xsd | 52 |
1 files changed, 30 insertions, 22 deletions
@@ -1,3 +1,31 @@ +<!-- +Link: + - url + - relation + - media-type + +SupplierDatabase + Supplier + - url + - id (short name, used for UI) + +ExchangeRateDatabase + ExchangeRate + - from + - to + - rate + +PartListFile + PartList + Pricing (also used directly on a Part) + +PartListFile is used for +* BOM (schema export) +* downloading facts and prices from suppliers +* Creating orders from sets of available part lists + +TODO: rename 'id' to 'url'. +--> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://purl.org/ee/bom-file" @@ -5,10 +33,10 @@ <xs:attribute name="id" type="xs:string"/> - <xs:element name="part-collection" type="PartCollection"/> + <xs:element name="part-db" type="PartDb"/> <xs:element name="part" type="Part"/> - <xs:complexType name="PartCollection"> + <xs:complexType name="PartDb"> <xs:sequence> <xs:element name="parts" type="PartList" minOccurs="0"/> </xs:sequence> @@ -83,24 +111,4 @@ </xs:sequence> </xs:complexType> - <!-- --> - - <xs:element name="file-index" type="IndexFile"/> - - <xs:complexType name="IndexFile"> - <xs:sequence> - <xs:element name="files" type="FileList" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="File"> - <xs:attribute name="path" use="required" type="xs:string"/> - </xs:complexType> - - <xs:complexType name="FileList"> - <xs:sequence> - <xs:element name="file" type="File" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - </xs:schema> |