-
Notifications
You must be signed in to change notification settings - Fork 2
/
grow-recipe.xsd
142 lines (126 loc) · 5.6 KB
/
grow-recipe.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
<xs:complexType name="metric">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:decimal" name="min"/>
<xs:attribute type="xs:decimal" name="max"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="air">
<xs:all>
<xs:element name="relative-humidity" type="metric" minOccurs="0" />
<xs:element name="temperature" type="metric" minOccurs="0" />
<xs:element name="co2" type="metric" minOccurs="0" />
</xs:all>
</xs:complexType>
<xs:complexType name="light">
<xs:sequence>
<xs:element name="band" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>UVbluegreen/yellowredir</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ppfd" type="metric" minOccurs="0" />
</xs:sequence>
<xs:attribute type="xs:int" name="min" use="optional"/>
<xs:attribute type="xs:int" name="max" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="water">
<xs:all>
<xs:element name="electro-conductivity" type="metric" minOccurs="0" />
<xs:element name="temperature" type="metric" minOccurs="0" />
<xs:element name="dissolved-oxygen" type="metric" minOccurs="0" />
<xs:element name="oxidizing-reduction-potential" type="metric" minOccurs="0" />
<xs:element name="hardness" type="metric" minOccurs="0" />
<xs:element name="ph" type="metric" minOccurs="0" />
<xs:element name="nitrogen" type="metric" minOccurs="0" />
<xs:element name="phosphorus" type="metric" minOccurs="0" />
<xs:element name="potassium" type="metric" minOccurs="0" />
<xs:element name="calcium" type="metric" minOccurs="0" />
<xs:element name="magnesium" type="metric" minOccurs="0" />
<xs:element name="sulfur" type="metric" minOccurs="0" />
<xs:element name="iron" type="metric" minOccurs="0" />
<xs:element name="copper" type="metric" minOccurs="0" />
<xs:element name="zinc" type="metric" minOccurs="0" />
<xs:element name="manganese" type="metric" minOccurs="0" />
<xs:element name="molybdenum" type="metric" minOccurs="0" />
<xs:element name="sodium" type="metric" minOccurs="0" />
<xs:element name="boron" type="metric" minOccurs="0" />
<xs:element name="chlorine" type="metric" minOccurs="0" />
<xs:element name="silicon" type="metric" minOccurs="0" />
<xs:element name="iron-chelates" type="metric" minOccurs="0" />
<xs:element name="vpd" type="metric" minOccurs="0" />
<xs:element name="nacl" type="metric" minOccurs="0" />
<xs:element name="bicarbonate" type="metric" minOccurs="0" />
</xs:all>
</xs:complexType>
<xs:complexType name="stage">
<xs:all>
<xs:element name="air" type="air" minOccurs="0" />
<xs:element name="light" type="light" minOccurs="0" />
<xs:element name="water" type="water" minOccurs="0" />
<xs:element name="cycle" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="period" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="air" type="air" minOccurs="0" />
<xs:element name="light" type="light" minOccurs="0" />
<xs:element name="water" type="water" minOccurs="0" />
</xs:all>
<xs:attribute type="xs:int" name="start" />
<xs:attribute type="xs:int" name="end" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:int" name="duration" use="optional" />
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute type="xs:int" name="duration" use="optional" />
</xs:complexType>
<xs:element name="recipe">
<xs:complexType>
<xs:sequence>
<xs:element name="metadata" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:all>
<xs:element name="author" type="xs:string" minOccurs="0" />
<xs:element name="version" type="xs:string" minOccurs="0" />
<xs:element name="crops">
<xs:complexType>
<xs:sequence>
<xs:element name="crop" type="xs:string" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="comment" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="language" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<!-- stages -->
<xs:element name="default" type="stage" minOccurs="0" maxOccurs="1" />
<xs:element name="germination" type="stage" minOccurs="0" maxOccurs="1" />
<xs:element name="vegetative" type="stage" minOccurs="0" maxOccurs="1" />
<xs:element name="flowering" type="stage" minOccurs="0" maxOccurs="1" />
<xs:element name="fruiting" type="stage" minOccurs="0" maxOccurs="1" />
</xs:sequence>
<xs:attribute type="xs:float" name="schema_version"/>
</xs:complexType>
</xs:element>
</xs:schema>