You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

openvibe-scenario-v1.xsd 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Base scenario schema for OpenViBE XML scenario -->
  3. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  4. <!-- Types definitions -->
  5. <!-- Identifier Type -->
  6. <xs:simpleType name="IdentifierType">
  7. <xs:restriction base="xs:string"/>
  8. </xs:simpleType>
  9. <!-- Name Type -->
  10. <xs:simpleType name="NameType">
  11. <xs:restriction base="xs:string"/>
  12. </xs:simpleType>
  13. <!-- ParameterType (settings value, attributes values) -->
  14. <xs:simpleType name="ParameterType">
  15. <xs:restriction base="xs:string"/>
  16. </xs:simpleType>
  17. <!-- Index Type -->
  18. <xs:simpleType name="IndexType">
  19. <xs:restriction base="xs:integer"/>
  20. </xs:simpleType>
  21. <!-- Scenario structure -->
  22. <!-- Root node -->
  23. <xs:element name="OpenViBE-Scenario">
  24. <xs:complexType>
  25. <xs:all>
  26. <!-- Fixed format version number to implement a fallback validation mechanism -->
  27. <xs:element name="FormatVersion" type="xs:string" fixed="1"/>
  28. <!-- Version of the entity used to generate the scenario -->
  29. <xs:element name="CreatorVersion" type="xs:string"/>
  30. <!-- Name of the entity used to generate the scenario -->
  31. <xs:element name="Creator" type="xs:string"/>
  32. <xs:element minOccurs="0" ref="Boxes"/>
  33. <xs:element minOccurs="0" ref="Links"/>
  34. <xs:element minOccurs="0" ref="Comments"/>
  35. <xs:element minOccurs="0" ref="Settings"/>
  36. <xs:element minOccurs="0" ref="Inputs"/>
  37. <xs:element minOccurs="0" ref="Outputs"/>
  38. <xs:element minOccurs="0" ref="Attributes"/>
  39. <xs:element minOccurs="0" ref="Metadata"/>
  40. </xs:all>
  41. </xs:complexType>
  42. </xs:element>
  43. <!-- Boxes -->
  44. <xs:element name="Boxes">
  45. <xs:complexType>
  46. <xs:sequence>
  47. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Box"/>
  48. </xs:sequence>
  49. </xs:complexType>
  50. </xs:element>
  51. <xs:element name="Box">
  52. <xs:complexType>
  53. <xs:all>
  54. <xs:element name="Identifier" type="IdentifierType"/>
  55. <xs:element name="Name" type="NameType"/>
  56. <xs:element name="AlgorithmClassIdentifier" type="IdentifierType"/>
  57. <xs:element minOccurs="0" ref="Settings"/>
  58. <xs:element minOccurs="0" ref="Inputs"/>
  59. <xs:element minOccurs="0" ref="Outputs"/>
  60. <xs:element minOccurs="0" ref="Attributes"/>
  61. </xs:all>
  62. </xs:complexType>
  63. </xs:element>
  64. <!-- Links -->
  65. <xs:element name="Links">
  66. <xs:complexType>
  67. <xs:sequence>
  68. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Link"/>
  69. </xs:sequence>
  70. </xs:complexType>
  71. </xs:element>
  72. <xs:element name="Link">
  73. <xs:complexType>
  74. <xs:all>
  75. <xs:element name="Identifier" type="IdentifierType"/>
  76. <xs:element ref="Source"/>
  77. <xs:element ref="Target"/>
  78. <xs:element minOccurs="0" ref="Attributes"/>
  79. </xs:all>
  80. </xs:complexType>
  81. </xs:element>
  82. <xs:element name="Source">
  83. <xs:complexType>
  84. <xs:all>
  85. <xs:element name="BoxIdentifier" type="IdentifierType"/>
  86. <xs:element name="BoxOutputIndex" type="IndexType"/>
  87. </xs:all>
  88. </xs:complexType>
  89. </xs:element>
  90. <xs:element name="Target">
  91. <xs:complexType>
  92. <xs:all>
  93. <xs:element name="BoxIdentifier" type="IdentifierType"/>
  94. <xs:element name="BoxInputIndex" type="IndexType"/>
  95. </xs:all>
  96. </xs:complexType>
  97. </xs:element>
  98. <!-- Comments -->
  99. <xs:element name="Comments">
  100. <xs:complexType>
  101. <xs:sequence>
  102. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Comment"/>
  103. </xs:sequence>
  104. </xs:complexType>
  105. </xs:element>
  106. <xs:element name="Comment">
  107. <xs:complexType>
  108. <xs:all>
  109. <xs:element name="Identifier" type="IdentifierType"/>
  110. <xs:element name="Text" type="xs:string"/>
  111. <xs:element minOccurs="0" ref="Attributes"/>
  112. </xs:all>
  113. </xs:complexType>
  114. </xs:element>
  115. <!-- Settings -->
  116. <xs:element name="Settings">
  117. <xs:complexType>
  118. <xs:sequence>
  119. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Setting"/>
  120. </xs:sequence>
  121. </xs:complexType>
  122. </xs:element>
  123. <xs:element name="Setting">
  124. <xs:complexType>
  125. <xs:all>
  126. <xs:element name="TypeIdentifier" type="IdentifierType"/>
  127. <xs:element name="Name" type="NameType"/>
  128. <xs:element name="DefaultValue" type="ParameterType"/>
  129. <xs:element minOccurs="0" name="Value" type="ParameterType"/>
  130. <xs:element minOccurs="0" name="Modifiability" type="xs:boolean"/>
  131. </xs:all>
  132. </xs:complexType>
  133. </xs:element>
  134. <!-- Inputs -->
  135. <xs:element name="Inputs">
  136. <xs:complexType>
  137. <xs:sequence>
  138. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Input"/>
  139. </xs:sequence>
  140. </xs:complexType>
  141. </xs:element>
  142. <xs:element name="Input">
  143. <xs:complexType>
  144. <xs:all>
  145. <xs:element name="TypeIdentifier" type="IdentifierType"/>
  146. <xs:element name="Name" type="NameType"/>
  147. <xs:element minOccurs="0" name="LinkedBoxIdentifier" type="IdentifierType"/>
  148. <xs:element minOccurs="0" name="LinkedBoxInputIndex" type="IndexType"/>
  149. </xs:all>
  150. </xs:complexType>
  151. </xs:element>
  152. <!-- Outputs -->
  153. <xs:element name="Outputs">
  154. <xs:complexType>
  155. <xs:sequence>
  156. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Output"/>
  157. </xs:sequence>
  158. </xs:complexType>
  159. </xs:element>
  160. <xs:element name="Output">
  161. <xs:complexType>
  162. <xs:all>
  163. <xs:element name="TypeIdentifier" type="IdentifierType"/>
  164. <xs:element name="Name" type="NameType"/>
  165. <xs:element minOccurs="0" name="LinkedBoxIdentifier" type="IdentifierType"/>
  166. <xs:element minOccurs="0" name="LinkedBoxOutputIndex" type="IndexType"/>
  167. </xs:all>
  168. </xs:complexType>
  169. </xs:element>
  170. <!-- Attributes -->
  171. <xs:element name="Attributes">
  172. <xs:complexType>
  173. <xs:sequence>
  174. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Attribute"/>
  175. </xs:sequence>
  176. </xs:complexType>
  177. </xs:element>
  178. <xs:element name="Attribute">
  179. <xs:complexType>
  180. <xs:all>
  181. <xs:element name="Identifier" type="IdentifierType"/>
  182. <xs:element name="Value" type="ParameterType"/>
  183. </xs:all>
  184. </xs:complexType>
  185. </xs:element>
  186. <!-- Metadata -->
  187. <xs:element name="Metadata">
  188. <xs:complexType>
  189. <xs:sequence>
  190. <xs:element minOccurs="0" maxOccurs="unbounded" ref="Entry"/>
  191. </xs:sequence>
  192. </xs:complexType>
  193. </xs:element>
  194. <xs:element name="Entry">
  195. <xs:complexType>
  196. <xs:sequence>
  197. <xs:element name="Identifier" type="IdentifierType"/>
  198. <xs:element name="Type" type="IdentifierType"/>
  199. <xs:element name="Data" type="xs:string"/>
  200. </xs:sequence>
  201. </xs:complexType>
  202. </xs:element>
  203. </xs:schema>