<commit_before>#Tutorial for the Intelligent Web Applications course 
### @VU University Amsterdam
#### <NAME> (<<EMAIL>>)

This tutorial shows the basics for building an Intelligent Web Application by guiding you through some of the typical steps you need to go through. This involves:

* Styling your webpage using CSS
* Using client side scripting for manipulating the webpage
* Using server side scripting for mediating between your own triple store, and others

### Requirements

To get this thing up and running on a local machine, you need the following:

* Python 2.7
* The `flask`, `python-requests` and `sparqlwrapper` packages (install using `pip install <package name>`)
* A recent Apache Tomcat install with deployed Sesame/OWLIM Lite
* An OWLIM-Lite repository with (at a minimum) the OWL-Horst ruleset, and the name `tutorial`. If you want to use a different name or location (i.e. not running on localhost, port 8080) you need to set the `TUTORIAL_REPOSITORY` variable in `src/tutorial.py`
<commit_msg>A bit more info<commit_after>#Tutorial for the Intelligent Web Applications course 
### @VU University Amsterdam
#### <NAME> (<<EMAIL>>)

This tutorial shows the basics for building an Intelligent Web Application by guiding you through some of the typical steps you need to go through. This involves:

* Styling your webpage using CSS
* Using client side scripting for manipulating the webpage
* Using server side scripting for mediating between your own triple store, and others

### Requirements

To get this thing up and running on a local machine, you need the following:

* Python 2.7
* The `flask`, `python-requests` and `sparqlwrapper` packages (install using `pip install <package name>`)
* A recent Apache Tomcat install with deployed Sesame/OWLIM Lite
* An OWLIM-Lite repository with (at a minimum) the OWL-Horst ruleset, and the name `tutorial`. 
	* The script assumes an adequate Sesame-style triple store is running at <http://localhost:8080/openrdf-sesame/repositories/tutorial> .
	* If you want to use a different name or location (i.e. not running on localhost, port 8080) you need to set the `TUTORIAL_REPOSITORY` variable in `src/tutorial.py`

Once everything is ready, start your Tomcat server, change dir into the `src` directory, and run `python tutorial.py`.

The tutorial is then running at <http://localhost:5000> .

{'fraction_non_alphanumeric': 0.0720949957591179, 'fraction_numerical': 0.008481764206955046, 'mean_word_length': 4.824691358024691, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '3535641', 'n_tokens_mistral': 679, 'n_tokens_neox': 629, 'n_words': 328}