<commit_before># TDB Exporter
A command-line program for exporting a Jena TDB-based triple-store to various formats.

## Prerequisites

This program resolves its library dependencies using Ivy and thus does not need any external resources to run. However, please make sure you have the following tools installed on your system before installing/running this program:

* Java SE 7 or greater
* Apache ANT 8 or greater

## Installation

Browse the cloned directory on your file system and type `ant jar` (assuming that you already have ANT on your path). The build script will download the dependency libraries and generate an executable JAR file, named `tdb-exporter.jar` and store it within the same directory. That's it! :)

## Running

To run the program, simply type `java -jar tdb-exporter.jar [FORMAT] [TDB-PATH]` in your commandline.

* Replace the `[FORMAT]` option with one of format codes from the table below:

Format Code   | Serialization Format
------------- | -------------
TTL           | Turtle
XML           | RDF/XML
XMLA          | RDF/XML-ABBRV
N3            | Notation3
NT            | N-Triples
CSV           | Comma Separated Values


* The `[TDB-PATH]` option must be an absolute path to the TDB directory on your local filesystem. Note that the program does not support symbolic links to the TDB directory.


## Example

For example, if you TDB triple-store is in `/Users/bahar/tdb` and you would like to export into Turtle format, you would use the command below:

`java -jar tdb-exporter.jar TTL /Users/bahar/tdb`
<commit_msg>fixed a few minor typos<commit_after># TDB Exporter
A command-line program for exporting a Jena TDB-based triple-store to various formats.

## Prerequisites

This program resolves its library dependencies using Ivy and thus does not need any external resources to run. However, please make sure you have the following tools installed on your system before installing/running this program:

* Java SE 7 or greater
* Apache ANT 8 or greater

## Installation

Browse the cloned directory on your file system and type `ant jar` (assuming that you already have ANT on your path). The build script will download the dependency libraries and generate an executable JAR file, named `tdb-exporter.jar` and store it within the same directory. That's it! :)

## Running

To run the program, simply type `java -jar tdb-exporter.jar [FORMAT] [TDB-PATH]` in your commandline.

* Replace the `[FORMAT]` option with one of format codes from the table below:

Format Code   | Serialization Format
------------- | -------------
TTL           | Turtle
XML           | RDF/XML
XMLA          | RDF/XML-ABBREV
N3            | Notation3
NT            | N-Triples
CSV           | Comma Separated Values


* The `[TDB-PATH]` option must be an absolute path to the TDB directory on your local filesystem. **Note** that the program does not support symbolic links to the TDB directory.


## Example

For example, if your TDB triple-store is in `/Users/bahar/tdb` and you would like to export it into Turtle format, you should use the command below:

`java -jar tdb-exporter.jar TTL /Users/bahar/tdb`

{'fraction_non_alphanumeric': 0.07677543186180422, 'fraction_numerical': 0.0025591810620601407, 'mean_word_length': 3.2142857142857144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3536691', 'n_tokens_mistral': 882, 'n_tokens_neox': 846, 'n_words': 431}