Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
j.hoerdt
sensor2graph
Commits
f1ebf90f
Commit
f1ebf90f
authored
Apr 15, 2021
by
j.hoerdt
Browse files
implement Identifier
parent
8f46dd08
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/sensor2graph/Sensor.java
View file @
f1ebf90f
...
...
@@ -28,7 +28,7 @@ class Sensor {
private
Map
<
String
,
Object
>
properties
=
new
HashMap
<
String
,
Object
>();
public
void
process
(
Session
session
,
TransactionConfig
transaction_config
)
throws
Exception
{
org
.
neo4j
.
driver
.
Record
rec
=
session
.
writeTransaction
(
tx
->
{
var
rec
=
session
.
writeTransaction
(
tx
->
{
Result
res
=
tx
.
run
(
get_creation_query
());
return
res
.
single
();
},
transaction_config
);
...
...
@@ -96,6 +96,12 @@ class Sensor {
"\""
+
rec
.
get
(
"description"
)
+
"\""
);
}
if
(!
rec
.
get
(
"s.pid"
).
isNull
())
{
add_attribute
(
body
,
"21.T11148/8eb858ee0b12e8e463a5"
,
"{\"identifier-general-with-type\":{\"identifierValue\":\""
+
rec
.
get
(
"s.pid"
)
+
"\", \"identifierType\":\"Handle\"}}"
);
}
// add_attribute(body,
// "21.T11148/f76ad9d0324302fc47dd",
// "\"instrument type string\""
...
...
j.hoerdt
@j.hoerdt
mentioned in commit
39f47f7d
·
Apr 16, 2021
mentioned in commit
39f47f7d
mentioned in commit 39f47f7d9a2d979391cab06879786cbea4291858
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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