mexico 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.document +5 -0
- data/.gitmodules +3 -0
- data/.project +14 -0
- data/.rspec +2 -0
- data/Gemfile +31 -0
- data/LICENSE.txt +165 -0
- data/README.md +116 -0
- data/Rakefile +66 -0
- data/VERSION +1 -0
- data/assets/TESTCORPUS/Corpus.xml +26 -0
- data/assets/fiesta/b6/layer_connectors.fst +16 -0
- data/assets/fiesta/b6/match_jones_161_CM_neu_checked.parsed.xml +1225 -0
- data/assets/fiesta/elan/ElanFileFormat.eaf +76 -0
- data/assets/fiesta/elan/ElanFileFormat.pfsx +8 -0
- data/assets/fiesta/elan/ElanFileFormatComplexInterLayerLinks.eaf +107 -0
- data/assets/fiesta/elan/reflinks_example.eaf +270 -0
- data/assets/fiesta/elan/test_all_interlayerrelations.fst +43 -0
- data/assets/fiesta/head/head.fst +24 -0
- data/assets/fiesta/praat/mexico.ShortTextGrid +81 -0
- data/assets/fiesta/praat/mexico.TextGrid +104 -0
- data/assets/helpers/collection_ref_handler.rb +29 -0
- data/assets/helpers/id_ref_handler.rb +29 -0
- data/assets/helpers/roxml_attribute_handler.rb +57 -0
- data/assets/out_only/construct_and_write_spec.toe +99 -0
- data/assets/spec.html +554 -0
- data/bin/mexico +5 -0
- data/features/mexico.feature +9 -0
- data/features/step_definitions/mexico_steps.rb +0 -0
- data/features/support/env.rb +15 -0
- data/info/releasenotes/0.0.1.md +5 -0
- data/info/releasenotes/0.0.2.md +5 -0
- data/info/releasenotes/0.0.3.md +5 -0
- data/info/releasenotes/0.0.4.md +5 -0
- data/info/releasenotes/0.0.5.md +8 -0
- data/info/releasenotes/0.0.6.md +3 -0
- data/info/releasenotes/0.0.7.md +4 -0
- data/info/releasenotes/0.0.8.md +9 -0
- data/info/releasenotes/0.0.9.md +7 -0
- data/lib/mexico/cmd.rb +210 -0
- data/lib/mexico/constants.rb +82 -0
- data/lib/mexico/constraints/constraint.rb +85 -0
- data/lib/mexico/constraints/fiesta_constraints.rb +209 -0
- data/lib/mexico/constraints.rb +27 -0
- data/lib/mexico/core/corpus_core.rb +39 -0
- data/lib/mexico/core/design_core.rb +31 -0
- data/lib/mexico/core/media_type.rb +61 -0
- data/lib/mexico/core.rb +36 -0
- data/lib/mexico/fiesta/interfaces/b6_chat_game_interface.rb +222 -0
- data/lib/mexico/fiesta/interfaces/elan_interface.rb +143 -0
- data/lib/mexico/fiesta/interfaces/short_text_grid_interface.rb +99 -0
- data/lib/mexico/fiesta/interfaces/text_grid_interface.rb +103 -0
- data/lib/mexico/fiesta/interfaces.rb +31 -0
- data/lib/mexico/fiesta.rb +27 -0
- data/lib/mexico/file_system/bound_to_corpus.rb +37 -0
- data/lib/mexico/file_system/corpus.rb +207 -0
- data/lib/mexico/file_system/data.rb +96 -0
- data/lib/mexico/file_system/design.rb +75 -0
- data/lib/mexico/file_system/design_component.rb +78 -0
- data/lib/mexico/file_system/entry.rb +59 -0
- data/lib/mexico/file_system/fiesta_document.rb +344 -0
- data/lib/mexico/file_system/fiesta_map.rb +112 -0
- data/lib/mexico/file_system/head.rb +33 -0
- data/lib/mexico/file_system/id_ref.rb +46 -0
- data/lib/mexico/file_system/implicit_item_link.rb +19 -0
- data/lib/mexico/file_system/interval_link.rb +84 -0
- data/lib/mexico/file_system/item.rb +166 -0
- data/lib/mexico/file_system/item_link.rb +98 -0
- data/lib/mexico/file_system/item_links_proxy.rb +13 -0
- data/lib/mexico/file_system/layer.rb +89 -0
- data/lib/mexico/file_system/layer_connector.rb +74 -0
- data/lib/mexico/file_system/layer_link.rb +75 -0
- data/lib/mexico/file_system/local_file.rb +101 -0
- data/lib/mexico/file_system/participant.rb +69 -0
- data/lib/mexico/file_system/participant_role.rb +43 -0
- data/lib/mexico/file_system/point_link.rb +79 -0
- data/lib/mexico/file_system/property.rb +35 -0
- data/lib/mexico/file_system/property_map.rb +37 -0
- data/lib/mexico/file_system/resource.rb +174 -0
- data/lib/mexico/file_system/scale.rb +125 -0
- data/lib/mexico/file_system/section.rb +41 -0
- data/lib/mexico/file_system/static_collection_ref.rb +64 -0
- data/lib/mexico/file_system/template.rb +23 -0
- data/lib/mexico/file_system/trial.rb +87 -0
- data/lib/mexico/file_system/url.rb +65 -0
- data/lib/mexico/file_system.rb +62 -0
- data/lib/mexico/not_yet_implemented_error.rb +28 -0
- data/lib/mexico/util/fancy_container.rb +57 -0
- data/lib/mexico/util.rb +51 -0
- data/lib/mexico.rb +36 -0
- data/spec/constraints/constraints_spec.rb +306 -0
- data/spec/core/media_type_spec.rb +50 -0
- data/spec/fiesta/b6_spec.rb +43 -0
- data/spec/fiesta/elan_spec.rb +43 -0
- data/spec/fiesta/head_spec.rb +54 -0
- data/spec/fiesta/praat_spec.rb +54 -0
- data/spec/fiesta/read_spec.rb +76 -0
- data/spec/file_system_based/better_collection_spec.rb +142 -0
- data/spec/file_system_based/corpus_spec.rb +194 -0
- data/spec/file_system_based/design_spec.rb +100 -0
- data/spec/file_system_based/inter_links_spec.rb +100 -0
- data/spec/file_system_based/item_links_spec.rb +76 -0
- data/spec/file_system_based/rdf_spec.rb +177 -0
- data/spec/file_system_based/resource_spec.rb +111 -0
- data/spec/file_system_based/trial_spec.rb +129 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/toe/construct_and_write_spec.rb +82 -0
- data/spec/toe/construction_spec.rb +110 -0
- data/spec/toe/item_spec.rb +58 -0
- data/spec/toe/layer_spec.rb +63 -0
- data/spec/toe/scale_spec.rb +89 -0
- data/spec/toe/toe_document_spec.rb +39 -0
- data/test/helper.rb +19 -0
- data/test/test_mexico.rb +7 -0
- metadata +357 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODIxZjRkYWE2NmMzYmNjYWIwMTQxZTVkNmFlNGI1NjRiMWRiYmZiYg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NDc3MmNjNjEwZGVkYzMyNmM0Yjg1YzZiNmU2NDdlYjk0MjJhMzZjOQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWY3MzdmMTRkOWI2YzMyZmIyN2RkMWQ0YmNkNzU1Y2M4YjYxNTdhZTgzMDdm
|
10
|
+
MmUxMzA5MjNhZjgyODdkNzc4NGJiMWU1ZGI0NzZhYTJkMzIzMjUzMTAxMzlm
|
11
|
+
ZDNlM2ZmOWEyM2RhNTRlMzAyMmZjOTBmOGNhM2QyYjRiNjk2ZWY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NWM4ZGFkMmU4YWY1YWExNDYwZDRiNGExYzFkZWMzMTE4ZmI5YzNjNGZiYTJl
|
14
|
+
YjQxOGM0Y2IwZTZiOWM5ZjI3OWE2OWMxMzk3YzEwN2EzODFlODQ3MGMyNmFi
|
15
|
+
N2VmOTAwMGIzMDhjNTU4YmE0MTY0NTM5ZGJlNTczYjIzYmEzZjc=
|
data/.document
ADDED
data/.gitmodules
ADDED
data/.project
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<projectDescription>
|
3
|
+
<name>mexico</name>
|
4
|
+
<comment></comment>
|
5
|
+
<projects>
|
6
|
+
</projects>
|
7
|
+
<buildSpec>
|
8
|
+
</buildSpec>
|
9
|
+
<natures>
|
10
|
+
<nature>com.aptana.ruby.core.rubynature</nature>
|
11
|
+
<nature>org.radrails.rails.core.railsnature</nature>
|
12
|
+
<nature>com.aptana.projects.webnature</nature>
|
13
|
+
</natures>
|
14
|
+
</projectDescription>
|
data/.rspec
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
source 'http://gems.github.com'
|
3
|
+
# Add dependencies required to use your gem here.
|
4
|
+
# Example:
|
5
|
+
# gem "activesupport", ">= 2.3.5"
|
6
|
+
|
7
|
+
gem "nokogiri"
|
8
|
+
# gem 'nokogiri-happymapper', :require => 'happymapper'
|
9
|
+
gem 'roxml'
|
10
|
+
gem 'builder'
|
11
|
+
gem 'colorize'
|
12
|
+
|
13
|
+
gem 'rdf', '~> 1.0.7'
|
14
|
+
gem 'rdf-turtle', '~> 1.0.8'
|
15
|
+
# gem 'rdf-ntriples'
|
16
|
+
gem 'rdf-rdfxml'
|
17
|
+
#gem 'poseidon', :require => true, :path => '~/code/poseidon'
|
18
|
+
gem 'poseidon', '~> 1.1.1', :require => true, :git => 'git://github.com/sfb673/poseidon.git'
|
19
|
+
|
20
|
+
# Add dependencies to develop your gem here.
|
21
|
+
# Include everything needed to run rake, tests, features, etc.
|
22
|
+
group :development do
|
23
|
+
gem "minitest", ">= 0"
|
24
|
+
# gem "bluecloth"
|
25
|
+
gem "yard", "~> 0.8.3"
|
26
|
+
# gem "cucumber", ">= 0"
|
27
|
+
gem "bundler" #, "~> 1.0.0"
|
28
|
+
gem "jeweler", "~> 2.0.0"
|
29
|
+
gem "simplecov" #, ">= 0"
|
30
|
+
gem "rspec", "~> 2.12.0"
|
31
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
2
|
+
Version 3, 29 June 2007
|
3
|
+
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
6
|
+
of this license document, but changing it is not allowed.
|
7
|
+
|
8
|
+
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
11
|
+
License, supplemented by the additional permissions listed below.
|
12
|
+
|
13
|
+
0. Additional Definitions.
|
14
|
+
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
17
|
+
General Public License.
|
18
|
+
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
20
|
+
other than an Application or a Combined Work as defined below.
|
21
|
+
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
25
|
+
of using an interface provided by the Library.
|
26
|
+
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
28
|
+
Application with the Library. The particular version of the Library
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
30
|
+
Version".
|
31
|
+
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
35
|
+
based on the Application, and not on the Linked Version.
|
36
|
+
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
38
|
+
object code and/or source code for the Application, including any data
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
41
|
+
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
43
|
+
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
46
|
+
|
47
|
+
2. Conveying Modified Versions.
|
48
|
+
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
51
|
+
that uses the facility (other than as an argument passed when the
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
53
|
+
version:
|
54
|
+
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
56
|
+
ensure that, in the event an Application does not supply the
|
57
|
+
function or data, the facility still operates, and performs
|
58
|
+
whatever part of its purpose remains meaningful, or
|
59
|
+
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
61
|
+
this License applicable to that copy.
|
62
|
+
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
64
|
+
|
65
|
+
The object code form of an Application may incorporate material from
|
66
|
+
a header file that is part of the Library. You may convey such object
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
68
|
+
material is not limited to numerical parameters, data structure
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
71
|
+
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
73
|
+
Library is used in it and that the Library and its use are
|
74
|
+
covered by this License.
|
75
|
+
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
77
|
+
document.
|
78
|
+
|
79
|
+
4. Combined Works.
|
80
|
+
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
82
|
+
taken together, effectively do not restrict modification of the
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
85
|
+
the following:
|
86
|
+
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
88
|
+
the Library is used in it and that the Library and its use are
|
89
|
+
covered by this License.
|
90
|
+
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
92
|
+
document.
|
93
|
+
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
95
|
+
execution, include the copyright notice for the Library among
|
96
|
+
these notices, as well as a reference directing the user to the
|
97
|
+
copies of the GNU GPL and this license document.
|
98
|
+
|
99
|
+
d) Do one of the following:
|
100
|
+
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
102
|
+
License, and the Corresponding Application Code in a form
|
103
|
+
suitable for, and under terms that permit, the user to
|
104
|
+
recombine or relink the Application with a modified version of
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
107
|
+
Corresponding Source.
|
108
|
+
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
111
|
+
a copy of the Library already present on the user's computer
|
112
|
+
system, and (b) will operate properly with a modified version
|
113
|
+
of the Library that is interface-compatible with the Linked
|
114
|
+
Version.
|
115
|
+
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
117
|
+
be required to provide such information under section 6 of the
|
118
|
+
GNU GPL, and only to the extent that such information is
|
119
|
+
necessary to install and execute a modified version of the
|
120
|
+
Combined Work produced by recombining or relinking the
|
121
|
+
Application with a modified version of the Linked Version. (If
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
126
|
+
for conveying Corresponding Source.)
|
127
|
+
|
128
|
+
5. Combined Libraries.
|
129
|
+
|
130
|
+
You may place library facilities that are a work based on the
|
131
|
+
Library side by side in a single library together with other library
|
132
|
+
facilities that are not Applications and are not covered by this
|
133
|
+
License, and convey such a combined library under terms of your
|
134
|
+
choice, if you do both of the following:
|
135
|
+
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
137
|
+
on the Library, uncombined with any other library facilities,
|
138
|
+
conveyed under the terms of this License.
|
139
|
+
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
141
|
+
is a work based on the Library, and explaining where to find the
|
142
|
+
accompanying uncombined form of the same work.
|
143
|
+
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
145
|
+
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
148
|
+
versions will be similar in spirit to the present version, but may
|
149
|
+
differ in detail to address new problems or concerns.
|
150
|
+
|
151
|
+
Each version is given a distinguishing version number. If the
|
152
|
+
Library as you received it specifies that a certain numbered version
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
154
|
+
applies to it, you have the option of following the terms and
|
155
|
+
conditions either of that published version or of any later version
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
160
|
+
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
164
|
+
permanent authorization for you to choose that version for the
|
165
|
+
Library.
|
data/README.md
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
# MExiCo
|
2
|
+
|
3
|
+
## Introduction
|
4
|
+
|
5
|
+
MExiCo (short for "Multimodal Experiment Corpora") is a library for the
|
6
|
+
modeling and management of large, heterogeneous data collections from
|
7
|
+
the field of linguistics, psycholinguistics, and related disciplines.
|
8
|
+
|
9
|
+
Its central organising unit is the **Corpus** class which allows researchers to bundle resources from an experiment with related background data, conceptual data, and metadata.
|
10
|
+
|
11
|
+
## Last Changes
|
12
|
+
|
13
|
+
## 0.0.9
|
14
|
+
|
15
|
+
Completed on February 11 2014.
|
16
|
+
|
17
|
+
+ **#94**: Added implementation of constraints, and specs and assets for testing or debugging constraints.
|
18
|
+
+ **#150**: Created a first version of the import and export interface.
|
19
|
+
+ **#152**: Importers for Praat TextGrid and ShortTextGrid formats are now integrated.
|
20
|
+
+ **#153**: Completed first implementation of ELAN EAF import (still incomplete).
|
21
|
+
+ **#215**: The library now has flexible accessors for scales, layers, and items.
|
22
|
+
|
23
|
+
### 0.0.8
|
24
|
+
|
25
|
+
Completed on July 21 2013.
|
26
|
+
|
27
|
+
+ **Layer Connectors**: Added LayerConnector model class
|
28
|
+
+ **Example files compliant with schema**: Changed example files so they are working with the new schema files
|
29
|
+
+ **Add necessity of attributes in corpus schema file**: Improved Mexico schema file by adding information on which attributes are required and which optional
|
30
|
+
+ **Refactor file format (FiESTA instead of ToE)**: Changed occurrences of the old name 'toe' into 'fiesta'.
|
31
|
+
+ **Missing constructors**: Added constructor methods that were missing
|
32
|
+
+ **Create repo for schema**: Added a separate repo for the schema files.
|
33
|
+
+ **Basic RDF representations**: Several model files can now be exported to RDF using the POSEIdON gem.
|
34
|
+
|
35
|
+
### 0.0.7
|
36
|
+
|
37
|
+
Completed on 13 May 2013.
|
38
|
+
|
39
|
+
+ **Method stubs**: Added method stubs for info and retrieval of URLs and LocalFiles
|
40
|
+
+ **Additional documentation**: Replaced template documentation with meaningful information
|
41
|
+
|
42
|
+
### 0.0.6
|
43
|
+
|
44
|
+
Completed on 20 Mar 2013.
|
45
|
+
|
46
|
+
+ **Yard compatible, complete documentation**: Completed yardoc-compatible documentation for all code components
|
47
|
+
|
48
|
+
### 0.0.5
|
49
|
+
|
50
|
+
Completed on 22 Feb 2013.
|
51
|
+
|
52
|
+
+ **Annotation microstructure**: Created code for all subcomponents of this first version of the toe microstructure.
|
53
|
+
+ **Atomic data structures**: Selected appropriate classes for the atomic data structures
|
54
|
+
+ **Scale sets, scales, points, intervals**: Created model, test data and specs for scales and scale links.
|
55
|
+
+ **Events**: Created model, test data and specs for events, which are now called items.
|
56
|
+
+ **Layers and layer links**: Created model, test data and specs for layers and layer links (connectors postponed to later version)
|
57
|
+
+ **Event links**: Created model, test data and specs for event links
|
58
|
+
|
59
|
+
### 0.0.4
|
60
|
+
|
61
|
+
Completed on 17 Feb 2013.
|
62
|
+
|
63
|
+
+ **Internal Links**: implemented initial version for internal links
|
64
|
+
+ **Binary, first version**: Implemented first version of gem executable.
|
65
|
+
+ **Binary subcommand: info**: Subcommand "info" is implemented in a first version
|
66
|
+
|
67
|
+
### 0.0.3
|
68
|
+
|
69
|
+
Completed on 15 Feb 2013.
|
70
|
+
|
71
|
+
+ **File system integration**: Resource Objects now have first versions of local files and urls.
|
72
|
+
+ **ResourceFile model**: Model ResourceFile was rejected and is superseded by LocalFile and URL objects.
|
73
|
+
+ **Schema for storage paths**: Relative paths are now resolved based on the corpus home folder.
|
74
|
+
|
75
|
+
### 0.0.2
|
76
|
+
|
77
|
+
Completed on 15 Jan 2013.
|
78
|
+
|
79
|
+
+ **Resource model**: Created first, minimal version of resource model
|
80
|
+
+ **Participant Role model**: Created first, minimal model for release notes.
|
81
|
+
+ **Media Types**: Created first media types (video, audio, other), along with collection helpers.
|
82
|
+
|
83
|
+
### 0.0.1
|
84
|
+
|
85
|
+
Completed on 5 Dec 2012.
|
86
|
+
|
87
|
+
+ **Create fundamental gem structure**: Created the basic gem structure and initial Gemfile entries for the library.
|
88
|
+
+ **Decide upon a license**: Decided to use the LGPL as license.
|
89
|
+
+ **Implement basic Nokogiri XML read and write functionality for XML Corpus Engine**: Chose ROXML (based on Nokogiri) for XML (de)serialisation
|
90
|
+
|
91
|
+
|
92
|
+
## Contributing to mexico
|
93
|
+
|
94
|
+
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
95
|
+
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
96
|
+
- Fork the project
|
97
|
+
- Start a feature/bugfix branch
|
98
|
+
- Commit and push until you are happy with your contribution
|
99
|
+
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
100
|
+
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
101
|
+
|
102
|
+
## Copyright
|
103
|
+
|
104
|
+
Copyright (c) 2012-2014 Peter Menke, SFB 673, Universität Bielefeld.
|
105
|
+
|
106
|
+
MExiCo is free software: you can redistribute it and/or modify
|
107
|
+
it under the terms of the **GNU Lesser General Public License** as
|
108
|
+
published by the Free Software Foundation, either version 3 of
|
109
|
+
the License, or (at your option) any later version.
|
110
|
+
|
111
|
+
MExiCo is distributed in the hope that it will be useful,
|
112
|
+
but **WITHOUT ANY WARRANTY**; without even the implied warranty of
|
113
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
114
|
+
GNU Lesser General Public License for more details.
|
115
|
+
|
116
|
+
See LICENSE.txt for further details.
|
data/Rakefile
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "mexico"
|
18
|
+
gem.homepage = "http://github.com/sfb673/mexico"
|
19
|
+
gem.license = "LGPL Version 3"
|
20
|
+
gem.summary = %Q{MExiCo is a library and API for the management of multimodal experimental corpora.}
|
21
|
+
gem.description = %Q{MExiCo is a library and API for the management of multimodal experimental corpora.}
|
22
|
+
gem.email = "pmenke@googlemail.com"
|
23
|
+
gem.authors = ["Peter Menke"]
|
24
|
+
gem.executables = ['mexico']
|
25
|
+
# dependencies defined in Gemfile
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
28
|
+
|
29
|
+
require 'rake/testtask'
|
30
|
+
Rake::TestTask.new(:test) do |test|
|
31
|
+
test.libs << 'lib' << 'test'
|
32
|
+
test.pattern = 'test/**/test_*.rb'
|
33
|
+
test.verbose = true
|
34
|
+
end
|
35
|
+
|
36
|
+
#require 'rcov/rcovtask'
|
37
|
+
#Rcov::RcovTask.new do |test|
|
38
|
+
# test.libs << 'test'
|
39
|
+
# test.pattern = 'test/**/test_*.rb'
|
40
|
+
# test.verbose = true
|
41
|
+
# test.rcov_opts << '--exclude "gems/*"'
|
42
|
+
#end
|
43
|
+
|
44
|
+
#require 'cucumber/rake/task'
|
45
|
+
#Cucumber::Rake::Task.new(:features)
|
46
|
+
|
47
|
+
task :default => :test
|
48
|
+
|
49
|
+
require 'rspec/core/rake_task'
|
50
|
+
RSpec::Core::RakeTask.new('spec') do |t|
|
51
|
+
# t.rspec_opts = '-f html -o assets/spec.html'
|
52
|
+
t.rspec_opts = '-f nested'
|
53
|
+
end
|
54
|
+
|
55
|
+
require 'yard'
|
56
|
+
# @todo require also my custom method things
|
57
|
+
require File.join(File.dirname(__FILE__), "assets", "helpers", "roxml_attribute_handler.rb")
|
58
|
+
require File.join(File.dirname(__FILE__), "assets", "helpers", "id_ref_handler.rb")
|
59
|
+
require File.join(File.dirname(__FILE__), "assets", "helpers", "collection_ref_handler.rb")
|
60
|
+
YARD::Rake::YardocTask.new :doc do |t|
|
61
|
+
t.options = %w(--private --protected --charset utf-8)
|
62
|
+
end
|
63
|
+
|
64
|
+
task :undoc do |t|
|
65
|
+
YARD::CLI::Stats.run('--list-undoc')
|
66
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.9
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<Corpus identifier="example-corpus" name="Example Corpus">
|
3
|
+
<Description>This is an example corpus.</Description>
|
4
|
+
<Participants>
|
5
|
+
<Participant identifier="vp01" name="VP01" participant_role_id="naive"/>
|
6
|
+
</Participants>
|
7
|
+
<Designs>
|
8
|
+
<Design identifier="example-design" name="Example Design">
|
9
|
+
<Description>Design Description</Description>
|
10
|
+
<DesignComponent identifier="example-design-component" name="Example Design Component" media_type_id="video"/>
|
11
|
+
</Design>
|
12
|
+
<Design identifier="other-design" name="Other Design">
|
13
|
+
<Description>Yet another design</Description>
|
14
|
+
</Design>
|
15
|
+
</Designs>
|
16
|
+
<Trials>
|
17
|
+
<Trial identifier="example-trial" name="Example Trial" cue="V0?1" runningnumber="1" design_id="example-design">
|
18
|
+
<Description>Trial Description</Description>
|
19
|
+
</Trial>
|
20
|
+
</Trials>
|
21
|
+
<Resources>
|
22
|
+
<Resource identifier="example-resource" name="Example Resource">
|
23
|
+
<Description>Resource Description</Description>
|
24
|
+
</Resource>
|
25
|
+
</Resources>
|
26
|
+
</Corpus>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<FiestaDocument>
|
3
|
+
<ScaleSet>
|
4
|
+
<Scale id="timeline01" name="Timeline" unit="s"/>
|
5
|
+
<Scale id="spatial_x" name="Spatial coordinate X" unit="pixel"/>
|
6
|
+
<Scale id="spatial_y" name="Spatial coordinate Y" unit="pixel"/>
|
7
|
+
</ScaleSet>
|
8
|
+
<LayerSet>
|
9
|
+
<Layer id="chats" name="Chats"/>
|
10
|
+
<Layer id="sentences" name="Sentences"/>
|
11
|
+
<Layer id="politeness" name="Politeness"/>
|
12
|
+
<LayerConnector id="chats_to_sentences" source="chats" target="sentences" role="parent-child"/>
|
13
|
+
<LayerConnector id="sentences_to_politeness" source="sentences" target="politeness" role="parent-child"/>
|
14
|
+
</LayerSet>
|
15
|
+
<ItemSet></ItemSet>
|
16
|
+
</FiestaDocument>
|