<commit_before>########################################################################
Running the RInfo System Locally
########################################################################


Getting Started
========================================================================

It's recommended to run all components of the RInfo System on your local
machine during development. To do this from scratch, you need:

* Java JDK 1.6+
* Maven 2.0.9+
* Tomcat 6+

To use the various instrumental tools used you also need:

Groovy 1.7.4+
    See ``../tools/README.txt``.

Python 2.5+

    - For management (such as deployment): see ``README.txt``.
    - For acceptance spec testing: see ``../documentation/spec/README.txt``
      (NOTE: these are peripheral right now, so you can skip this part).


Setting up the environment
========================================================================

Sesame
------------------------------------------------------------------------

You need a Java webapp container (e.g. Tomcat) to run the Sesame RDF Repository
server (expected to run at ``http://localhost:8080/openrdf-sesame/``).

Package sesame::

  $ cd packages/java/rinfo-sesame-http/
  $ mvn package

Then copy ``openrdf-sesame.war`` and ``sesame-workbench.war`` in
``target/dependency`` to the container (e.g. ``$TOMCAT_HOME/webapps``).

Data directories
------------------------------------------------------------------------

* /opt/_workapps/rinfo/ => EMPTY!
* /opt/_workapps/rinfo/depots/rinfo/ => EMPTY!

The RInfo Applications
------------------------------------------------------------------------

Install the shared rinfo packages to your local maven repo by::

  $ cd packages/java
  $ mvn install

Now you are ready to start up:

* Integration test data:

  example-store
      serving some example data.

  base prototype feed
      for base data (models, containers; organization, feeds).

  These can be served by running::

    $ cd tools/rinfomain/
    $ TEST_SRC_DIR=/opt/_workapps/rinfo/testsources/www # any empty dir you want
    $ TEST_SERVER=http://localhost:8280
    $ ./maps_feeds_and_base.sh
    $ groovy serve_folder.groovy $TEST_SRC_DIR

    Verify that the correct information is served at http://localhost:8280/feed/current

* Local instance of the RInfo system:

  rinfo-main
      Collects from the sources defined for development mode (a base/admin
      prototype feed and example suppliers) and supplies the main data feed.
      Instructions on how to run this application using Jetty can be found in:
      ``../packages/java/rinfo-main/README.txt``.

  rinfo-service
      Collects from rinfo-main into the sesame RDF repo, making data available
      for its data views.

<commit_msg>docs - running_rinfo_locally: fixed args to map_feeds_and_base<commit_after>########################################################################
Running the RInfo System Locally
########################################################################


Getting Started
========================================================================

It's recommended to run all components of the RInfo System on your local
machine during development. To do this from scratch, you need:

* Java JDK 1.6+
* Maven 2.0.9+
* Tomcat 6+

To use the various instrumental tools used you also need:

Groovy 1.7.4+
    See ``../tools/README.txt``.

Python 2.5+

    - For management (such as deployment): see ``README.txt``.
    - For acceptance spec testing: see ``../documentation/spec/README.txt``
      (NOTE: these are peripheral right now, so you can skip this part).


Setting up the environment
========================================================================

Sesame
------------------------------------------------------------------------

You need a Java webapp container (e.g. Tomcat) to run the Sesame RDF Repository
server (expected to run at ``http://localhost:8080/openrdf-sesame/``).

Package sesame::

  $ cd packages/java/rinfo-sesame-http/
  $ mvn package

Then copy ``openrdf-sesame.war`` and ``sesame-workbench.war`` in
``target/dependency`` to the container (e.g. ``$TOMCAT_HOME/webapps``).

Data directories
------------------------------------------------------------------------

* /opt/_workapps/rinfo/ => EMPTY!
* /opt/_workapps/rinfo/depots/rinfo/ => EMPTY!

The RInfo Applications
------------------------------------------------------------------------

Install the shared rinfo packages to your local maven repo by::

  $ cd packages/java
  $ mvn install

Now you are ready to start up:

* Integration test data:

  example-store
      serving some example data.

  base prototype feed
      for base data (models, containers; organization, feeds).

  These can be served by running::

    $ cd tools/rinfomain/
    $ TEST_SRC_DIR=/opt/_workapps/rinfo/testsources/www # any empty dir you want
    $ TEST_SERVER=http://localhost:8280
    $ ./map_feeds_and_base.sh $TEST_SRC_DIR $TEST_SERVER
    $ groovy serve_folder.groovy $TEST_SRC_DIR

    Verify that the correct information is served at http://localhost:8280/feed/current

* Local instance of the RInfo system:

  rinfo-main
      Collects from the sources defined for development mode (a base/admin
      prototype feed and example suppliers) and supplies the main data feed.
      Instructions on how to run this application using Jetty can be found in:
      ``../packages/java/rinfo-main/README.txt``.

  rinfo-service
      Collects from rinfo-main into the sesame RDF repo, making data available
      for its data views.


{'fraction_non_alphanumeric': 0.2565397799025798, 'fraction_numerical': 0.008298755186721992, 'mean_word_length': 2.766304347826087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3081696', 'n_tokens_mistral': 1523, 'n_tokens_neox': 1417, 'n_words': 521}