<commit_before>EliasDB Tutorial
================
The following text will give you an overview of the main features of EliasDB. It shows how to fill the datastore with a simple graph structure and then run queries against this data.

The tutorial assumes you have downloaded and started EliasDB with an empty datastore.

Using the Terminal
------------------
By default EliasDB starts on port 9090 and creates a basic terminal in the webfolder (/web/db/term.html). Assuming you started EliasDB on the locally, point your browser to:

https://localhost:9090/db/term.html

The generated default key and certificate for https are self-signed which should give a security warning in the browser. After accepting you should see a prompt.t

![](https://github.com/krotik/eliasdb/blob/master/doc/tutorial1.png?raw=true)

You can get an overview of all available command by typing:

help

Pressing just enter inserts a line break. Pressing Ctrl+Enter submits a command. Run the "info" command and confirm that the datastore is empty.

If you open the browser's development toolbar you can see how the terminal is communicating with the REST API.

Storing Data
------------
The examples in this tutorial are based on an example dataset which contains information on the London tube. To store it type:

store

into the terminal and press enter. Copy now the contents of the file [tutorial_data.json](http://) into the terminal - either drag the file onto the terminal input or copy/paste its contents. 

![](https://github.com/krotik/eliasdb/blob/master/doc/tutorial2.png?raw=true)

After submitting the request you should see a message saying "OK". Running now the "info" should show that the datastore is now filled with data:

{ 
    "edge_counts": { 
        "Connection": 354, 
        "StationOnLine": 417 
    }, 
    "edge_kinds": [ 
        "Connection", "StationOnLine" ], 
    "node_counts": { 
        "Line": 13, 
        "Station": 306 
    }, 
    "node_kinds": [ "Line", "Station" ], <commit_msg>Update tutorial.md<commit_after>EliasDB Tutorial
================
The following text will give you an overview of the main features of EliasDB. It shows how to fill the datastore with a simple graph structure and then run queries against this data.

The tutorial assumes you have downloaded and started EliasDB with an empty datastore.

Using the Terminal
------------------
By default EliasDB starts on port 9090 and creates a basic terminal in the webfolder (/web/db/term.html). Assuming you started EliasDB on the locally, point your browser to:

https://localhost:9090/db/term.html

The generated default key and certificate for https are self-signed which should give a security warning in the browser. After accepting you should see a prompt.t

![](https://github.com/krotik/eliasdb/blob/master/doc/tutorial1.png?raw=true)

You can get an overview of all available command by typing:

help

Pressing just enter inserts a line break. Pressing Ctrl+Enter submits a command. Run the "info" command and confirm that the datastore is empty.

If you open the browser's development toolbar you can see how the terminal is communicating with the REST API.

Storing Data
------------
The examples in this tutorial are based on an example dataset which contains information on the London tube. To store it type:

store

into the terminal and press enter. Copy now the contents of the file [tutorial_data.json](https://github.com/krotik/eliasdb/blob/master/doc/tutorial_data.json?raw=true) into the terminal - either drag the file onto the terminal input or copy/paste its contents. 

![](https://github.com/krotik/eliasdb/blob/master/doc/tutorial2.png?raw=true)

After submitting the request you should see a message saying "OK". Running now the "info" should show that the datastore is now filled with data:

{ 
    "edge_counts": { 
        "Connection": 354, 
        "StationOnLine": 417 
    }, 
    "edge_kinds": [ 
        "Connection", "StationOnLine" ], 
    "node_counts": { 
        "Line": 13, 
        "Station": 306 
    }, 
    "node_kinds": [ "Line", "Station" ], 
{'fraction_non_alphanumeric': 0.09345106696100074, 'fraction_numerical': 0.010301692420897719, 'mean_word_length': 3.5871766029246346, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4774704', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1080, 'n_words': 513}