https://github.com/buda-base/git-to-dbs
Git to CouchDB / Fuseki / CouchDB for BDRC Lib App
https://github.com/buda-base/git-to-dbs
Last synced: 3 months ago
JSON representation
Git to CouchDB / Fuseki / CouchDB for BDRC Lib App
- Host: GitHub
- URL: https://github.com/buda-base/git-to-dbs
- Owner: buda-base
- License: apache-2.0
- Created: 2017-03-14T09:11:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-10-16T13:52:15.000Z (8 months ago)
- Last Synced: 2026-01-19T19:43:57.682Z (5 months ago)
- Language: Java
- Homepage:
- Size: 11.3 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-to-dbs
This repository contains code to transfer BDRC data from local git repos to Fuseki and/or couchdb. It can transfer the whole database or just listen to changes in the git repos.
## Downloading
You can either clone this repository (and then the submodule: `git submodule update --init`) or fetch the latest .jar file on the [release page](https://github.com/BuddhistDigitalResourceCenter/fuseki-couchdb/releases). You can automatically get the jar file of the latest release with
```
curl -s https://api.github.com/repos/BuddhistDigitalResourceCenter/fuseki-couchdb/releases/latest | jq -r ".assets[] | select(.name | test(\"jar$\")) | .browser_download_url" | xargs curl -sL -o fusekicouchdb-latest.jar -O
```
## Compiling and running
##### from the jar file
```
java -jar target/gittodbs-0.8.0.jar -help
```
A typical usage is:
```
time java -jar target/gittodbs-0.8.0.jar -transferOnto -transferAllDB -doNotListen -timeout 60 -progress
```
##### from the java code
```
mvn compile exec:java -Dexec.args="-help"
```
To compile a jar file:
```
mvn clean package
```
or
```
mvn clean package -Dmaven.test.skip=true
```
The first time after cloning the repo:
```
git submodule update --init
```
When there is a change in the owl-schema repo the following may be used to sync to the head of the owl-schema repo:
```
git submodule update --recursive --remote
```
And then ```mvn clean package``` to update the gittodbs-x.y.z.jar
## Debugging Unit tests etc
To use slf4j bound to log4j the pom.xml needs a dependency like:
```
org.slf4j
slf4j-log4j12
1.7.25
```
To get logging during running unit tests, update the src/test/resources with desired log level settings and then to run a single test such as AppTest:
```
mvn -Dlog4j.debug surefire:test -Dtest=AppTest
```
will run AppTest with the log4j.properties settings and the `-Dlog4j.debug` will output debugging from log4j as it locates the effective log4j.properties.
Adding an appropriate log4j.properties to src/main/resources allows to control logging of the main application.