https://github.com/yahoojapan/yosegi-tools
https://github.com/yahoojapan/yosegi-tools
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yahoojapan/yosegi-tools
- Owner: yahoojapan
- License: apache-2.0
- Created: 2019-01-23T07:04:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T03:45:44.000Z (over 1 year ago)
- Last Synced: 2025-06-08T16:02:51.224Z (5 months ago)
- Language: Java
- Size: 192 KB
- Stars: 3
- Watchers: 5
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Yosegi Hive
This is [Yosegi](https://github.com/yahoojapan/yosegi) tools.
# License
This project is on the [Apache License](https://www.apache.org/licenses/LICENSE-2.0).
Please treat this project under this license.
# How do I get started?
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](docs/command_list.md) for details.
# How to contribute
We welcome to join this project widely.
## Maven
Yosegi Hive sources can get from the Maven repository.
## Compile sources
Compile each source following instructions.
$ mvn clean package