-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbad-examplicon.xml
97 lines (77 loc) · 3.36 KB
/
bad-examplicon.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- File with many errors to test validation
Follows loosely the content of examplicon.xml
-->
<LexicalResource
name="div-bad-examplicon"
prefix="bex"
xmlns:ex="https://github.com/diversicon-kb/diversicon/blob/master/src/test/resources/bad-examplicon.xml"
xmlns:wn31="https://github.com/diversicon-kb/diversicon-wordnet-3.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://diversicon-kb.eu/schema/1.0/diversicon.xsd">
<GlobalInformation label="The Bad Examplicon"></GlobalInformation>
<MetaData id="bex_md"
creationDate="2016-09-26"
creationTool="text editor"
version="1.0"
creationProcess="by hand"
automatic="false"
/>
<!-- id not starting with 'bex' -->
<Lexicon id="666_lex-eng"
languageIdentifier="eng"
name="bexamplicon English lexicon">
<!-- missing id -->
<LexicalEntry
partOfSpeech="noun">
<!-- Invalid XML id, starts with dash '-' . Only underscore '_' should be allowed
Also, does not start with 'bex' prefix.
-->
<Lemma id="-trial">
<FormRepresentation languageIdentifier="eng"
writtenForm="electric car"/>
</Lemma>
<!-- non valid XML id, contains euro € symbol -->
<Sense id="bex_s-€€€€lectric-car"
synset="bex_ss-electric-car">
<MonolingualExternalRef externalSystem="cars"
externalReference="3rd row, fourth column in CSV"/>
</Sense>
</LexicalEntry>
<LexicalEntry id="bex_le-tesla-car"
partOfSpeech="noun">
<Lemma>
<FormRepresentation languageIdentifier="eng"
writtenForm="tesla car"/>
</Lemma>
<Sense id="bex_s-tesla-car"
synset="bex_ss-tesla-car">
<MonolingualExternalRef externalSystem="cars"
externalReference="3rd row, fourth column in CSV"/>
</Sense>
</LexicalEntry>
<Synset id="bex_ss-electric-car">
<Definition>
<TextRepresentation languageIdentifier="eng"
writtenText="A car that doesn't poison you."/>
</Definition>
<MonolingualExternalRef externalSystem="cars"
externalReference="7st row 2rd column in csv of origin"/>
<!-- targeting undeclared prefix -->
<SynsetRelation target="666_ss-n2961779"
relType="taxonomic"
relName="hypernym"/>
</Synset>
<Synset id="bex_ss-tesla-car">
<Definition>
<TextRepresentation languageIdentifier="eng"
writtenText="A car from Tesla Motors company."/>
</Definition>
<MonolingualExternalRef externalSystem="cars"
externalReference="7st row 2rd column in csv of origin"/>
<SynsetRelation target="bex_ss-electric-car"
relType="taxonomic"
relName="hypernym"/>
</Synset>
</Lexicon>
</LexicalResource>