aboutsummaryrefslogtreecommitdiff
path: root/xsd
diff options
context:
space:
mode:
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>