<commit_before># sparql-gateway

This SPARQL gateway server can filter queries and cache query results.

### Setup

Install Git, then:

    $ cd
    $ git clone https://github.com/ryotas/sparql-gateway.git

Install Node.js, then:

    $ cd ~/sparql-gateway
    $ npm install request express body-parser forever crypto mongoose config

Configure the setting file:

    $ cd ~/sparql-gateway/config
    $ cp default.yaml.sample default.yaml
    $ vi default.yaml
    endpoint: http://endpoint:8890/sparql
    strReject: create|drop|insert|delete
    port: 9001
    caching: false

Start the server:<commit_msg>commit<commit_after># sparql-gateway

This SPARQL gateway server can filter queries and cache query results.

### Setup

Install Git, then:

    $ cd
    $ git clone https://github.com/ryotas/sparql-gateway.git

Install Node.js, then:

    $ cd ~/sparql-gateway
    $ npm install request express body-parser forever crypto mongoose config js-yaml

Configure the setting file:

    $ cd ~/sparql-gateway/config
    $ cp default.yaml.sample default.yaml
    $ vi default.yaml
    endpoint: http://endpoint:8890/sparql
    strReject: create|drop|insert|delete
    port: 9001
    caching: false

Start the server:
{'fraction_non_alphanumeric': 0.09120788824979457, 'fraction_numerical': 0.01314708299096138, 'mean_word_length': 3.303886925795053, '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': '583321', 'n_tokens_mistral': 406, 'n_tokens_neox': 387, 'n_words': 114}