Skip to content

togodx/togodx-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TogoDX path

v2023-07

ID links

ID links (with attributes)

v2022-11

ID links

Table of ID links

ID links (with attributes)

Table of attributes

Paths (JSON)

v1.1

ID links

Table of ID links

ID links (with attributes)

ID links (with ID counts)

Table of attributes

Data preparation

Get paths

$ ./bin/js/paths.js > json/paths.json

Create graph data

$ ./bin/create_graph.pl json/paths.json > graph/dataset.pg
$ ./bin/create_graph.pl -l json/paths.json > tsv/dataset-links.tsv
$ ./bin/create_graph.pl -a json/paths.json > graph/dataset-attr.pg

Optional:

Count IDs

$ ./bin/js/attributes-count-ids.js data/json/ > tsv/attribute-count-ids.tsv
$ ./bin/js/attributes-count-ids.js data/json/ -d > tsv/dataset-count-ids.tsv
$ ./bin/js/attributes-count-ids.js data/json/ -d -j > json/dataset-count-ids.json
$ ./bin/js/attributes-count-ids.js data/json/ -l > tsv/ids.tsv
$ ./bin/id-pairs-count.pl data/relation/output/ > tsv/id-pairs-count.tsv
$ ./bin/js/id-pairs-count-tsv2json.js tsv/id-pairs-count.tsv > json/id-pairs-count.tsv.json

Add ID counts

$ ./bin/create_graph.pl -c tsv/dataset-count-ids.tsv > graph/dataset-count.pg

Add attributes

$ cat graph/dataset-count.pg =(./bin/js/attributes-pg.js) > graph/dataset-attr.pg

Creating supplementary tables

$ ./bin/js/attributes-list.js data/json/ > tsv/attribute-list.tsv
$ ./bin/js/attributes-description.js > tsv/attribute-description.tsv

Test modified paths

Edit json/paths-modified.json

Update graph:

$ ./bin/create_graph.pl json/paths-modified.json > graph/dataset-modified.pg
$ ./bin/create_graph.pl -a json/paths-modified.json > graph/dataset-attr-modified.pg

Update tsv (to be referred by html):

$ ./bin/create_graph.pl -l json/paths-modified.json > tsv/dataset-links-modified.tsv

Test: