aboutsummaryrefslogtreecommitdiff
path: root/xsd
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-15 10:55:06 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-15 10:55:06 +0100
commit3523190bb7ca1c38caea3a1aae51062d22e56b09 (patch)
treedb975c27c38c873a012d88a266ad82621b0859b2 /xsd
parentb67aa2b41247991e361dec0963670b4e5108410a (diff)
downloadee-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.xsd52
1 files changed, 30 insertions, 22 deletions
diff --git a/xsd/ee.xsd b/xsd/ee.xsd
index 7c5c044..3e0d024 100644
--- a/xsd/ee.xsd
+++ b/xsd/ee.xsd
@@ -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>