Commit 80dbefb8 authored by j.hoerdt's avatar j.hoerdt
Browse files

demo cypher query able to produce all SensorType nodes

parent f56ebcf2
*
!*/
# whitelist
!gradle/*
!src/**/*
!.dockerignore
!Dockerfile
!docker-compose.yaml
!.gitattributes
!.gitignore
!.gitlab-ci.yml
!build.gradle
!settings.gradle
!gradlew
!gradlew.bat
!run.sh
!LICENSE
!README.md
!logging.properties
!sensor2graph.properties
!graphdb.gwdg.de.pem
# blacklist:
#.gradle
#build
#.classpath
#.project
#.settings
#.factorypath
#.vscode
#bin
#data
#*.log
#*.html
#already_uploaded_days.txt
#failed_to_upload.txt
*
!*/
# whitelist
!gradle/*
!src/**/*
!.dockerignore
!Dockerfile
!docker-compose.yaml
!.gitattributes
!.gitignore
!.gitlab-ci.yml
!build.gradle
!settings.gradle
!gradlew
!gradlew.bat
!run.sh
!LICENSE
!README.md
!logging.properties
!sensor2graph.properties
!graphdb.gwdg.de.pem
!graphdb_create_sensor_type_info.cypher
# blacklist:
#.gradle
#build
#.classpath
#.project
#.settings
#.factorypath
#.vscode
#bin
#data
#*.log
#*.html
#already_uploaded_days.txt
#failed_to_upload.txt
#*.lck
\ No newline at end of file
:param sensor_type_info => [
{
props: {
sensor_type: "asdf",
description: "asdf",
instrument_type: "asdf",
manufacturers: "asdf"
},
measured_variables: [
"humidity",
"temp"
]
}
]
unwind $sensor_type_info as sensor_type_info
merge (n:SensorType {sensor_type: sensor_type_info.props.sensor_type})
set n = sensor_type_info.props
with n, sensor_type_info
unwind sensor_type_info.measured_variables as measured_variable
merge (m:MeasuredVariable {variable: measured_variable})
merge (n)-[:MEASURES]->(m)
return n,m
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment