Skip to content

Commit 482870e

Browse files
authored
Merge pull request #18 from haskell-works/update-readme
Update README
2 parents 2bd39b8 + 30ee1ad commit 482870e

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

README.md

+28-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,44 @@
11
# hw-json-simd
22

3-
## Using on the command line
3+
This library/tool will generate semi-indexes on JSON files as per the paper:
4+
[Semi-Indexing Semi-Structured Data in Tiny Space](http://www.di.unipi.it/~ottavian/files/semi_index_cikm.pdf).
5+
6+
## The command line tool
7+
8+
For a given JSON file, the `hw-json-simd` it will generate two semi-index
9+
files, which both together can be loaded into a single in-memory semi-index.
10+
11+
The semi-index files can be generated using two methods, which will be called
12+
standard and simple, which correspond to sections 4 and 5 of the
13+
[Semi-Indexing Semi-Structured Data in Tiny Space](http://www.di.unipi.it/~ottavian/files/semi_index_cikm.pdf)
14+
paper respectively.
15+
16+
Navigation of the JSON text using the standard index is suppored by the [`hw-json` project](https://github.com/haskell-works/hw-json) for more information. There is currently
17+
no support for navigation of the JSON text using the simple index.
18+
19+
### Using on the command line
420

521
```bash
6-
cat test.json | pv -t -e -b -a | time hw-json-simd-exe create-index \
22+
cat test.json | pv -t -e -b -a | time hw-json-simd create-index \
723
-i /dev/stdin
824
--output-ib-file test.json.ib.idx
925
--output-bp-file test.json.bp.idx
1026
--method standard
1127
```
1228

1329
```bash
14-
cat test.json | pv -t -e -b -a | time hw-json-simd-exe create-index \
30+
cat test.json | pv -t -e -b -a | time hw-json-simd create-index \
1531
-i /dev/stdin
1632
--output-ib-file test.json.ib.idx
1733
--output-bp-file test.json.bp.idx
1834
--method simple
1935
```
36+
37+
## Installation
38+
39+
### From hackage
40+
41+
```bash
42+
cabal new-install hw-json-simd
43+
```
44+

0 commit comments

Comments
 (0)