Skip to content

Commit 979ee2a

Browse files
authored
set the doc structure (#123)
1 parent 380c914 commit 979ee2a

12 files changed

+31
-13
lines changed

README.md

+29-10
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,35 @@ custom formats) in streaming fashion and transforms data into desired JSON outpu
99

1010
Golang Version: 1.14
1111

12-
## Getting Started
12+
## Documentation
1313

14-
Follow the tutorial [Getting Started](./doc/gettingstarted.md) to write your first omniparser schema.
14+
Docs:
15+
- [Getting Started](./doc/gettingstarted.md): a tutorial for writing your first omniparser schema.
16+
- [IDR](./doc/idr.md): in-memory data representation of ingested data for omniparser.
17+
- [XPath Based Data Extraction and Filtering](./doc/xpath.md): xpath queries are essential to omniparser schema writing.
18+
Learn the concept and tricks in depth.
19+
- [Use of `custom_func`, Specially `javascript`](./doc/use_of_custom_funcs.md): An in depth look of how `custom_func`
20+
is used, specially the all mighty `javascript` (and `javascript_with_context`).
21+
- [CSV Schema in Depth](./doc/csv_in_depth.md): everything about schemas for CSV input.
22+
- [Fixed-Length Schema in Depth](./doc/fixedlength_in_depth.md): everything about schemas for fixed-length (e.g. TXT)
23+
input
24+
- [JSON Schema in Depth](./doc/json_in_depth.md): everything about schemas for JSON input.
25+
- [XML Schema in Depth](./doc/xml_in_depth.md): everything about schemas for XML input.
26+
- [EDI Schema in Depth](./doc/edi_in_depth.md): everything about schemas for EDI input.
27+
- [Programmability](./doc/programmability.md): Advanced techniques for using omniparser (or some of its components) in
28+
your code.
29+
30+
References:
31+
- [Custom Functions](./doc/customfuncs.md): a complete reference of all built-in custom functions.
32+
33+
Examples:
34+
- [CSV Examples](extensions/omniv21/samples/csv)
35+
- [Fixed-Length Examples](extensions/omniv21/samples/fixedlength)
36+
- [JSON Examples](extensions/omniv21/samples/json)
37+
- [XML Examples](extensions/omniv21/samples/xml).
38+
- [EDI Examples](extensions/omniv21/samples/edi).
39+
- [Custom File Format](extensions/omniv21/samples/customfileformats/jsonlog)
40+
- [Custom Transform](extensions/omniv21/samples/customparse)
1541

1642
## Online Playground
1743

@@ -20,13 +46,6 @@ for trying out schemas and inputs, yours or existing samples, to see how ingesti
2046

2147
![](./cli/cmd/web/playground-demo.gif)
2248

23-
## More Examples
24-
- [csv examples](extensions/omniv21/samples/csv)
25-
- [fixed-length examples](extensions/omniv21/samples/fixedlength)
26-
- [json examples](extensions/omniv21/samples/json)
27-
- [xml examples](extensions/omniv21/samples/xml).
28-
- [edi examples](extensions/omniv21/samples/edi).
29-
3049
## Why
3150
- No good ETL transform/parser library exists in Golang.
3251
- Even looking into Java and other languages, choices aren't many and all have limitations:
@@ -57,7 +76,7 @@ situations.
5776
- A number of package renaming.
5877
- Added CSV file format support in omniv2 handler.
5978
- Introduced IDR node cache for allocation recycling.
60-
- Introduced [IDR](./idr/README.md) for in-memory data representation.
79+
- Introduced [IDR](./doc/idr.md) for in-memory data representation.
6180
- Added trie based high performance `times.SmartParse`.
6281
- Command line interface (one-off `transform` cmd or long-running http `server` mode).
6382
- `javascript` engine integration as a custom_func.

doc/csv_in_depth.md

Whitespace-only changes.

doc/edi_in_depth.md

Whitespace-only changes.

doc/fixedlength_in_depth.md

Whitespace-only changes.

doc/gettingstarted.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ of the parser, we need to deviate from the schema writing for a moment...
212212

213213
### How Each Ingested Data Record Is Represented in Memory
214214

215-
Short answer: [IDR](../idr/README.md).
215+
Short answer: [IDR](./idr.md).
216216

217217
IDR is an in-memory data representation format used by omniparser for the ingested data from
218218
all input formats. If you're interested in more technical details, check the IDR doc mentioned above.
File renamed without changes.

doc/json_in_depth.md

Whitespace-only changes.

doc/programmability.md

Whitespace-only changes.

doc/use_of_custom_funcs.md

Whitespace-only changes.

doc/xml_in_depth.md

Whitespace-only changes.

doc/xpath.md

Whitespace-only changes.

extensions/omniv21/samples/csv/1_weather_data_csv.schema.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@
6868
{ "const": "Math.floor((temp_c * 9 / 5 + 32) * 10) / 10" },
6969
{ "const": "temp_c" }, { "xpath": ".", "type": "float" }
7070
]
71-
},
72-
"type": "float"
71+
}
7372
},
7473
"wind_acronym_mapping": {
7574
"custom_func": {

0 commit comments

Comments
 (0)