libsbgnpy 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. libsbgnpy/__init__.py +16 -0
  2. libsbgnpy/examples/__init__.py +0 -0
  3. libsbgnpy/examples/extension_example.py +103 -0
  4. libsbgnpy/examples/info_example.py +70 -0
  5. libsbgnpy/examples/notes_example.py +66 -0
  6. libsbgnpy/examples/read_example.py +35 -0
  7. libsbgnpy/examples/sbgn/adh.sbgn +61 -0
  8. libsbgnpy/examples/sbgn/glycolysis.sbgn +375 -0
  9. libsbgnpy/examples/sbgn/neuronal_muscle_signalling_color.sbgn +439 -0
  10. libsbgnpy/examples/sbgn/notes.sbgn +13 -0
  11. libsbgnpy/examples/sbgn/test-output-01.sbgn +8 -0
  12. libsbgnpy/examples/sbgn/test-output-02.sbgn +59 -0
  13. libsbgnpy/examples/sbgn/test-output-03.sbgn +16 -0
  14. libsbgnpy/examples/write_example.py +223 -0
  15. libsbgnpy/libsbgn.py +4490 -0
  16. libsbgnpy/libsbgnSubs.py +127 -0
  17. libsbgnpy/libsbgnTypes.py +112 -0
  18. libsbgnpy/render.py +59 -0
  19. libsbgnpy/sbo/__init__.py +0 -0
  20. libsbgnpy/sbo/sbgn_sbo_mapping.txt +1304 -0
  21. libsbgnpy/sbo/sbo2sbgn.py +58 -0
  22. libsbgnpy/sbo/sbo_sbgn_map.txt +38 -0
  23. libsbgnpy/schema/README.md +156 -0
  24. libsbgnpy/schema/SBGN.xsd +1018 -0
  25. libsbgnpy/schema/__init__.py +0 -0
  26. libsbgnpy/utils.py +93 -0
  27. libsbgnpy/validation/__init__.py +0 -0
  28. libsbgnpy/validation/error-test-files/AF/af10101-fail.sbgn +34 -0
  29. libsbgnpy/validation/error-test-files/AF/af10101-pass.sbgn +35 -0
  30. libsbgnpy/validation/error-test-files/AF/af10102-fail-1.sbgn +17 -0
  31. libsbgnpy/validation/error-test-files/AF/af10102-fail-2.sbgn +17 -0
  32. libsbgnpy/validation/error-test-files/AF/af10102-fail-3.sbgn +17 -0
  33. libsbgnpy/validation/error-test-files/AF/af10102-fail-4.sbgn +17 -0
  34. libsbgnpy/validation/error-test-files/AF/af10102-pass.sbgn +17 -0
  35. libsbgnpy/validation/error-test-files/AF/af10103-fail.sbgn +35 -0
  36. libsbgnpy/validation/error-test-files/AF/af10103-pass.sbgn +35 -0
  37. libsbgnpy/validation/error-test-files/AF/af10104-fail.sbgn +34 -0
  38. libsbgnpy/validation/error-test-files/AF/af10104-pass.sbgn +35 -0
  39. libsbgnpy/validation/error-test-files/AF/af10109-fail.sbgn +35 -0
  40. libsbgnpy/validation/error-test-files/AF/af10109-pass.sbgn +35 -0
  41. libsbgnpy/validation/error-test-files/AF/af10110-fail.sbgn +34 -0
  42. libsbgnpy/validation/error-test-files/AF/af10111-fail.sbgn +42 -0
  43. libsbgnpy/validation/error-test-files/AF/af10111-pass.sbgn +26 -0
  44. libsbgnpy/validation/error-test-files/AF/af10112-fail.sbgn +25 -0
  45. libsbgnpy/validation/error-test-files/AF/af10113-fail.sbgn +17 -0
  46. libsbgnpy/validation/error-test-files/ER/er10103-fail.sbgn +29 -0
  47. libsbgnpy/validation/error-test-files/ER/er10103-pass.sbgn +25 -0
  48. libsbgnpy/validation/error-test-files/ER/er10104-fail.sbgn +31 -0
  49. libsbgnpy/validation/error-test-files/ER/er10104-pass.sbgn +27 -0
  50. libsbgnpy/validation/error-test-files/ER/er10106-fail-1.sbgn +26 -0
  51. libsbgnpy/validation/error-test-files/ER/er10106-fail-2.sbgn +26 -0
  52. libsbgnpy/validation/error-test-files/ER/er10106-fail-3.sbgn +26 -0
  53. libsbgnpy/validation/error-test-files/ER/er10106-fail-4.sbgn +26 -0
  54. libsbgnpy/validation/error-test-files/ER/er10106-fail-5.sbgn +26 -0
  55. libsbgnpy/validation/error-test-files/ER/er10106-fail-6.sbgn +26 -0
  56. libsbgnpy/validation/error-test-files/ER/er10106-pass.sbgn +26 -0
  57. libsbgnpy/validation/error-test-files/ER/er10107-fail-1.sbgn +25 -0
  58. libsbgnpy/validation/error-test-files/ER/er10107-fail-2.sbgn +25 -0
  59. libsbgnpy/validation/error-test-files/ER/er10107-fail-3.sbgn +25 -0
  60. libsbgnpy/validation/error-test-files/ER/er10107-fail-4.sbgn +25 -0
  61. libsbgnpy/validation/error-test-files/ER/er10107-fail-5.sbgn +25 -0
  62. libsbgnpy/validation/error-test-files/ER/er10107-fail-6.sbgn +25 -0
  63. libsbgnpy/validation/error-test-files/ER/er10107-pass.sbgn +26 -0
  64. libsbgnpy/validation/error-test-files/ER/er10108-fail-1.sbgn +43 -0
  65. libsbgnpy/validation/error-test-files/ER/er10108-fail-2.sbgn +43 -0
  66. libsbgnpy/validation/error-test-files/ER/er10108-pass.sbgn +35 -0
  67. libsbgnpy/validation/error-test-files/ER/er10109-fail.sbgn +40 -0
  68. libsbgnpy/validation/error-test-files/ER/er10109-pass.sbgn +40 -0
  69. libsbgnpy/validation/error-test-files/ER/er10111-fail.sbgn +53 -0
  70. libsbgnpy/validation/error-test-files/ER/er10111-pass.sbgn +27 -0
  71. libsbgnpy/validation/error-test-files/ER/er20001-fail.sbgn +55 -0
  72. libsbgnpy/validation/error-test-files/ER/er20001-pass.sbgn +57 -0
  73. libsbgnpy/validation/error-test-files/PD/pd10101-fail.sbgn +27 -0
  74. libsbgnpy/validation/error-test-files/PD/pd10101-pass.sbgn +27 -0
  75. libsbgnpy/validation/error-test-files/PD/pd10102-fail.sbgn +55 -0
  76. libsbgnpy/validation/error-test-files/PD/pd10102-pass.sbgn +55 -0
  77. libsbgnpy/validation/error-test-files/PD/pd10103-fail.sbgn +37 -0
  78. libsbgnpy/validation/error-test-files/PD/pd10103-pass.sbgn +45 -0
  79. libsbgnpy/validation/error-test-files/PD/pd10104-fail.sbgn +55 -0
  80. libsbgnpy/validation/error-test-files/PD/pd10104-pass.sbgn +47 -0
  81. libsbgnpy/validation/error-test-files/PD/pd10105-fail.sbgn +27 -0
  82. libsbgnpy/validation/error-test-files/PD/pd10105-pass.sbgn +27 -0
  83. libsbgnpy/validation/error-test-files/PD/pd10106-fail.sbgn +27 -0
  84. libsbgnpy/validation/error-test-files/PD/pd10106-pass.sbgn +27 -0
  85. libsbgnpy/validation/error-test-files/PD/pd10107-fail.sbgn +37 -0
  86. libsbgnpy/validation/error-test-files/PD/pd10107-pass.sbgn +45 -0
  87. libsbgnpy/validation/error-test-files/PD/pd10108-fail.sbgn +42 -0
  88. libsbgnpy/validation/error-test-files/PD/pd10108-pass.sbgn +35 -0
  89. libsbgnpy/validation/error-test-files/PD/pd10109-fail-1.sbgn +51 -0
  90. libsbgnpy/validation/error-test-files/PD/pd10109-fail-2.sbgn +51 -0
  91. libsbgnpy/validation/error-test-files/PD/pd10109-fail-3.sbgn +51 -0
  92. libsbgnpy/validation/error-test-files/PD/pd10109-fail-4.sbgn +51 -0
  93. libsbgnpy/validation/error-test-files/PD/pd10109-fail-5.sbgn +51 -0
  94. libsbgnpy/validation/error-test-files/PD/pd10109-pass.sbgn +35 -0
  95. libsbgnpy/validation/error-test-files/PD/pd10110-fail-1.sbgn +35 -0
  96. libsbgnpy/validation/error-test-files/PD/pd10110-fail-2.sbgn +35 -0
  97. libsbgnpy/validation/error-test-files/PD/pd10110-fail-3.sbgn +35 -0
  98. libsbgnpy/validation/error-test-files/PD/pd10110-fail-4.sbgn +35 -0
  99. libsbgnpy/validation/error-test-files/PD/pd10110-fail-5.sbgn +35 -0
  100. libsbgnpy/validation/error-test-files/PD/pd10110-pass.sbgn +35 -0
  101. libsbgnpy/validation/error-test-files/PD/pd10111-fail-2.sbgn +72 -0
  102. libsbgnpy/validation/error-test-files/PD/pd10111-fail.sbgn +72 -0
  103. libsbgnpy/validation/error-test-files/PD/pd10111-pass.sbgn +68 -0
  104. libsbgnpy/validation/error-test-files/PD/pd10112-fail-1.sbgn +28 -0
  105. libsbgnpy/validation/error-test-files/PD/pd10112-fail-2.sbgn +28 -0
  106. libsbgnpy/validation/error-test-files/PD/pd10112-pass.sbgn +28 -0
  107. libsbgnpy/validation/error-test-files/PD/pd10124-fail.sbgn +67 -0
  108. libsbgnpy/validation/error-test-files/PD/pd10124-pass.sbgn +67 -0
  109. libsbgnpy/validation/error-test-files/PD/pd10125-fail.sbgn +35 -0
  110. libsbgnpy/validation/error-test-files/PD/pd10126-fail.sbgn +53 -0
  111. libsbgnpy/validation/error-test-files/PD/pd10126-pass.sbgn +45 -0
  112. libsbgnpy/validation/error-test-files/PD/pd10127-fail.sbgn +21 -0
  113. libsbgnpy/validation/error-test-files/PD/pd10127-pass.sbgn +17 -0
  114. libsbgnpy/validation/error-test-files/PD/pd10128-fail.sbgn +21 -0
  115. libsbgnpy/validation/error-test-files/PD/pd10128-pass.sbgn +17 -0
  116. libsbgnpy/validation/error-test-files/PD/pd10131-fail.sbgn +9 -0
  117. libsbgnpy/validation/error-test-files/PD/pd10131-pass.sbgn +27 -0
  118. libsbgnpy/validation/error-test-files/PD/pd10132-fail.sbgn +10 -0
  119. libsbgnpy/validation/error-test-files/PD/pd10132-pass.sbgn +27 -0
  120. libsbgnpy/validation/error-test-files/PD/pd10140-fail.sbgn +31 -0
  121. libsbgnpy/validation/error-test-files/PD/pd10140-pass.sbgn +27 -0
  122. libsbgnpy/validation/error-test-files/PD/pd10141-fail.sbgn +11 -0
  123. libsbgnpy/validation/error-test-files/PD/pd10141-pass.sbgn +27 -0
  124. libsbgnpy/validation/error-test-files/PD/pd10142-fail.sbgn +35 -0
  125. libsbgnpy/validation/error-test-files/PD/pd10142-pass.sbgn +53 -0
  126. libsbgnpy/validation/error-test-files/error_notes.txt +7 -0
  127. libsbgnpy/validation/rules/sbgn_af.sch +275 -0
  128. libsbgnpy/validation/rules/sbgn_er.sch +288 -0
  129. libsbgnpy/validation/rules/sbgn_pd.sch +634 -0
  130. libsbgnpy/validation/schematron/ExtractSchFromRNG.xsl +75 -0
  131. libsbgnpy/validation/schematron/ExtractSchFromXSD.xsl +77 -0
  132. libsbgnpy/validation/schematron/iso-schematron-xslt1.zip +0 -0
  133. libsbgnpy/validation/schematron/iso-schematron-xslt2.zip +0 -0
  134. libsbgnpy/validation/schematron/iso_abstract_expand.xsl +297 -0
  135. libsbgnpy/validation/schematron/iso_dsdl_include.xsl +1509 -0
  136. libsbgnpy/validation/schematron/iso_schematron_message.xsl +55 -0
  137. libsbgnpy/validation/schematron/iso_schematron_skeleton_for_xslt1.xsl +1841 -0
  138. libsbgnpy/validation/schematron/iso_svrl_for_xslt1.xsl +604 -0
  139. libsbgnpy/validation/schematron/readme.txt +101 -0
  140. libsbgnpy/validation/schematron/schematron-skeleton-api.htm +723 -0
  141. libsbgnpy/validation/validator.py +141 -0
  142. libsbgnpy-0.3.0.dist-info/METADATA +91 -0
  143. libsbgnpy-0.3.0.dist-info/RECORD +145 -0
  144. libsbgnpy-0.3.0.dist-info/WHEEL +4 -0
  145. libsbgnpy-0.3.0.dist-info/licenses/LICENSE +7 -0
@@ -0,0 +1,1018 @@
1
+ <xsd:schema
2
+ targetNamespace="http://sbgn.org/libsbgn/0.2"
3
+ xmlns ="http://sbgn.org/libsbgn/0.2"
4
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5
+ xmlns:sbgn="http://sbgn.org/libsbgn/0.2"
6
+ elementFormDefault="qualified">
7
+ <xsd:annotation>
8
+ <xsd:documentation>
9
+ <p>
10
+ SBGNML is an XML implementation of the Systems Biology Graphical Notation.
11
+ For more information, please consult
12
+ <a href="http://libsbgn.sourceforge.net">http://libsbgn.sourceforge.net</a>.
13
+ </p>
14
+ <p>
15
+ Version: LibSBGN Milestone 2 (cf. targetNamespace attribute - as recommended by the W3C)
16
+ </p>
17
+ </xsd:documentation>
18
+ </xsd:annotation>
19
+
20
+ <!-- COMMON TYPES AND ELEMENTS - COMMON TYPES AND ELEMENTS - COMMON TYPES AND ELEMENTS -->
21
+
22
+
23
+ <!--The definition of the SBGN base class.-->
24
+ <xsd:complexType name="SBGNBase" abstract="true">
25
+ <xsd:annotation>
26
+ <xsd:documentation>
27
+ The SBGNBase type is the base type of all main
28
+ components in SBGN. It supports attaching metadata, notes and
29
+ annotations to components.
30
+ </xsd:documentation>
31
+ </xsd:annotation>
32
+ <xsd:sequence>
33
+ <xsd:element name="notes" minOccurs="0">
34
+ <xsd:complexType>
35
+ <xsd:sequence>
36
+ <xsd:any namespace="http://www.w3.org/1999/xhtml"
37
+ processContents="skip"
38
+ minOccurs="0" maxOccurs="unbounded"/>
39
+ </xsd:sequence>
40
+ </xsd:complexType>
41
+ </xsd:element>
42
+ <xsd:element name="extension" minOccurs="0">
43
+ <xsd:complexType>
44
+ <xsd:sequence>
45
+ <xsd:any processContents="skip"
46
+ minOccurs="0" maxOccurs="unbounded"/>
47
+ </xsd:sequence>
48
+ </xsd:complexType>
49
+ </xsd:element>
50
+ </xsd:sequence>
51
+ </xsd:complexType>
52
+
53
+
54
+ <!-- PointAttributes attribute group -->
55
+ <xsd:attributeGroup name="PointAttributes">
56
+ <xsd:annotation>
57
+ <xsd:documentation>
58
+ <p>
59
+ The PointAttributes group describes absolute 2D cartesian coordinates. Namely:
60
+ <ul>
61
+ <li>x (horizontal, from left to right),</li>
62
+ <li>y (vertical, from top to bottom).</li>
63
+ </ul>
64
+ </p>
65
+ <p>
66
+ The origin is located in the top-left corner of the map.
67
+ There is no unit:
68
+ proportions must be preserved, but the maps can be drawn at any scale.
69
+ In the test files examples, to obtain a drawing similar to the reference
70
+ *.png file, values in the corresponding *.sbgn file should be read as pixels.
71
+ </p>
72
+ </xsd:documentation>
73
+ </xsd:annotation>
74
+ <xsd:attribute name="x" type="xsd:float" use="required"/>
75
+ <xsd:attribute name="y" type="xsd:float" use="required"/>
76
+ </xsd:attributeGroup>
77
+
78
+ <!-- point element -->
79
+ <xsd:element name="point">
80
+ <xsd:annotation>
81
+ <xsd:documentation>
82
+ <p>
83
+ The point element is characterized by PointAttributes,
84
+ which describe absolute 2D cartesian coordinates. Namely:
85
+ <ul>
86
+ <li>x (horizontal, from left to right),</li>
87
+ <li>y (vertical, from top to bottom).</li>
88
+ </ul>
89
+ </p>
90
+ <p>
91
+ The origin is located in the top-left corner of the map.
92
+ There is no unit:
93
+ proportions must be preserved, but the maps can be drawn at any scale.
94
+ In the test files examples, to obtain a drawing similar to the reference
95
+ *.png file, values in the corresponding *.sbgn file should be read as pixels.
96
+ </p>
97
+ </xsd:documentation>
98
+ </xsd:annotation>
99
+ <xsd:complexType>
100
+ <xsd:complexContent>
101
+ <xsd:extension base="SBGNBase">
102
+ <xsd:attributeGroup ref="sbgn:PointAttributes"/>
103
+ </xsd:extension>
104
+ </xsd:complexContent>
105
+ </xsd:complexType>
106
+ </xsd:element>
107
+
108
+ <!-- bbox element -->
109
+ <xsd:element name="bbox">
110
+ <xsd:annotation>
111
+ <xsd:documentation>
112
+ <p>
113
+ The bbox element describes a rectangle. This rectangle is defined by:
114
+ <ul>
115
+ <li>
116
+ PointAttributes corresponding to the 2D coordinates of the top left
117
+ corner,
118
+ </li>
119
+ <li>width and height attributes.</li>
120
+ </ul>
121
+ </p>
122
+ <p>
123
+ The rectangle corresponds to the outer bounding box of a shape.
124
+ The shape itself can be irregular
125
+ (for instance in the case of some compartments).
126
+ </p>
127
+ <p>
128
+ In the case of process nodes,
129
+ the bounding box only concerns the central glyph (square, or circle),
130
+ the input/output ports are not included, and neither are the lines connecting
131
+ them to the central glyph.
132
+ </p>
133
+ <p>
134
+ A bbox is required for all glyphs, and is optional for labels.
135
+ </p>
136
+ </xsd:documentation>
137
+ </xsd:annotation>
138
+ <xsd:complexType>
139
+ <xsd:complexContent>
140
+ <xsd:extension base="SBGNBase">
141
+ <xsd:attributeGroup ref="sbgn:PointAttributes"/>
142
+ <xsd:attribute name="w" type="xsd:float" use="required"/>
143
+ <xsd:attribute name="h" type="xsd:float" use="required"/>
144
+ </xsd:extension>
145
+ </xsd:complexContent>
146
+ </xsd:complexType>
147
+ </xsd:element>
148
+
149
+ <!-- label element -->
150
+
151
+ <xsd:element name="label">
152
+ <xsd:annotation>
153
+ <xsd:documentation>
154
+ <p>
155
+ The label element describes the text accompanying a glyph.
156
+ The text attribute is mandatory.
157
+ Its position can be specified by a bbox (optional).
158
+ Tools are free to display the text in any style (font, font-size, etc.)
159
+ </p>
160
+ </xsd:documentation>
161
+ </xsd:annotation>
162
+ <xsd:complexType>
163
+ <xsd:complexContent>
164
+ <xsd:extension base="SBGNBase">
165
+ <xsd:sequence>
166
+ <xsd:annotation>
167
+ <xsd:documentation>
168
+ <p>
169
+ The bbox element of a label is optional.
170
+ When no bbox is defined, the bbox of the parent glyph is
171
+ inherited.
172
+ The label should be drawn centered horizontally and vertically in the
173
+ bbox.
174
+ </p>
175
+ <p>
176
+ When the bbox is inherited, the label can freely spill outside (just
177
+ like it can spill outside its parent glyph).
178
+ An explicit bbox provides a stronger hint regarding what surface the
179
+ label should cover. It defines an upper boundary outside of which the
180
+ label should (ideally) not spill. It also represents a preferred size:
181
+ the surface covered by the label can be smaller, but should ideally be
182
+ as close as possible to the bbox.
183
+ </p>
184
+ <p>
185
+ In most glyphs (EPNs, unit of information, etc.), the label is supposed
186
+ to be centered, so the bbox is usually omitted (unless there's a
187
+ specific hint to be shared concerning the area the label should ideally
188
+ cover).
189
+ However, labels can be drawn anywhere inside compartments or complex, so
190
+ these should preferably have an explicit bbox.
191
+ </p>
192
+ </xsd:documentation>
193
+ </xsd:annotation>
194
+ <xsd:element ref="sbgn:bbox" minOccurs="0" maxOccurs="1"/>
195
+ </xsd:sequence>
196
+ <xsd:attribute name="text" type="xsd:string" use="required">
197
+ <xsd:annotation>
198
+ <xsd:documentation>
199
+ <p>
200
+ Multi-line labels are allowed.
201
+ Line breaks are encoded as &amp;#xA; as specified by the
202
+ XML standard.
203
+ </p>
204
+ </xsd:documentation>
205
+ </xsd:annotation>
206
+ </xsd:attribute>
207
+ </xsd:extension>
208
+ </xsd:complexContent>
209
+ </xsd:complexType>
210
+ </xsd:element>
211
+
212
+ <!-- HIGH LEVEL ELEMENTS - HIGH LEVEL ELEMENTS - HIGH LEVEL ELEMENTS - HIGH LEVEL ELEMENTS -->
213
+
214
+ <!-- sbgn element [root] -->
215
+
216
+ <xsd:element name="sbgn">
217
+ <xsd:annotation>
218
+ <xsd:documentation>
219
+ <p>
220
+ The sbgn element is the root of any SBGNML document.
221
+ Currently each document must contain exactly one map element.
222
+ </p>
223
+ </xsd:documentation>
224
+ </xsd:annotation>
225
+ <xsd:complexType>
226
+ <xsd:complexContent>
227
+ <xsd:extension base="SBGNBase">
228
+ <xsd:sequence>
229
+ <xsd:element ref="sbgn:map" minOccurs="1" maxOccurs="1"/>
230
+ </xsd:sequence>
231
+ </xsd:extension>
232
+ </xsd:complexContent>
233
+ </xsd:complexType>
234
+ </xsd:element>
235
+
236
+ <!-- map element -->
237
+
238
+ <xsd:element name="map">
239
+ <xsd:annotation>
240
+ <xsd:documentation>
241
+ <p>
242
+ The map element describes a single SBGN PD map.
243
+ It contains a list of glyph elements and a list of arc elements.
244
+ These lists can be of any size (possibly empty).
245
+ </p>
246
+ </xsd:documentation>
247
+ </xsd:annotation>
248
+ <xsd:complexType>
249
+ <xsd:complexContent>
250
+ <xsd:extension base="SBGNBase">
251
+ <xsd:sequence>
252
+ <xsd:element ref="sbgn:bbox" minOccurs="0" maxOccurs="1">
253
+ <xsd:annotation>
254
+ <xsd:documentation>
255
+ <p>
256
+ The bbox element on a map is not mandatory, it allows the
257
+ application to define a canvas, and at the same time
258
+ define a whitespace margin around the glyphs.
259
+ </p>
260
+ <p>
261
+ If a bbox is defined on a map, all glyphs and arcs must be
262
+ inside this bbox, otherwise they could be
263
+ clipped off by applications.
264
+ </p>
265
+ </xsd:documentation>
266
+ </xsd:annotation>
267
+ </xsd:element>
268
+ <xsd:element ref="sbgn:glyph" minOccurs="0" maxOccurs="unbounded"/>
269
+ <xsd:element ref="sbgn:arc" minOccurs="0" maxOccurs="unbounded"/>
270
+ <xsd:element ref="sbgn:arcgroup" minOccurs="0" maxOccurs="unbounded"/>
271
+ </xsd:sequence>
272
+ <xsd:attribute name="language" use="required">
273
+ <xsd:annotation>
274
+ <xsd:documentation>
275
+ <p>
276
+ Language of the map: one of three sublanguages defined by SBGN.
277
+ Different languages have different restrictions on the usage of sub-elements (that are not encoded in this schema
278
+ but must be validated with an external validator)
279
+ </p>
280
+ </xsd:documentation>
281
+ </xsd:annotation>
282
+ <xsd:simpleType>
283
+ <xsd:restriction base="xsd:string">
284
+ <xsd:enumeration value="entity relationship"/>
285
+ <xsd:enumeration value="process description"/>
286
+ <xsd:enumeration value="activity flow"/>
287
+ </xsd:restriction>
288
+ </xsd:simpleType>
289
+ </xsd:attribute>
290
+ </xsd:extension>
291
+ </xsd:complexContent>
292
+ </xsd:complexType>
293
+ </xsd:element>
294
+
295
+ <!-- port element -->
296
+
297
+ <xsd:element name="port">
298
+ <xsd:annotation>
299
+ <xsd:documentation>
300
+ <p>
301
+ The port element describes an anchor point which arcs can refer to
302
+ as a source or target. It consists in:
303
+ <ul>
304
+ <li>absolute 2D cartesian coordinates (PointAttribute),</li>
305
+ <li>a unique id attribute.</li>
306
+ </ul>
307
+ </p>
308
+ <p>
309
+ Two port elements are required for process nodes. They represent
310
+ the extremity of the two "arms" which protrude on both sides of the
311
+ core of the glyph (= square or circle shape).
312
+ Other glyphs don't need ports (but can use them if desired).
313
+ </p>
314
+ </xsd:documentation>
315
+ </xsd:annotation>
316
+ <xsd:complexType>
317
+ <xsd:complexContent>
318
+ <xsd:extension base="SBGNBase">
319
+ <xsd:attributeGroup ref="sbgn:PointAttributes"/>
320
+ <xsd:attribute name="id" type="xsd:ID" use="required">
321
+ <xsd:annotation>
322
+ <xsd:documentation>
323
+ <p>
324
+ The xsd:ID type is an alphanumeric identifier,
325
+ starting with a letter.
326
+ Port IDs often contain the ID of their glyph, followed by a
327
+ local port number (e.g. glyph4.1, glyph4.2, etc.)
328
+ However, this style convention is not mandatory,
329
+ and IDs should never be interpreted as carrying any meaning.
330
+ </p>
331
+ </xsd:documentation>
332
+ </xsd:annotation>
333
+ </xsd:attribute>
334
+ </xsd:extension>
335
+ </xsd:complexContent>
336
+ </xsd:complexType>
337
+ </xsd:element>
338
+
339
+ <!-- GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH GLYPH G -->
340
+
341
+ <xsd:element name="glyph">
342
+ <xsd:annotation>
343
+ <xsd:documentation>
344
+ <p>
345
+ The glyph element is:
346
+ <ul>
347
+ <li>either a stand-alone, high-level SBGN glyph
348
+ (EPN, PN, compartment, etc),</li>
349
+ <li>or a sub-glyph
350
+ (state variable, unit of information, inside of a complex, ...)</li>
351
+ </ul>
352
+ </p>
353
+ <p>
354
+ In the first case, it appears directly in the glyph list of the map.
355
+ In the second case, it is a child of another glyph element.
356
+ </p>
357
+ </xsd:documentation>
358
+ </xsd:annotation>
359
+
360
+ <xsd:complexType>
361
+ <xsd:complexContent>
362
+ <xsd:extension base="SBGNBase">
363
+ <xsd:sequence>
364
+ <xsd:choice>
365
+ <xsd:annotation>
366
+ <xsd:documentation>
367
+ <p>
368
+ The text inside a glyph is described:
369
+ <ul>
370
+ <li>
371
+ either by a label element (optional)
372
+ [process nodes can't have one],
373
+ </li>
374
+ <li>
375
+ or by a state element (optional)
376
+ [for state variables only].
377
+ </li>
378
+ </ul>
379
+ </p>
380
+ </xsd:documentation>
381
+ </xsd:annotation>
382
+ <xsd:element ref="sbgn:label" minOccurs="0" maxOccurs="1"/>
383
+ <xsd:element name="state" minOccurs="0" maxOccurs="1">
384
+ <xsd:annotation>
385
+ <xsd:documentation>
386
+ <p>
387
+ The state element should only be used for state variables.
388
+ It replaces the label element used for other glyphs.
389
+ It describes the text to be drawn inside the state variable.
390
+ </p>
391
+ <p>
392
+ A state must have a value, a variable, or both.
393
+ If it has both, they are rendered as a concatenated string with
394
+ @ in between.
395
+ </p>
396
+ </xsd:documentation>
397
+ </xsd:annotation>
398
+ <xsd:complexType>
399
+ <xsd:attribute name="value" type="xsd:string" use="optional">
400
+ <xsd:annotation>
401
+ <xsd:documentation>
402
+ <p>
403
+ The value attribute represents the state of the
404
+ variable. It can be:
405
+ <ul>
406
+ <li>
407
+ either from a predefined set of string
408
+ (P, S, etc.) which correspond to specific
409
+ SBO terms (cf. SBGN specs),
410
+ </li>
411
+ <li>
412
+ or any arbitrary string.
413
+ </li>
414
+ </ul>
415
+ </p>
416
+ </xsd:documentation>
417
+ </xsd:annotation>
418
+ </xsd:attribute>
419
+ <xsd:attribute name="variable" type="xsd:string" use="optional">
420
+ <xsd:annotation>
421
+ <xsd:documentation>
422
+ <p>
423
+ The variable attribute describes the site where the
424
+ modification described by the value attribute occurs.
425
+ It is:
426
+ <ul>
427
+ <li>
428
+ optional when there is only one state variable
429
+ on the parent EPN,
430
+ </li>
431
+ <li>
432
+ required when there is more than one state
433
+ variable the parent EPN.
434
+ </li>
435
+ </ul>
436
+ </p>
437
+ </xsd:documentation>
438
+ </xsd:annotation>
439
+ </xsd:attribute>
440
+ </xsd:complexType>
441
+ </xsd:element>
442
+ </xsd:choice>
443
+
444
+ <xsd:element name="clone" minOccurs="0" maxOccurs="1">
445
+ <xsd:annotation>
446
+ <xsd:documentation>
447
+ <p>
448
+ The clone element (which is optional) means the glyph carries a
449
+ clone marker. It can contain an optional label.
450
+ </p>
451
+ </xsd:documentation>
452
+ </xsd:annotation>
453
+ <xsd:complexType>
454
+ <xsd:sequence>
455
+ <xsd:element ref="sbgn:label" minOccurs="0" maxOccurs="1"/>
456
+ </xsd:sequence>
457
+ </xsd:complexType>
458
+ </xsd:element>
459
+
460
+ <xsd:element name="callout" minOccurs="0" maxOccurs="1">
461
+ <xsd:annotation>
462
+ <xsd:documentation>
463
+ <p>
464
+ The callout element is only used for glyphs with class annotation.
465
+ It contains the coordinate of the point where the annotation points to,
466
+ as well as a reference to the element that is pointed to.
467
+ </p>
468
+ </xsd:documentation>
469
+ </xsd:annotation>
470
+ <xsd:complexType>
471
+ <xsd:sequence>
472
+ <xsd:element ref="sbgn:point" minOccurs="1" maxOccurs="1"/>
473
+ </xsd:sequence>
474
+ <xsd:attribute name="target" type="xsd:IDREF" use="optional"/>
475
+ </xsd:complexType>
476
+ </xsd:element>
477
+
478
+ <xsd:element name="entity" minOccurs="0" maxOccurs="1">
479
+ <xsd:annotation>
480
+ <xsd:documentation>
481
+ <p>
482
+ The entity is only used in activity flow diagrams.
483
+ It can only be used on a unit of information glyph
484
+ on a biological activity glyph, where it is compulsory.
485
+ It is used to indicate the shape of this unit of information.
486
+ </p>
487
+ </xsd:documentation>
488
+ </xsd:annotation>
489
+ <xsd:complexType>
490
+ <xsd:attribute name="name" use="required">
491
+ <xsd:simpleType>
492
+ <xsd:restriction base="xsd:string">
493
+ <xsd:enumeration value="unspecified entity"/>
494
+ <xsd:enumeration value="simple chemical"/>
495
+ <xsd:enumeration value="macromolecule"/>
496
+ <xsd:enumeration value="nucleic acid feature"/>
497
+ <xsd:enumeration value="complex"/>
498
+ </xsd:restriction>
499
+ </xsd:simpleType>
500
+ </xsd:attribute>
501
+ </xsd:complexType>
502
+ </xsd:element>
503
+
504
+ <xsd:element ref="sbgn:bbox" minOccurs="1" maxOccurs="1">
505
+ <xsd:annotation>
506
+ <xsd:documentation>
507
+ <p>
508
+ The bbox element is mandatory and unique: exactly one per
509
+ glyph.
510
+ It defines the outer bounding box of the glyph.
511
+ The actual shape of the glyph can be irregular
512
+ (for instance in the case of some compartments)
513
+ </p>
514
+ <p>
515
+ In the case of process nodes, the bounding box only concerns the
516
+ central glyph (square, or circle):
517
+ the input/output ports are not included, and neither are the lines
518
+ connecting them to the central glyph.
519
+ </p>
520
+ </xsd:documentation>
521
+ </xsd:annotation>
522
+ </xsd:element>
523
+
524
+ <xsd:element ref="sbgn:glyph" minOccurs="0" maxOccurs="unbounded">
525
+ <xsd:annotation>
526
+ <xsd:documentation>
527
+ <p>
528
+ A glyph element can contain any number of children glyph
529
+ elements.
530
+ In practice, this should only happen in the following cases:
531
+ <ul>
532
+ <li>a compartment with unit of information children,</li>
533
+ <li>
534
+ an EPN with states variables and/or unit of information
535
+ children,
536
+ </li>
537
+ <li>
538
+ a complex, with state variables, unit of info, and/or EPN
539
+ children.
540
+ </li>
541
+ </ul>
542
+ </p>
543
+ </xsd:documentation>
544
+ </xsd:annotation>
545
+ </xsd:element>
546
+ <xsd:element ref="sbgn:port" minOccurs="0" maxOccurs="unbounded"/>
547
+ </xsd:sequence>
548
+
549
+ <xsd:attribute name="class" use="required">
550
+ <xsd:annotation>
551
+ <xsd:documentation>
552
+ <p>
553
+ The class attribute defines the semantic of the glyph, and influences:
554
+ <ul>
555
+ <li>the way that glyph should be rendered,</li>
556
+ <li>the overall syntactic validity of the map.</li>
557
+ </ul>
558
+ </p>
559
+ <p>
560
+ The various classes encompass the following PD SBGN elements:
561
+ <ul>
562
+ <li>Entity Pool Nodes (EPN),</li>
563
+ <li>Process Nodes (PN),</li>
564
+ <li>Logic Operator Nodes,</li>
565
+ <li>Sub-glyphs on Nodes (State Variable, Unit of Information),</li>
566
+ <li>Sub-glyphs on Arcs (Stoichiometry Label),</li>
567
+ <li>Other glyphs (Compartment, Submap, Tag, Terminal).</li>
568
+ </ul>
569
+ And the following ER SBGN elements
570
+ <ul>
571
+ <li>Entities (Entity, Outcome)</li>
572
+ <li>Other (Annotation, Phenotype)</li>
573
+ <li>Auxiliary on glyps (Existence, Location)</li>
574
+ <li>Auxiliary on arcs (Cardinality)</li>
575
+ <li>Delay operator</li>
576
+ <li>implicit xor</li>
577
+ </ul>
578
+ </p>
579
+ </xsd:documentation>
580
+ </xsd:annotation>
581
+ <xsd:simpleType>
582
+ <xsd:restriction base="xsd:string">
583
+ <!-- Entity Pool Node classes (PD only) -->
584
+ <xsd:enumeration value="unspecified entity"/>
585
+ <xsd:enumeration value="simple chemical"/>
586
+ <xsd:enumeration value="macromolecule"/>
587
+ <xsd:enumeration value="nucleic acid feature"/>
588
+ <xsd:enumeration value="simple chemical multimer"/>
589
+ <xsd:enumeration value="macromolecule multimer"/>
590
+ <xsd:enumeration value="nucleic acid feature multimer"/>
591
+ <xsd:enumeration value="complex"/>
592
+ <xsd:enumeration value="complex multimer"/>
593
+ <xsd:enumeration value="source and sink"/>
594
+ <!-- Activities (AF) -->
595
+ <xsd:enumeration value="perturbation"/>
596
+ <xsd:enumeration value="biological activity"/>
597
+ <!-- Entities (both PD and ER) -->
598
+ <xsd:enumeration value="perturbing agent"/>
599
+ <!-- Other (PD only) -->
600
+ <xsd:enumeration value="compartment"/>
601
+ <xsd:enumeration value="submap"/>
602
+ <xsd:enumeration value="tag"/>
603
+ <xsd:enumeration value="terminal"/>
604
+ <!-- Process Node classes (PD only) -->
605
+ <xsd:enumeration value="process"/>
606
+ <xsd:enumeration value="omitted process"/>
607
+ <xsd:enumeration value="uncertain process"/>
608
+ <xsd:enumeration value="association"/>
609
+ <xsd:enumeration value="dissociation"/>
610
+ <!-- PD, ER and AF -->
611
+ <xsd:enumeration value="phenotype"/>
612
+ <!-- Logical Operator classes (PD, ER and AF) -->
613
+ <xsd:enumeration value="and"/>
614
+ <xsd:enumeration value="or"/>
615
+ <xsd:enumeration value="not"/>
616
+ <!-- Subglyph on glyph classes (both PD and ER) -->
617
+ <xsd:enumeration value="state variable"/>
618
+ <xsd:enumeration value="unit of information"/>
619
+
620
+ <!-- Entities classes (ER) -->
621
+ <xsd:enumeration value="entity"/>
622
+ <xsd:enumeration value="outcome"/>
623
+ <!-- Other (ER) -->
624
+
625
+ <xsd:enumeration value="interaction"/>
626
+ <xsd:enumeration value="influence target"/>
627
+ <xsd:enumeration value="annotation"/>
628
+ <xsd:enumeration value="variable value"/>
629
+ <xsd:enumeration value="implicit xor"/>
630
+ <!-- Logical Operator classes (ER and AF) -->
631
+ <xsd:enumeration value="delay"/>
632
+ <!-- Auxiliary on glyph classes -->
633
+ <xsd:enumeration value="existence"/>
634
+ <xsd:enumeration value="location"/>
635
+ <!-- Auxiliary on arc classes -->
636
+ <xsd:enumeration value="cardinality"/>
637
+ <!-- used for cis / trans and stoichiometry -->
638
+ <!-- NB Arc classes are in a separate enumeration -->
639
+
640
+ <!-- The use of observable is deprecated in newer versions of SBGN.
641
+ Because it occurs in older versions of the SBGN spec,
642
+ we will keep it around indefinitely.
643
+ !-->
644
+ <xsd:enumeration value="observable"/>
645
+ </xsd:restriction>
646
+ </xsd:simpleType>
647
+ </xsd:attribute>
648
+
649
+ <xsd:attribute name="orientation" default="horizontal">
650
+ <xsd:annotation>
651
+ <xsd:documentation>
652
+ <p>
653
+ The orientation attribute is used to express how to draw asymmetric
654
+ glyphs.
655
+ In PD, the orientation of Process Nodes is either horizontal or vertical.
656
+ It refers to an (imaginary) line connecting the two in/out sides of the
657
+ PN.
658
+ In PD, the orientation of Tags and Terminals can be left, right, up or down.
659
+ It refers to the direction the arrow side of the glyph is pointing
660
+ at.
661
+ </p>
662
+ </xsd:documentation>
663
+ </xsd:annotation>
664
+ <xsd:simpleType>
665
+ <xsd:restriction base="xsd:string">
666
+ <!-- horizontal / vertical are for process nodes -->
667
+ <xsd:enumeration value="horizontal"/>
668
+ <xsd:enumeration value="vertical"/>
669
+ <!-- left / right / up / down are for tags and terminals -->
670
+ <xsd:enumeration value="left"/>
671
+ <xsd:enumeration value="right"/>
672
+ <xsd:enumeration value="up"/>
673
+ <xsd:enumeration value="down"/>
674
+ </xsd:restriction>
675
+ </xsd:simpleType>
676
+ </xsd:attribute>
677
+
678
+ <xsd:attribute name="id" type="xsd:ID" use="required">
679
+ <xsd:annotation>
680
+ <xsd:documentation>
681
+ <p>
682
+ The xsd:ID type is an alphanumeric identifier, starting with a
683
+ letter.
684
+ It is recommended to generate meaningless IDs (e.g. "glyph1234")
685
+ and avoid IDs with a meaning (e.g. "epn_ethanol")
686
+ </p>
687
+ </xsd:documentation>
688
+ </xsd:annotation>
689
+ </xsd:attribute>
690
+
691
+ <xsd:attribute name="compartmentRef" type="xsd:IDREF" use="optional">
692
+ <xsd:annotation>
693
+ <xsd:documentation>
694
+ <p>
695
+ Reference to the ID of the compartment that this glyph
696
+ is part of. Only use
697
+ this if there is at least one explicit compartment
698
+ present in the diagram. Compartments are
699
+ only used in PD and AF, and thus this attribute as well.
700
+ For PD, this should be used only for EPN's.
701
+ </p>
702
+ <p>
703
+ In case there are no compartments, entities that
704
+ can have a location, such as EPN's, are implicit
705
+ member of an invisible compartment that
706
+ encompasses the whole map. In that case, this
707
+ attribute must be omitted.
708
+ </p>
709
+ </xsd:documentation>
710
+ </xsd:annotation>
711
+ </xsd:attribute>
712
+
713
+ <xsd:attribute name="compartmentOrder" type="xsd:float" use="optional">
714
+ <xsd:annotation>
715
+ <xsd:documentation>
716
+ <p>
717
+ The compartment order attribute can be used to define
718
+ a drawing order for compartments. It enables tools to
719
+ draw compartments in the correct order especially in
720
+ the case of overlapping compartments.
721
+ Compartments are only used in PD and AF, and thus
722
+ this attribute as well.
723
+ </p>
724
+ <p>
725
+ The attribute is of type float, the attribute value
726
+ has not to be unique. Compartments with higher compartment
727
+ order are drawn on top. The attribute is optional and should
728
+ only be used for compartments.
729
+ </p>
730
+ </xsd:documentation>
731
+ </xsd:annotation>
732
+ </xsd:attribute>
733
+
734
+ </xsd:extension>
735
+ </xsd:complexContent>
736
+ </xsd:complexType>
737
+ </xsd:element>
738
+
739
+ <!-- ARCGROUP ARCGROUP ARCGROUP ARCGROUP ARCGROUP ARCGROUP ARCGROUP ARCGROUP ARCGROUP ARCGROUP ARCGROUP -->
740
+
741
+ <xsd:element name="arcgroup">
742
+ <xsd:annotation>
743
+ <xsd:documentation>
744
+ <p>
745
+ The arc group describes a set of arcs and glyphs that together have a relation.
746
+ For example
747
+ <ul>
748
+ <li>For ER: interaction arcs around an interaction glyph,</li>
749
+ <li>...</li>
750
+ </ul>
751
+ Note that, in spite of the name, an arcgroup contains both arcs and glyphs.
752
+ </p>
753
+ </xsd:documentation>
754
+ </xsd:annotation>
755
+ <xsd:complexType>
756
+ <xsd:complexContent>
757
+ <xsd:extension base="SBGNBase">
758
+ <xsd:sequence>
759
+ <xsd:element ref="sbgn:glyph" minOccurs="0" maxOccurs="unbounded">
760
+ <xsd:annotation>
761
+ <xsd:documentation>
762
+ <p>
763
+ An arcgroup can contain glyphs. For example, in an interaction arcgroup, there must be one interaction glyph.
764
+ </p>
765
+ </xsd:documentation>
766
+ </xsd:annotation>
767
+ </xsd:element>
768
+ <xsd:element ref="sbgn:arc" minOccurs="0" maxOccurs="unbounded">
769
+ <xsd:annotation>
770
+ <xsd:documentation>
771
+ <p>
772
+ An arcgroup can have multiple arcs. They are all assumed to form a single hyperarc-like structure.
773
+ </p>
774
+ </xsd:documentation>
775
+ </xsd:annotation>
776
+ </xsd:element>
777
+ </xsd:sequence>
778
+ <xsd:attribute name="class" use="required">
779
+ <xsd:annotation>
780
+ <xsd:documentation>
781
+ <p>
782
+ The class attribute defines the semantic of the arcgroup.
783
+ </p>
784
+ </xsd:documentation>
785
+ </xsd:annotation>
786
+ <xsd:simpleType>
787
+ <xsd:restriction base="xsd:string">
788
+ <!-- ER only -->
789
+ <xsd:enumeration value="interaction"/>
790
+ </xsd:restriction>
791
+ </xsd:simpleType>
792
+ </xsd:attribute>
793
+ </xsd:extension>
794
+ </xsd:complexContent>
795
+ </xsd:complexType>
796
+ </xsd:element>
797
+
798
+ <!-- ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC ARC -->
799
+
800
+ <xsd:element name="arc">
801
+ <xsd:annotation>
802
+ <xsd:documentation>
803
+ <p>
804
+ The arc element describes an SBGN arc between two SBGN nodes. It contains:
805
+ <ul>
806
+ <li>For PD: an optional stoichiometry marker,</li>
807
+ <li>For ER: an optional cardinality marker,
808
+ zero or more ports (influence targets), and zero or more outcomes,</li>
809
+ <li>a mandatory source and target (glyph or port),</li>
810
+ <li>a geometric description of its whole path, from start to end.</li>
811
+ </ul>
812
+ <p>
813
+ </p>
814
+ This path can involve any number of straight lines or quadratic/cubic Bezier
815
+ curves.
816
+ </p>
817
+ </xsd:documentation>
818
+ </xsd:annotation>
819
+ <xsd:complexType>
820
+ <xsd:complexContent>
821
+ <xsd:extension base="SBGNBase">
822
+ <xsd:sequence>
823
+ <xsd:element ref="sbgn:glyph" minOccurs="0" maxOccurs="unbounded">
824
+ <xsd:annotation>
825
+ <xsd:documentation>
826
+ <p>
827
+ In PD, an arc can contain a single optional sub-glyph.
828
+ This glyph must be a stoichiometry marker
829
+ (square with a numeric label)
830
+ </p>
831
+ <p>
832
+ In ER, an arc can contain several sub-glyphs.
833
+ This can be zero or one cardinality glyphs
834
+ (e.g. cis or trans), plus zero to many
835
+ outcome glyphs (black dot)
836
+ </p>
837
+ </xsd:documentation>
838
+ </xsd:annotation>
839
+ </xsd:element>
840
+ <xsd:element ref="sbgn:port" minOccurs="0" maxOccurs="unbounded">
841
+ <xsd:annotation>
842
+ <xsd:documentation>
843
+ <p>
844
+ Ports are only allowed in ER.
845
+ </p>
846
+ </xsd:documentation>
847
+ </xsd:annotation>
848
+ </xsd:element>
849
+ <xsd:element name="start" minOccurs="1" maxOccurs="1">
850
+ <xsd:annotation>
851
+ <xsd:documentation>
852
+ <p>
853
+ The start element represents the starting point of the arc's path.
854
+ It is unique and mandatory.
855
+ </p>
856
+ </xsd:documentation>
857
+ </xsd:annotation>
858
+ <xsd:complexType>
859
+ <xsd:attributeGroup ref="sbgn:PointAttributes"/>
860
+ </xsd:complexType>
861
+ </xsd:element>
862
+ <xsd:element name="next" minOccurs="0" maxOccurs="unbounded">
863
+ <xsd:annotation>
864
+ <xsd:documentation>
865
+ <p>
866
+ The next element represents the next point in the arc's path.
867
+ Between the start and the end of the path, there can be any number
868
+ (even zero) of next elements (intermediate points). They are read
869
+ consecutively: start, next, next, ..., next, end.
870
+ When the path from the previous point to this point is not straight,
871
+ this element also contains a list of control points
872
+ (between 1 and 2) describing a Bezier curve (quadratic if 1 control
873
+ point, cubic if 2) between the previous point and this point.
874
+ </p>
875
+ </xsd:documentation>
876
+ </xsd:annotation>
877
+ <xsd:complexType>
878
+ <xsd:sequence>
879
+ <xsd:annotation>
880
+ <xsd:documentation>
881
+ <p>
882
+ List of control points, used when the path describes a
883
+ curve.
884
+ The number of points describes the degree of the Bezier
885
+ curve: linear (0), quadratic (1) or cubic (2)
886
+ </p>
887
+ </xsd:documentation>
888
+ </xsd:annotation>
889
+ <xsd:element ref="sbgn:point" minOccurs="0" maxOccurs="2"/>
890
+ </xsd:sequence>
891
+ <xsd:attributeGroup ref="sbgn:PointAttributes"/>
892
+ </xsd:complexType>
893
+ </xsd:element>
894
+ <xsd:element name="end" minOccurs="1" maxOccurs="1">
895
+ <xsd:annotation>
896
+ <xsd:documentation>
897
+ <p>
898
+ The end element represents the ending point of the arc's path.
899
+ It is unique and mandatory.
900
+ When the path from the previous point to this point is not straight,
901
+ this element also contains a list of control points
902
+ (between 1 and 2) describing a Bezier curve (quadratic if 1 control
903
+ point, cubic if 2) between the previous point and this point.
904
+ </p>
905
+ </xsd:documentation>
906
+ </xsd:annotation>
907
+ <xsd:complexType>
908
+ <xsd:sequence>
909
+ <xsd:annotation>
910
+ <xsd:documentation>
911
+ <p>
912
+ List of control points, used when the path describes a
913
+ curve.
914
+ The number of points describes the degree of the Bezier
915
+ curve: linear (0), quadratic (1) or cubic (2)
916
+ </p>
917
+ </xsd:documentation>
918
+ </xsd:annotation>
919
+ <xsd:element ref="sbgn:point" minOccurs="0" maxOccurs="2"/>
920
+ </xsd:sequence>
921
+ <xsd:attributeGroup ref="sbgn:PointAttributes"/>
922
+ </xsd:complexType>
923
+ </xsd:element>
924
+ </xsd:sequence>
925
+
926
+ <xsd:attribute name="class" use="required">
927
+ <xsd:annotation>
928
+ <xsd:documentation>
929
+ <p>
930
+ The class attribute defines the semantic of the arc, and influences:
931
+ <ul>
932
+ <li>the way that arc should be rendered,</li>
933
+ <li>the overall syntactic validity of the map.</li>
934
+ </ul>
935
+ </p>
936
+ <p>
937
+ The various classes encompass all possible types of SBGN arcs:
938
+ <ul>
939
+ <li>production and consumption arcs,</li>
940
+ <li>all types of modification arcs,</li>
941
+ <li>logic arcs,</li>
942
+ <li>equivalence arcs.</li>
943
+ </ul>
944
+ To express a reversible reaction,
945
+ use production arcs on both sides of the Process Node.
946
+ </p>
947
+ </xsd:documentation>
948
+ </xsd:annotation>
949
+ <xsd:simpleType>
950
+ <xsd:restriction base="xsd:string">
951
+ <!-- PD only -->
952
+ <xsd:enumeration value="production"/>
953
+ <xsd:enumeration value="consumption"/>
954
+ <xsd:enumeration value="catalysis"/>
955
+ <!-- PD and ER -->
956
+ <xsd:enumeration value="modulation"/>
957
+ <xsd:enumeration value="stimulation"/>
958
+ <xsd:enumeration value="inhibition"/>
959
+ <!-- ER only -->
960
+ <xsd:enumeration value="assignment"/>
961
+ <xsd:enumeration value="interaction"/>
962
+ <xsd:enumeration value="absolute inhibition"/>
963
+ <xsd:enumeration value="absolute stimulation"/>
964
+ <!-- AF only -->
965
+ <xsd:enumeration value="positive influence"/>
966
+ <xsd:enumeration value="negative influence"/>
967
+ <xsd:enumeration value="unknown influence"/>
968
+ <!-- PD and AF -->
969
+ <xsd:enumeration value="equivalence arc"/>
970
+ <!-- PD, ER and AF -->
971
+ <xsd:enumeration value="necessary stimulation"/>
972
+ <xsd:enumeration value="logic arc"/>
973
+ <!-- NB Glyph classes are in a separate enumeration -->
974
+ </xsd:restriction>
975
+ </xsd:simpleType>
976
+ </xsd:attribute>
977
+ <xsd:attribute name="id" type="xsd:ID" use="required">
978
+ <xsd:annotation>
979
+ <xsd:documentation>
980
+ <p>
981
+ The xsd:ID type is an alphanumeric identifier,
982
+ starting with a letter.
983
+ </p>
984
+ </xsd:documentation>
985
+ </xsd:annotation>
986
+ </xsd:attribute>
987
+ <xsd:attribute name="source" type="xsd:IDREF" use="required">
988
+ <xsd:annotation>
989
+ <xsd:documentation>
990
+ <p>
991
+ The source attribute can refer:
992
+ <ul>
993
+ <li>either to the id of a glyph,</li>
994
+ <li>or to the id of a port on a glyph.</li>
995
+ </ul>
996
+ </p>
997
+ </xsd:documentation>
998
+ </xsd:annotation>
999
+ </xsd:attribute>
1000
+ <xsd:attribute name="target" type="xsd:IDREF" use="required">
1001
+ <xsd:annotation>
1002
+ <xsd:documentation>
1003
+ <p>
1004
+ The target attribute can refer:
1005
+ <ul>
1006
+ <li>either to the id of a glyph,</li>
1007
+ <li>or to the id of a port on a glyph.</li>
1008
+ </ul>
1009
+ </p>
1010
+ </xsd:documentation>
1011
+ </xsd:annotation>
1012
+ </xsd:attribute>
1013
+ </xsd:extension>
1014
+ </xsd:complexContent>
1015
+ </xsd:complexType>
1016
+ </xsd:element>
1017
+
1018
+ </xsd:schema>