From e3059b6632b805b097d033c0e93676e3e48f8b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3n=20Levy?= Date: Tue, 6 Oct 2015 22:25:54 +0000 Subject: [PATCH 1/3] Update README.markdown --- README.markdown | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 6674773..23d70d2 100644 --- a/README.markdown +++ b/README.markdown @@ -43,9 +43,32 @@ The MerkOrCore API and command line interface can be used to query this data ## Getting started *Note that MerkOrCore is developed and tested under Mac OS X only, please report any problems with other platforms!* + +### Java +Download the Java JDK from there: http://www.oracle.com/technetwork/java/javase/downloads/index.html + ### Redis -The MerkOr data is stored in Redis format. Redis is available at http://redis.io (installation instructions under http://redis.io/download). -The Redis data is included in this package as `dump.rdb.bz2`. +The MerkOr data is stored in Redis format. The Redis data is included in this package as `dump.rdb.bz2`. + +Redis is available at http://redis.io (installation instructions under http://redis.io/download). Homebrew users can install with `$ brew install redis`. + +Extract `dump.rdb.bz2` using the terminal or double click the file in Finder (OSX). To load the database file you add `redis.config` to your projects root with the following content: + +``` +# The filename where to dump the DB +dbfilename dump.rdb + +# The working directory. +# +# The DB will be written inside this directory, with the filename specified +# above using the 'dbfilename' configuration directive. +# +# Also the Append Only File will be created inside this directory. +# +# Note that you must specify a directory here, not a file name. +dir /path/to/merkor/ +``` + After you have installed Redis, unpacked and loaded the MerkOr data, you can try it out directly in Redis command line interface, (in the Redis directory start `src/redis-cli`), for example: redis 127.0.0.1:6379> smembers merkor_is_lemma_lampi From 51f9563642fa2255d2398523edaa2d2a7f290860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3n=20Levy?= Date: Tue, 6 Oct 2015 22:29:58 +0000 Subject: [PATCH 2/3] Update README.markdown --- README.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.markdown b/README.markdown index 23d70d2..ba01796 100644 --- a/README.markdown +++ b/README.markdown @@ -79,6 +79,10 @@ After you have installed Redis, unpacked and loaded the MerkOr data, you can try 3) "wordclass" 4) "noun" +Run the Redis server with the following command in the project root directory: + +`redis-server ./redis.config` + This assures you that the MerkOr data is loaded but you don't have to study redis-cli to use the MerkOrCore API. For those interested in inspecting the data directly, for example with redis-cli, the structure of the Redis data is shown in the file `merkor_redis_structure.txt`. ### MerkOrCore API From d31f17f981a22e1ce5d5328fc1ed56442011f238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3n=20Levy?= Date: Tue, 6 Oct 2015 22:30:59 +0000 Subject: [PATCH 3/3] Update README.markdown --- README.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index ba01796..738464b 100644 --- a/README.markdown +++ b/README.markdown @@ -68,6 +68,9 @@ dbfilename dump.rdb # Note that you must specify a directory here, not a file name. dir /path/to/merkor/ ``` +Run the Redis server with the following command in the project root directory: + +`redis-server ./redis.config` After you have installed Redis, unpacked and loaded the MerkOr data, you can try it out directly in Redis command line interface, (in the Redis directory start `src/redis-cli`), for example: @@ -79,9 +82,6 @@ After you have installed Redis, unpacked and loaded the MerkOr data, you can try 3) "wordclass" 4) "noun" -Run the Redis server with the following command in the project root directory: - -`redis-server ./redis.config` This assures you that the MerkOr data is loaded but you don't have to study redis-cli to use the MerkOrCore API. For those interested in inspecting the data directly, for example with redis-cli, the structure of the Redis data is shown in the file `merkor_redis_structure.txt`.