-
Notifications
You must be signed in to change notification settings - Fork 3
/
schema.xsd
82 lines (82 loc) · 3.34 KB
/
schema.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
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="sentences">
<xs:complexType>
<xs:sequence>
<xs:element name="sentence" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element type="xs:unsignedLong" name="id"/>
<xs:element type="xs:unsignedLong" name="pubmedID"/>
<xs:element type="xs:unsignedLong" name="sentenceID"/>
<xs:element type="xs:float" name="score"/>
<xs:element type="xs:string" name="literal"/>
<xs:element type="xs:byte" name="grade"/>
<xs:element type="xs:string" name="comment"/>
<xs:element name="entities">
<xs:complexType>
<xs:sequence>
<xs:element name="entity" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element type="xs:unsignedLong" name="id"/>
<xs:element type="xs:unsignedLong" name="sentence_id"/>
<xs:element type="xs:string" name="name"/>
<xs:element type="xs:string" name="type"/>
<xs:element type="xs:string" name="software"/>
<xs:element type="xs:unsignedLong" name="start"/>
<xs:element type="xs:unsignedLong" name="end"/>
<xs:element type="xs:string" name="databaseID"/>
<xs:element type="xs:byte" name="grade"/>
<xs:element type="xs:string" name="comment"/>
<xs:element type="xs:string" name="ontologyLink"/>
<xs:element name="ontologyAnnotations">
<xs:complexType>
<xs:sequence>
<xs:element name="ontologyAnnotation" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="id" type="xs:unsignedLong" />
<xs:element name="entity_id" type="xs:unsignedLong" />
<xs:element name="dbName" type="xs:string" />
<xs:element name="urn" type="xs:string" />
<xs:element name="identifier" type="xs:string" />
<xs:element name="default" type="xs:string" />
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="interactions">
<xs:complexType>
<xs:sequence>
<xs:element name="interaction" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element type="xs:unsignedLong" name="id"/>
<xs:element type="xs:unsignedLong" name="sentence_id"/>
<xs:element type="xs:string" name="type"/>
<xs:element type="xs:unsignedLong" name="start"/>
<xs:element type="xs:unsignedLong" name="end"/>
<xs:element type="xs:byte" name="grade"/>
<xs:element type="xs:string" name="comment"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>