This is Yosegi tools.
This project is on the Apache License. Please treat this project under this license.
CLI is a Command Line Interface tool for using Yosegi. following tools are provided.
- bin/setup.sh # for gathering Yosegi related jars
- bin/yosegi.sh # create yosegi data, and show data
yosegi.sh needs some jars, so please create jar files before using.
$ mvn package
For preparation, get Yosegi jars and store then to proper directories.
$ bin/setup.sh # get Yosegi jars from Maven repository (bin/setup.sh -h for help)
convert JSON data to MDS format.
$ bin/yosegi.sh create -i etc/sample_json.txt -f json -o /tmp/sample.yosegi
$ bin/yosegi.sh cat -i /tmp/sample.yosegi -o '-' # show whole data
{"summary":{"total_price":550,"total_weight":412},"number":5,"price":110,"name":"apple","class":"fruits"}
{"summary":{"total_price":800,"total_weight":600},"number":10,"price":80,"name":"orange","class":"fruits"}
$ bin/yosegi.sh cat -i /tmp/sample.yosegi -o '-' -p '[ ["name"] ]' # show part of data
{"name":"apple"}
{"name":"orange"}
The tool has various functions. Please see the command list for details.
We welcome to join this project widely.
Yosegi Hive sources can get from the Maven repository.
Compile each source following instructions.
$ mvn clean package