Skip to content

Commit 4f0d3fb

Browse files
Release 0.1.0 (#5)
* bump version to release 0.1.0 * update readme * minor update
1 parent d1557ba commit 4f0d3fb

File tree

14 files changed

+73
-36
lines changed

14 files changed

+73
-36
lines changed

README.md

Lines changed: 41 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,26 @@
33
## ZenML
44

55
**ZenML** stands for **Zen Metrics Language**. It is a **YAML-based descriptive language** that is used
6-
by [Kyligence Zen](https://zen.kyligence.io/)
7-
to define metrics, dimensions, and the underlying relational datasets. Think of ZenML as a semantic layer that promotes
8-
technical data into business data, like a bridge that enables non-technical users to understand, explore, and get
9-
insight out of traditional data warehouses. ZenML encourages the separation of data modeling and data visualization, and
10-
facilitates a central definition of business data language for all downstream data consumers.
6+
by [Kyligence Zen](https://zen.kyligence.io/) to define `metrics`, `dimensions`, and the `underlying relational datasets`. Think of ZenML as a semantic layer that promotes technical
7+
data into business data, like a bridge that enables non-technical users to understand, explore, and get insight out of
8+
traditional data warehouses. ZenML encourages the separation of data modeling and data visualization, and facilitates a
9+
central definition of business data language for all downstream data consumers.
1110

12-
Kyligence Zen uses ZenML to store all the metric definitions and related data models that user creates. And a variety of
13-
data services are then provided around ZenML, including
11+
Kyligence Zen uses ZenML to store all metric definitions and their relations and mappings to relational data models.
12+
With this metadata, Kyligence Zen is able to automatically translate all kinds of business requests and tasks into SQL
13+
executions. A variety of data services are then provided around ZenML, including
1414

15-
- SQL based data queries and BI integrations, via open APIS like JDBC / ODBC / RestAPI
16-
- Metrics templating of business domain know-how
17-
- Goal management, progress tracking, and alerting
15+
- SQL based metric queries and BI integrations, via open APIs like JDBC / ODBC / RestAPI
16+
- Metric templates of business domain know-hows
1817
- Causal analysis, anomaly detection
18+
- Goal management, progress tracking, and alerting
1919
- Metrics data linage
2020
- And more...
2121

22-
![arch](docs/images/architecture.png)
22+
- You can also maintain ZenML/YAML files in git for version control, and publish (or rollback to) a certain version of
23+
metric definitions to Kyligence Zen service for business operation.
24+
25+
More details please refer to [ZenML Introduction](https://zen-docs.kyligence.io/en/appendix/zenml-reference)
2326

2427
## Kyligence Zen
2528

@@ -38,12 +41,27 @@ Try out Kyligence Zen today and take control of your metrics like never before!
3841
Visit [zen.kyligence.io](https://zen.kyligence.io/) to get started
3942
for free.
4043

41-
## Prerequisite
44+
## Kyligence ZenML Toolkit
45+
46+
Kyligence ZenML Toolkit is a toolkit which help users to extract metrics metadata from any type of file, includes but
47+
not only:
48+
49+
- **Tableau (Implemented)**
50+
- workbook file (`.twb`)
51+
- datasource file(`.tds`)
52+
- **Excel file(coming soon)**
53+
- `.xlsx`
54+
- **SQL file(coming soon)**
55+
- `.sql`
56+
57+
![arch](docs/images/architecture.png)
58+
59+
### Prerequisite
4260

4361
- Supported OS: `Linux` / `MacOS`
4462
- Supported JDK version: `JDK17`
4563

46-
## Download
64+
### Download
4765

4866
Please go to [Release Page](https://github.com/Kyligence/zen-ml-toolkit/releases) to download.
4967

@@ -63,7 +81,7 @@ After downloaded package, extract the tar file
6381
$ tar -zxvf Kyligence-ZenML-Toolkit-{version}.tar.gz
6482
```
6583

66-
## Usage
84+
### Usage
6785

6886
in Terminal
6987

@@ -76,18 +94,19 @@ $ sh ./bin/zen.sh -i <arg> -o <arg>
7694
generated
7795
```
7896

79-
## Example
97+
### Example
8098

81-
### Convert tableau tds file to ZenML file
99+
#### Convert tableau tds file to ZenML file
82100

83101
```
84-
$ cd Kyligence-ZenML-Toolkit-{version}
85-
$ sh ./bin/zen.sh -i ./samples/tableau/superstore.sh -o ./samples/tableau/
102+
# please replace ${Kyligence-ZenML-Toolkit-{version}} with absolute path
103+
$ cd ${Kyligence-ZenML-Toolkit-{version}}
104+
$ sh ./bin/zen.sh -i ${Kyligence-ZenML-Toolkit-{version}}/samples/superstore.sh -o ${Kyligence-ZenML-Toolkit-{version}}/samples/
86105
```
87106

88107
You will get a `superstore.zen.yml` file in folder `Kyligence-ZenML-Toolkit-{version}/samples`
89108

90-
### Import ZenML to Kyligence Zen
109+
#### Import ZenML to Kyligence Zen
91110

92111
1. Login into [Kyligence Zen](https://zen.kyligence.io/)
93112
2. Go to **Data**, click **New**, Choose **Table**
@@ -107,6 +126,9 @@ You will get a `superstore.zen.yml` file in folder `Kyligence-ZenML-Toolkit-{ver
107126

108127
Welcome to contribute, you can convert any files which contains metrics metadata to a ZenML file.
109128

129+
- Please note that this project use **JDK17**
130+
- For ZenML spec, please refer to [ZenML Introduction](https://zen-docs.kyligence.io/en/appendix/zenml-reference)
131+
110132
## Contributors
111133

112134
<a href="https://github.com/Kyligence/zen-ml-toolkit/graphs/contributors">

build/bin/zen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
#
43
# Licensed to the Apache Software Foundation (ASF) under one or more
54
# contributor license agreements. See the NOTICE file distributed with
@@ -17,6 +16,7 @@
1716
# limitations under the License.
1817
#
1918

19+
2020
function main() {
2121
# init
2222
source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/../sbin/header.sh "$@"

build/sbin/bootstrap.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
#
43
# Licensed to the Apache Software Foundation (ASF) under one or more
54
# contributor license agreements. See the NOTICE file distributed with

build/sbin/check-1000-os.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
3-
#!/usr/bin/env bash
4-
1+
#!/bin/bash
52
#
63
# Licensed to the Apache Software Foundation (ASF) under one or more
74
# contributor license agreements. See the NOTICE file distributed with

build/sbin/check-1100-java.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
2-
#!/usr/bin/env bash
3-
1+
#!/bin/bash
42
#
53
# Licensed to the Apache Software Foundation (ASF) under one or more
64
# contributor license agreements. See the NOTICE file distributed with
@@ -18,6 +16,7 @@
1816
# limitations under the License.
1917
#
2018

19+
2120
#title=Checking Java Version
2221

2322
source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh

build/sbin/check-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/env bash
2-
1+
#!/bin/bash
32
#
43
# Licensed to the Apache Software Foundation (ASF) under one or more
54
# contributor license agreements. See the NOTICE file distributed with
@@ -17,6 +16,7 @@
1716
# limitations under the License.
1817
#
1918

19+
2020
source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh
2121

2222
mkdir -p ${ZEN_HOME}/logs

build/sbin/header.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
#
43
# Licensed to the Apache Software Foundation (ASF) under one or more
54
# contributor license agreements. See the NOTICE file distributed with
@@ -17,6 +16,7 @@
1716
# limitations under the License.
1817
#
1918

19+
2020
# source me
2121

2222
function isValidJavaVersion() {

build/sbin/rotate-log.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
#
43
# Licensed to the Apache Software Foundation (ASF) under one or more
54
# contributor license agreements. See the NOTICE file distributed with
@@ -17,6 +16,7 @@
1716
# limitations under the License.
1817
#
1918

19+
2020
source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh
2121

2222
function checkFileOccupied() {

build/sbin/setenv.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
#
43
# Licensed to the Apache Software Foundation (ASF) under one or more
54
# contributor license agreements. See the NOTICE file distributed with
@@ -16,6 +15,8 @@
1615
# See the License for the specific language governing permissions and
1716
# limitations under the License.
1817
#
18+
mitations under the License.
19+
#
1920

2021
source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh $@
2122

build/scripts/download-jdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
#
43
# Licensed to the Apache Software Foundation (ASF) under one or more
54
# contributor license agreements. See the NOTICE file distributed with
@@ -17,6 +16,7 @@
1716
# limitations under the License.
1817
#
1918

19+
2020
#JDK Download Page: https://jdk.java.net/archive/
2121

2222
root_dir=$(cd -P -- "$(dirname -- "$0")/../.." && pwd -P)

0 commit comments

Comments
 (0)