<commit_before>R&Wbase-server
==============

Fuseki-based implementation of a distributed versioned triple store.

Install R&Wbase
----------------
Install the latest version of [OpenLink Virtuoso 6](https://github.com/openlink/virtuoso-opensource) first, or build it from [source](http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSMake) 

WARNING: This implementation is NOT compatible with Virtuoso 7 due to its column-store architecture.

Once Virtuoso is installed, make sure it is running.

Next, run the script `install.sh` from `install/`. Be careful, installing R&Wbase will delete all triples present in Virtuoso and change its behaviour.
The install script depends on the environment variable `RAWBASE_HOME` to be set and Virtuoso's `isql` command to be accessible. Both can also be supplied with command parameters.

The following command parameters are optional:
```
    -i The path to the Virtuoso isql application
    -h The RAWBASE_HOME folder where the source is found
    -a The address Virtuoso ODBC is running on, default localhost:1111
    -u The Virtuoso user, default dba
    -p The Virtuoso pass, default dba
```

Run R&Wbase
----------------

After R&Wbase has been installed, run it with the following command:
```
    ./rawbase-server.sh 8080
```
The argument is optional and determines the port of the server. Default 3030

To use the web interface, first copy the example configuration and update it as necessary.
```
    cp pages/rawbase/js/app/config.example.js pages/rawbase/js/app/config.js
```
<commit_msg>Add a configuration section before "Run R&Wbase"<commit_after># R&Wbase-server

Fuseki-based implementation of a distributed versioned triple store.

## Install R&Wbase

Install the latest version of [OpenLink Virtuoso 6](https://github.com/openlink/virtuoso-opensource) first, or build it from [source](http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSMake)

WARNING: This implementation is NOT compatible with Virtuoso 7 due to its column-store architecture.

Once Virtuoso is installed, make sure it is running.

Next, run the script `install.sh` from `install/`. Be careful, installing R&Wbase will delete all triples present in Virtuoso and change its behaviour.
The install script depends on the environment variable `RAWBASE_HOME` to be set and Virtuoso's `isql` command to be accessible. Both can also be supplied with command parameters.

The following command parameters are optional:

```
    -i The path to the Virtuoso isql application
    -h The RAWBASE_HOME folder where the source is found
    -a The address Virtuoso ODBC is running on, default localhost:1111
    -u The Virtuoso user, default dba
    -p The Virtuoso pass, default dba
```

## Configure R&Wbase

Before you run `rawbase-server`, there are 2 configuration files you should take a brief look at.

1. In `config-rawbase.ttl`, ensure the settings match your current setup (esp. `fuvirtext:user` and `fuvirtext:password`).

2. If you intend to use the web interface, copy the example configuration and update it as necessary

```
cp pages/rawbase/js/app/config.example.js pages/rawbase/js/app/config.js
```


## Run R&Wbase

After R&Wbase has been installed, run it with the following command:

```
    ./rawbase-server.sh 8080
```

The argument is optional and determines the port of the server. Default 3030

{'fraction_non_alphanumeric': 0.08765652951699464, 'fraction_numerical': 0.009242695289206918, 'mean_word_length': 4.114329268292683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5335729', 'n_tokens_mistral': 1009, 'n_tokens_neox': 938, 'n_words': 418}