- Java 92.1%
- Python 5.8%
- Dockerfile 1.9%
- Shell 0.2%
| config | ||
| gradle/wrapper | ||
| scripts | ||
| src/main/java/sensor2graph | ||
| .dockerignore | ||
| .gitattributes | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| build.gradle | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| README.md | ||
| settings.gradle | ||
sensor2graph
This project aims to deliver metadata about the sensors involved in the open sensor.community project in the form of the graph database neo4j.
The latest artifacts can be browsed here.
usage instructions:
executing the latest binaries:
via docker image:
-
Make sure to have docker installed on your system.
-
Run the program by executing the following command in the command line:
docker run --rm -d -v sensor2graph_data:/data docker.gitlab.gwdg.de/j.hoerdt/sensor2graph:master <username> <password>In the command, replace
<username>and<password>by your username and password for the neo4j database respectively.
via jar file:
-
Download the latest artifacts here.
-
Execute
using docker:
-
Make sure to have docker installed on your system.
-
Run this command in the root of the artifacts archive:
docker run --rm -u gradle -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:jre14 java -Djava.util.logging.config.file=logging.properties -jar build/libs/sensor2graph.jar <username> <password>
using the system's jre:
-
Install a java jre on your system if you do not already have one. Java versions 11 and 13 are known to work. Installation instructions for OpenJDK are here.
-
Run the program using the following command from the root of the directory:
java -Djava.util.logging.config.file=logging.properties -jar build/libs/sensor2graph.jar <username> <password>In the command, replace
<username>and<password>by your username and password for the neo4j database respectively.
-
building the docker image from source
-
Make sure to have docker installed on your system.
-
In the repository, run the following command:
docker build -t sensor2graph . -
The container can be executed with the following command:
docker run --rm -d -v sensor2graph_data:/data sensor2graph <username> <password>In the command, replace
<username>and<password>by your username and password for the neo4j database respectively.
building the jarfile from source :
with docker:
-
If docker is installed on the system you can run
docker run --rm -u gradle -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:jdk14 gradle jar
without docker:
-
To build the project a jdk is needed. Refer to this point 2. in "via jar file:" for more.
-
Then, after you have cloned this repository, create a fat jar file by running the following command in the repository's root:
./gradlew jarThis is the gradle wrapper which automatically installs the correct gradle version into your home directory and creates the jar file.
The internal api docs can be built with
./gradlew javadoc. -
Proceed with point 2 of via jar file.
Developers:
Updating dependencies:
Check driver compatibility here: https://support.neo4j.com/hc/en-us/articles/115013134648-Neo4j-Supported-Versions
Look for new versions here:
- https://search.maven.org/artifact/org.neo4j.driver/neo4j-java-driver
- https://search.maven.org/artifact/com.google.code.gson/gson
- https://search.maven.org/artifact/com.squareup.okhttp3/okhttp
- https://search.maven.org/artifact/com.influxdb/influxdb-client-java
and update the entries in the build.gradle file.
Updating gradle and gradle wrapper
- Check https://gradle.org/releases/.
gradle wrapper --gradle-version <version>- commit