Skip to content

Commit 94b477e

Browse files
committed
added docs
1 parent 0b86bca commit 94b477e

9 files changed

Lines changed: 37 additions & 62 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,7 @@ python run.py test.yaml
7070
- output_graph.png: Graph visualization of tasks and data flow
7171

7272
![output_graph](example/output_graph.png)
73+
74+
### Documentation
75+
76+
For detailed information, please refer to the [Documentation](https://hpci-lab.github.io/y2Graph/)

docs/src/example_images.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
### Example with Images
3+
4+
![ExampleWithImages](./assets/images.png)
5+
6+
<div style="display: flex; justify-content: center; gap: 10px; margin-top: 20px;">
7+
<a href=".readme.md" style="text-decoration: none; background-color: #006269; color: white; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: 0.3s;">← Prev</a>
8+
<a href="." style="text-decoration: none; background-color: #006269; color: white; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: 0.3s;">🏠 Home</a>
9+
<a href="installation.md" style="text-decoration: none; background-color: #006269; color: white; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: 0.3s;">Next →</a>
10+
</div>

docs/src/example_join.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11

2-
### Simple Example
2+
### Joined Example
33

4+
![ExampleJoined](./assets/joined.png)
45

56

7+
This example allows to specify multiple yaml files, and to connect the jsons into a single file, as well as creating a common graph representation. This feature uses UIDs to identify shared elements which can be connected.
8+
9+
All data files are present in the `example_join` subdirectory.
10+
11+
The files `test1.yaml` and `test2.yaml` are used as source, and the program looks for ids the inputs and outputs fields to connect as common elements.
12+
613
<div style="display: flex; justify-content: center; gap: 10px; margin-top: 20px;">
714
<a href=".readme.md" style="text-decoration: none; background-color: #006269; color: white; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: 0.3s;">← Prev</a>
815
<a href="." style="text-decoration: none; background-color: #006269; color: white; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: 0.3s;">🏠 Home</a>

docs/src/example_simple.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11

2-
### Joined Example
2+
### Simple Example
33

4+
This example allows to convert from a yaml to W3C ProvJSON and the respective graph form.
45

6+
All data files are present in the `example_simple` subdirectory.
7+
8+
The file `test.yaml` is used as source, and the program generates fist a W3C Prov JSON file, and then converts it to pdf, svg or png visualization.
9+
10+
![ExampleSimple](./assets/simple.png)
511

612
<div style="display: flex; justify-content: center; gap: 10px; margin-top: 20px;">
713
<a href=".examples.md" style="text-decoration: none; background-color: #006269; color: white; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: 0.3s;">← Prev</a>

docs/src/examples.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
A set of 5 examples are provided:
55
- [Simple](./example_simple.md)
66
- [Joined](./example_join.md)
7+
- [Images](./example_images.md)
78

89
<div style="display: flex; justify-content: center; gap: 10px; margin-top: 20px;">
910
<a href=".usage.md" style="text-decoration: none; background-color: #006269; color: white; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: 0.3s;">← Prev</a>

docs/src/usage.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11

22
### Usage
33

4+
Currently, two usage modalities are available:
5+
6+
The former simply allows to convert from a yaml to W3C ProvJSON and the respective graph form:
47

58
```bash
69
python run.py example_simple/test1.yaml example_simple/test2.yaml --join -j combined.json -o combined.pdf
10+
```
711

12+
The latter allows to specify multiple yaml files, and to connect the jsons into a single file, as well as creating a common graph representation. This feature uses UIDs to identify shared elements which can be connected.
13+
14+
```bash
815
python run.py example_simple/test.yaml -j simple.json -o simple.pdf
916
```
1017

example_join/combined.png

-136 KB
Binary file not shown.

output_graph.png

-81.4 KB
Binary file not shown.

output_prov.json

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)