-
Notifications
You must be signed in to change notification settings - Fork 0
/
document.avsc
243 lines (243 loc) · 10.4 KB
/
document.avsc
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
[
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Span",
"fields": [
{"name": "start", "type": "int"},
{"name": "end", "type": "int"},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Provenance",
"fields": [
{"name": "annotator", "type": "string"},
{"name": "license", "type": ["null", "string"], "default": null},
{"name": "score", "type": ["null", "float"], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null},
{"name": "creator", "type": ["null", "string"], "default": null},
{"name": "annotatorVersion", "type": ["null", "string"], "default": null},
{"name": "model", "type": ["null", "string"], "default": null},
{"name": "modelVersion", "type": ["null", "string"], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Reference",
"fields": [
{"name": "key", "type": "string"},
{"name": "value", "type": "string"},
{"name": "provenance", "type": ["null", "Provenance"], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Token",
"fields": [
{"name": "span", "type": "Span"},
{"name": "lemma", "type": ["null", "string"], "default": null},
{"name": "ner", "type": ["null", "string"], "default": null},
{"name": "posTag", "type": ["null", "string"], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Vertex",
"fields": [
{"name": "id", "type": "string"},
{"name": "span", "type": "Span"},
{"name": "label", "type": "string"},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Edge",
"fields": [
{"name": "source", "type": "string"},
{"name": "target", "type": "string"},
{"name": "label", "type": "string"},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Graph",
"fields": [
{"name": "id", "type": "string"},
{"name": "span", "type": "Span"},
{"name": "vertices", "type": {"type": "array", "items": "Vertex"}},
{"name": "edges", "type": {"type": "array", "items": "Edge"}},
{"name": "provenance", "type": ["null", {"type": "array", "items": "Provenance"}], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Annotation",
"fields": [
{"name": "span", "type": "Span"},
{"name": "key", "type": "string"},
{"name": "label", "type": "string"},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null},
{"name": "provenance", "type": ["null", {"type": "array", "items": "Provenance"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "ConceptMention",
"fields": [
{"name": "id", "type": "string"},
{"name": "span", "type": "Span"},
{"name": "type", "type": "string"},
{"name": "normalizedValue", "type": ["null", "string"], "default": null},
{"name": "refids", "type": ["null", {"type": "array", "items": "Reference"}], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null},
{"name": "provenance", "type": ["null", {"type": "array", "items": "Provenance"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "RelationArgument",
"fields": [
{"name": "id", "type": "string"},
{"name": "role", "type": "string"},
{"name": "conceptMention", "type": "ConceptMention"},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "RelationMention",
"fields": [
{"name": "id", "type": "string"},
{"name": "span", "type": "Span"},
{"name": "name", "type": "string"},
{"name": "args", "type": ["null", {"type": "array", "items": "RelationArgument"}], "default": null},
{"name": "provenance", "type": ["null", {"type": "array", "items": "Provenance"}], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Sentence",
"fields": [
{"name": "id", "type": "string"},
{"name": "span", "type": "Span"},
{"name": "index", "type": "int"},
{"name": "docId", "type": ["null", "string"], "default": null},
{"name": "parseTree", "type": ["null", "Graph"], "default": null},
{"name": "tokens", "type": ["null", {"type": "array", "items": "Token"}], "default": null},
{"name": "conceptMentions", "type": ["null", {"type": "array", "items": "ConceptMention"}], "default": null},
{"name": "relationMentions", "type": ["null", {"type": "array", "items": "RelationMention"}], "default": null},
{"name": "annotations", "type": ["null", {"type": "array", "items": "Annotation"}], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "CorefChain",
"fields": [
{"name": "id", "type": "string"},
{"name": "canonicalName", "type": ["null", "string"], "default": null},
{"name": "mentions", "type": ["null", {"type": "array", "items": "ConceptMention"}], "default": null},
{"name": "provenance", "type": ["null", {"type": "array", "items": "Provenance"}], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.tap",
"type": "record",
"name": "Document",
"fields": [
{"name": "id", "type": "string"},
{"name": "raw", "type": "string"},
{"name": "text", "type": ["null", "string"], "default": null},
{"name": "uri", "type": ["null", "string"], "default": null},
{"name": "signature", "type": ["null", "string"], "default": null},
{"name": "langCode", "type": ["null", "string"], "default": null},
{"name": "date", "type": ["null", "string"], "default": null},
{"name": "tokens", "type": ["null", {"type": "array", "items": "Token"}], "default": null},
{"name": "sentences", "type": ["null", {"type": "array", "items": "Sentence"}], "default": null},
{"name": "corefChains", "type": ["null", {"type": "array", "items": "CorefChain"}], "default": null},
{"name": "conceptMentions", "type": ["null", {"type": "array", "items": "ConceptMention"}], "default": null},
{"name": "relationMentions", "type": ["null", {"type": "array", "items": "RelationMention"}], "default": null},
{"name": "annotations", "type": ["null", {"type": "array", "items": "Annotation"}], "default": null},
{"name": "provenance", "type": ["null", {"type": "array", "items": "Provenance"}], "default": null},
{"name": "refids", "type": ["null", {"type": "map", "values": "string"}], "default": null},
{"name": "title", "type": ["null", "string"], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null},
{"name": "docType", "type":["null",{"type":"enum", "name":"docTypes", "symbols":["TWITTER_JSON", "RSS_XML", "NEWS_HTML"]}],"default":null}
]
},
{"namespace": "de.dfki.lt.spree",
"type": "record",
"name": "ConceptInstance",
"fields": [
{"name": "id", "type": "string"},
{"name": "type", "type": "string"},
{"name": "normalizedValue", "type": ["null", "string"], "default": null},
{"name": "refids", "type": ["null", {"type": "array", "items": "de.dfki.lt.tap.Reference"}], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null},
{"name": "provenance", "type": ["null", {"type": "array", "items": "de.dfki.lt.tap.Provenance"}], "default": null}
]
},
{"namespace": "de.dfki.lt.spree.re",
"type": "record",
"name": "RelationInstanceArgument",
"fields": [
{"name": "id", "type": "string"},
{"name": "role", "type": "string"},
{"name": "conceptInstance", "type": "de.dfki.lt.spree.ConceptInstance"},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.spree.re",
"type": "record",
"name": "RelationInstance",
"fields": [
{"name": "id", "type": "string"},
{"name": "name", "type": "string"},
{"name": "args", "type": ["null", {"type": "array", "items": "RelationInstanceArgument"}], "default": null},
{"name": "provenance", "type": ["null", {"type": "array", "items": "de.dfki.lt.tap.Provenance"}], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.spree.re",
"type": "record",
"name": "ReVertex",
"fields": [
{"name": "id", "type": "string"},
{"name": "label", "type": "string"},
{"name": "lemma", "type": ["null", "string"], "default": null},
{"name": "ner", "type": ["null", "string"], "default": null},
{"name": "posTag", "type": ["null", "string"], "default": null},
{"name": "argRole", "type": ["null", "string"], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.spree.re",
"type": "record",
"name": "ReEdge",
"fields": [
{"name": "source", "type": "string"},
{"name": "target", "type": "string"},
{"name": "label", "type": "string"},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
},
{"namespace": "de.dfki.lt.spree.re",
"type": "record",
"name": "RePattern",
"fields": [
{"name": "id", "type": "string"},
{"name": "name", "type": "string"},
{"name": "vertices", "type": {"type": "array", "items": "ReVertex"}},
{"name": "edges", "type": {"type": "array", "items": "ReEdge"}},
{"name": "provenance", "type": ["null", {"type": "array", "items": "de.dfki.lt.tap.Provenance"}], "default": null},
{"name": "attributes", "type": ["null", {"type": "map", "values": "string"}], "default": null}
]
}
]