Here we demonstrate how the EulerX toolkit developed by the EulerProject team allows to solve the taxonomy alignment problem [1, 2]. A python script exercises commmands that make up demos on example taxonomy alignment problems. Additionally, this repository stores the correct outputs of the demos for the purpose of testing EulerX development efforts.
3. Replay two demos (vary reasoner on the same taxonomy alignment problem) and compare their outputs
Python 2.7.x, EulerX
Overall sturcture of the repository:
Directory | Description |
---|---|
./commands/{commands} | Commands files containing a list of labeled EulerX commands and their documentation yaml format. |
./examples/{example}/taxonomies.txt | Input taxonomies and corresponding articulations sets |
./examples/{example}/{articulations}/articulations.txt | Input articulations for an example |
./output/{commands}/{example}/{articulations}/{reasoner}/* | Output produced by commands using given example input taxonomies, articulations and reasoner as applicable |
./EULER_WORKFLOW.md | Documentation of the internal workflows of EulerX |
./README.md | The documentation of this repository |
./compare | Python script to compare the output between demos locally, or with the stored output of the same demo in the repository HEAD. |
./compare_reasoner | Python script to compare the reasoner output between demos locally |
./run | Python script to replay a demo |
./run_all | Python script to replay a set of demos |
input_viusalization:
command: euler2 show iv taxonomies.txt articulations.txt
doc: https://github.com/EulerProject/EulerX/wiki/Euler-Reasoning-Tool#consistent-example-abstract4
align:
command: euler2 align taxonomies.txt articulations.txt
doc: https://github.com/EulerProject/EulerX/wiki/Euler-Reasoning-Tool#general-commands
show_possible_worlds:
command: euler2 show pw
doc: https://github.com/EulerProject/EulerX#5-show-the-possible-worlds
taxonomy 1997 D’Abrera
(Amauris_damocles)
(Amauris_hyalites Amauris_hyalites_subsp_hyalites Amauris_hyalites_subsp_makuyensis)
taxonomy 1995 AckeryEtAl
(Amauris_damocles Amauris_damocles_subsp_damocles Amauris_damocles_subsp_hyalites Amauris_damocles_subsp_makuyensis)
articulation 1997-1995 D’Abrera-AckeryEtAl
[1997.Amauris_damocles equals 1995.Amauris_damocles_subsp_damocles]
[1997.Amauris_hyalites_subsp_hyalites is_included_in 1995.Amauris_damocles_subsp_hyalites]
[1997.Amauris_hyalites_subsp_makuyensis equals 1995.Amauris_damocles_subsp_makuyensis]
Runs a demo contained in this repository
Usage: run [OPTIONS]
Options:
--commands TEXT Choose one of the available commands files
(./commands/{commands})
--example TEXT Choose one of the available examples
(./examples/{example})
--articulations TEXT Choose one of the available example articulations
(./examples/{example}/{articulations}
--target TEXT Choose between 'all', a list ('command1,command2,...')
or a sequence ('command1-command3') of command labels
or 'clean'. You can find the command labels in the
selected commands file. Default: all
--reasoner TEXT Choose between 'dlv' and 'gringo'
--help Show this message and exit.
Runs all demos contained in this repository, meeting the options provided.
E.g.
run_all --commands=align,pipeline --examples=oaks
executes
run --commands=align --example=oaks --articulations=alice_articulations --reasoner=dlv
...
run --commands=align --example=oaks --articulations=gaby_articulations --reasoner==dlv
run --commands=align --example=oaks --articulations=alice_articulations --reasoner=gringo
...
run --commands=align --example=oaks --articulations=gaby_articulations --reasoner=gringo
run --commands=pipeline --example=oaks --articulations=alice_articulations --reasoner=dlv
...
run --commands=pipeline --example=oaks --articulations=gaby_articulations --reasoner=dlv
run --commands=pipeline --example=oaks --articulations=alice_articulations --reasoner=gringo
...
run --commands=pipeline --example=oaks --articulations=gaby_articulations --reasoner=gringo
Usage: run_all [OPTIONS]
Options:
--commands TEXT Provide a comma separated list from the available
commands files (./commands/{commands})
--examples TEXT Provide a comma separated list from the available
examples (./examples/{example})
--articulations TEXT Provide a comma separated list from the available
example articulations
(./examples/{example}/{articulations}
--target TEXT Choose between 'all', a list ('command1,command2,...')
or a sequence ('command1-command3') of command labels
or 'clean'. Default: all
--reasoners TEXT Provide a comma separated list from the available
reasoners: 'dlv' and 'gringo'
--help Show this message and exit.
Compares the output between demos locally, or with the stored output of the same demo in the repository HEAD.
Usage: compare [OPTIONS]
Options:
--commands TEXT Provide a comma separated list from the available
commands files (./commands/{commands})
--examples TEXT Provide a comma separated list from the available
examples (./examples/{example})
--articulations TEXT Provide a comma separated list from the available
example articulations
(./examples/{example}/{articulations}
--reasoners TEXT Provide a comma separated list from the available
reasoners: 'dlv' and 'gringo'
--compare_gold_standard Compare output of demo to corresponding output at
repository HEAD
--help Show this message and exit.
Compares the reasoneroutput between demos locally
Usage: compare_reasoner [OPTIONS]
Options:
--commands TEXT Choose one of the available commands files
(./commands/{commands})
--example TEXT Choose one of the available examples
(./examples/{example})
--articulations TEXT Choose one of the available example articulations
(./examples/{example}/{articulations}
--help Show this message and exit.