Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
j.hoerdt
sensor2graph
Commits
80dbefb8
Commit
80dbefb8
authored
Mar 16, 2021
by
j.hoerdt
Browse files
demo cypher query able to produce all SensorType nodes
parent
f56ebcf2
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
80dbefb8
*
!*/
# 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
graphdb_create_sensor_type_info.cypher
0 → 100644
View file @
80dbefb8
: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
j.hoerdt
@j.hoerdt
mentioned in commit
39f47f7d
·
Apr 16, 2021
mentioned in commit
39f47f7d
mentioned in commit 39f47f7d9a2d979391cab06879786cbea4291858
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment