Skip to content

Commit

Permalink
ES examples. ES index renamed to opal
Browse files Browse the repository at this point in the history
  • Loading branch information
adibaba committed Sep 18, 2019
1 parent c6870f0 commit 480d556
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,29 @@ Setup file(s) for OPAL data server with one Elasticsearch and one Apache Fuseki
- Edit the configuration file `.env`.
Settings:
- `FUSEKI_ADMIN_PASSWORD`
If not set, a random password will be created.
Fuseki admin password for the frontend. If not set, a random password will be created.
- `FUSEKI_JVM_ARGS`
Java configuration, e.g. the maximum heap size (Xmx), default is -Xmx16g.
Java configuration for Fuseki, e.g. the maximum heap size (Xmx).
Default value: `-Xmx16g`
- `ELASTICSEARCH_JAVA_OPTS`
Java memory configuration for Elasticsearch.
Default value: `-Xms512m -Xmx16g`
- Run `docker-compose up -d`

## Access

- Fuseki
- **Fuseki**
URL: `http://localhost:3030/`
Username: `admin`
Password: As set in .env file or randomly created.
- **Elasticsearch**
An example to add a dataset:
`curl -H "Content-Type: application/json" -XPOST "http://localhost:9200/opal/dataset/test123" -d "{ \"title\" : \"Hello World\"}"`
An example to get a dataset:
`curl -XGET http://localhost:9200/opal/dataset/test123`
An example to count datasets:
`curl -XGET http://localhost:9200/catalog/dataset/_count`

## Notes

* Some documentation is in the GitHub wiki: https://github.com/projekt-opal/opaldata/wiki
* Some documentation is in the GitHub wiki: https://github.com/projekt-opal/opaldata/wiki
4 changes: 2 additions & 2 deletions elasticsearch/run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
curl -XPUT 'http://elastic:changeme@elasticsearch:9200/catalog'
curl -XPOST 'http://elastic:changeme@elasticsearch:9200/catalog/dataset/_mapping' -d @./mappings.json
curl -XPUT 'http://elastic:changeme@elasticsearch:9200/opal'
curl -XPOST 'http://elastic:changeme@elasticsearch:9200/opal/dataset/_mapping' -d @./mappings.json

0 comments on commit 480d556

Please sign in to comment.