-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Angshuman edited this page Sep 14, 2019
·
2 revisions
HexaDb is a triple based graph data store created on RocksDb storage. It can be used store, retrieve and query JSON documents. HexaDb does not require a schema.
$ docker-compose up
POST /api/store/app01
[
{
"id": "sensor:0",
"type": "sensor",
"name": "Entity sensor 0",
"temperature": 64.44,
"humidity": 14.65,
"pressure": 957.1,
"marker": {
"status": "running",
"red": 9.12,
"blue": 4.53,
"green": 9.85
}
},
{
"id": "sensor:1",
"type": "sensor",
"name": "Entity sensor 1",
"temperature": 65.86,
"humidity": 12.29,
"pressure": 945.19,
"marker": {
"status": "stopped",
"red": 9.95,
"blue": 7.16,
"green": 2.02
}
}
]
GET /api/store/app01/sensor:1
POST /api/store/app01/query
{
"filter": {
"type": {
"op": "eq",
"value": "sensor"
},
"temperature" : {
"op" : "gt",
"value" : 65,
}
}
}
POST /api/store/app01/query
{
"filter": {
"type": {
"op": "eq",
"value": "sensor"
},
"outgoing": [
{
"path": "marker",
"target": {
"filter": {
"green": {
"op": "gt",
"value": 9
}
}
}
}
]
}
}
POST /api/store/app01/query
{
"filter": {
"type": {
"op": "eq",
"value": "sensor"
},
"outgoing": [
{
"path": "*",
"level" : 2,
"target": {
"filter": {
"green": {
"op": "gt",
"value": 9
}
}
}
}
]
}
}
PATCH /api/store/app01/json
{
"id": "sensor:0",
"name": "Another name",
"marker": {
"status": null,
"red": 1.0
}
}