Optimize SPARQL Query.
- ruby 3
- ruby-rdf/sparql: Ruby SPARQL library
- grosser/parallel: Ruby: parallel processing made simple and fast
- 1.21.0
bundle install --path vendor/bundle
--endpoint
- SPARQL endpoint
--sparqlquery
- SPARQL query
- Optional
--population_size
- Population size (default: 4)
--generations
- Number of generations (default: 2)
--mutation_probability
- Probability of mutaion (default: 0.01)
number_of_trials
(default: 3)- Number of trials per each indivisual's evaluation
leave_backslash
(default: false)- This options is debug purpose, this option leave backslash in SPARQL query
- When sparql query which is sent to endpoint has backslash and it causes error, default remove them.
bundle exec ruby bin/sparql-ga --endpoint="http://dev.togogenome.org/sparql" \
--sparqlquery=samples/sample.rq --population_size=100 \
--generations=50
- ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-darwin20]
- This ruby is installed via rbenv