OnyxExportOntology: onyx-i2b2-ontology.2.xsd

File onyx-i2b2-ontology.2.xsd, 2.4 KB (added by jeff.lusted, 14 years ago)

Schema used to produce the 3rd attempt at intermediate ontology files.

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema targetNamespace="http://briccs.org.uk/xml/v1.0/oi"
3 xmlns="http://briccs.org.uk/xml/v1.0/oi" attributeFormDefault="unqualified"
4 elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
5 <xs:element name="source" type="sourceType" />
6 <xs:complexType name="variableType">
7 <xs:sequence>
8 <xs:element type="xs:string" name="name" />
9 <xs:element type="xs:string" name="label" maxOccurs="1" minOccurs="0" />
10 <xs:element type="xs:string" name="type" maxOccurs="1" minOccurs="0" />
11 <xs:element type="xs:boolean" name="repeatable" maxOccurs="1" minOccurs="0" />
12 <xs:element type="restrictionType" name="restriction" maxOccurs="unbounded" minOccurs="0" />
13 <xs:element type="variableType" name="variable" maxOccurs="unbounded" minOccurs="0" />
14 </xs:sequence>
15 </xs:complexType>
16 <xs:complexType name="restrictionType">
17 <xs:sequence>
18 <xs:element type="xs:string" name="enum" maxOccurs="unbounded" minOccurs="1"/>
19 </xs:sequence>
20 </xs:complexType>
21 <xs:complexType name="sourceType">
22 <xs:sequence>
23 <xs:element type="xs:string" name="name" />
24 <xs:element type="entityType" name="entity" maxOccurs="1" minOccurs="0" />
25 <xs:element type="stageType" name="stage" maxOccurs="1" minOccurs="0" />
26 </xs:sequence>
27 </xs:complexType>
28 <xs:complexType name="entityType">
29 <xs:sequence>
30 <xs:element type="xs:string" name="name" />
31 <xs:element type="variableType" name="variable" maxOccurs="unbounded" minOccurs="0" />
32 </xs:sequence>
33 </xs:complexType>
34 <xs:complexType name="stageType">
35 <xs:sequence>
36 <xs:element type="xs:string" name="name" />
37 <xs:element type="variableType" name="variable" maxOccurs="unbounded" minOccurs="0" />
38 <xs:element type="sectionType" name="section" maxOccurs="unbounded" minOccurs="0" />
39 </xs:sequence>
40 </xs:complexType>
41 <xs:complexType name="sectionType">
42 <xs:sequence>
43 <xs:element type="xs:string" name="name" />
44 <xs:element type="questionType" name="question" maxOccurs="unbounded" minOccurs="0" />
45 </xs:sequence>
46 </xs:complexType>
47 <xs:complexType name="questionType">
48 <xs:sequence>
49 <xs:element type="xs:string" name="name" />
50 <xs:element type="xs:string" name="label" />
51 <xs:element type="variableType" name="variable" maxOccurs="unbounded" minOccurs="0" />
52 <xs:element type="questionType" name="question" maxOccurs="unbounded" minOccurs="0" />
53 </xs:sequence>
54 </xs:complexType>
55</xs:schema>