Commit f1ebf90f authored by j.hoerdt's avatar j.hoerdt
Browse files

implement Identifier

parent 8f46dd08
......@@ -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\""
......
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