Skip to content

Commit e5762fc

Browse files
committed
Change to Markdown #671
1 parent 294ea29 commit e5762fc

File tree

2 files changed

+51
-48
lines changed

2 files changed

+51
-48
lines changed

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# README
2+
3+
## Build
4+
5+
[![](https://github.com/hbz/nwbib/workflows/Build/badge.svg?branch=master)](https://github.com/hbz/nwbib/actions?query=workflow%3ABuild)
6+
7+
See the `.github/workflows/build.yml` file for details on the CI config used by Github Actions.
8+
9+
## Setup
10+
11+
Prerequisite: Java 8
12+
13+
`git clone https://github.com/hbz/nwbib.git ; cd nwbib`\
14+
`wget http://downloads.typesafe.com/typesafe-activator/1.2.10/typesafe-activator-1.2.10-minimal.zip`\
15+
`unzip typesafe-activator-1.2.10-minimal.zip`\
16+
`./activator-1.2.10-minimal/activator test`
17+
18+
### Eclipse setup
19+
20+
Replace `test` with other Play commands, e.g. `"eclipse with-source=true"` (generate Eclipse project config files, then import as existing project in Eclipse), `~ run` (run in test mode, recompiles changed files on save, use this to keep your Eclipse project in sync while working, make sure to enable automatic workspace refresh in Eclipse: `Preferences` \> `General` \> `Workspace` \> `Refresh using native hooks or polling`).
21+
22+
### Production
23+
24+
Use `"start 8000"` to run in production background mode on port 8000 (hit Ctrl+D to exit logs). To restart a production instance running in the background, you can use the included `restart.sh` script (configured to use port 8000). For more information, see the [Play documentation](https://playframework.com/documentation/2.4.x/Home).
25+
26+
### Classification
27+
28+
This application uses the classifications in <https://github.com/hbz/lobid-vocabs/tree/master/nwbib>. The `nwbib-spatial` classification is based on Wikidata (see
29+
<http://slides.lobid.org/nwbib-wikidatacon/> for details). To update the local classification from Wikidata:
30+
31+
Delete the local Elasticsearch data:
32+
33+
`rm -rf ./data`
34+
35+
Delete the local Wikidata cache:
36+
37+
`rm conf/wikidata.json`
38+
39+
Re-generate the full classification:
40+
41+
`sbt "runMain SpatialToSkos"`
42+
43+
This creates a new `conf/nwbib-spatial.ttl` file with data from the new `conf/wikidata.json` and `conf/nwbib-spatial-conf.ttl`. The classification is consumed from <https://raw.githubusercontent.com/hbz/lobid-vocabs/master/nwbib/nwbib-spatial.ttl>, so we copy the result to the `lobid-vocabs` repo:
44+
45+
`cp conf/nwbib-spatial.ttl ../lobid-vocabs/nwbib/`
46+
47+
From here, we can diff, commit, and push our updated classification.
48+
49+
## License
50+
51+
GNU General Public License, version 2: <http://www.gnu.org/licenses/gpl-2.0.html>

README.textile

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)