This project aims to deliver metadata about the sensors involved in the open sensor.community project in the form of the graph database neo4j.com
  • Java 92.1%
  • Python 5.8%
  • Dockerfile 1.9%
  • Shell 0.2%
Find a file
2025-03-05 15:07:05 +00:00
config try disable encryption as a workaround for expired cert 2023-01-22 17:48:25 +01:00
gradle/wrapper bump gradle to 7.6 2023-01-22 15:42:14 +01:00
scripts correctly escape description to be valid json 2021-10-19 18:58:04 +02:00
src/main/java/sensor2graph influxdb exceptions should be fatal as well 2023-02-22 17:59:45 +01:00
.dockerignore tidy repository, add script to validate PID according to schemas 2021-09-16 21:50:36 +02:00
.gitattributes build: switch to gradle for dependency management 2020-03-29 18:13:57 +02:00
.gitignore refactor small issues in many places with help from sonarlint 2022-05-22 18:28:44 +02:00
.gitlab-ci.yml try pulling kaniko from gcr.io 2025-03-05 15:07:05 +00:00
build.gradle bump dependencies 2023-01-25 21:30:08 +01:00
docker-compose.yaml repair docker-compose 2020-09-03 14:51:27 +02:00
Dockerfile try to fix occasional oom conditions 2022-02-06 15:30:14 +01:00
gradlew bump gradle to 7.6 2023-01-22 15:42:14 +01:00
gradlew.bat bump gradle version 2020-08-17 21:44:36 +02:00
LICENSE Add MIT LICENSE 2020-05-17 21:14:25 +02:00
README.md bump dependencies 2023-01-25 21:30:08 +01:00
settings.gradle change package name 2020-05-08 20:29:19 +02:00

sensor2graph

pipeline status

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:

  1. Make sure to have docker installed on your system.

  2. 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:

  1. Download the latest artifacts here.

  2. Execute

    using docker:

    1. Make sure to have docker installed on your system.

    2. 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:

    1. 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.

    2. 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

  1. Make sure to have docker installed on your system.

  2. In the repository, run the following command:

    docker build -t sensor2graph .
    
  3. 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:

  1. 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:

  1. To build the project a jdk is needed. Refer to this point 2. in "via jar file:" for more.

  2. Then, after you have cloned this repository, create a fat jar file by running the following command in the repository's root:

    ./gradlew jar
    

    This 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.

  3. 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:

and update the entries in the build.gradle file.

Updating gradle and gradle wrapper

  1. Check https://gradle.org/releases/.
  2. gradle wrapper --gradle-version <version>
  3. commit