Skip to content

Commit

Permalink
Merge pull request #609 from w3c/mahdanoura-patch-2
Browse files Browse the repository at this point in the history
TM changes of TargetV device
  • Loading branch information
egekorkan authored Nov 18, 2024
2 parents 2cde634 + 3688557 commit e6a74c9
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 1 deletion.
75 changes: 75 additions & 0 deletions events/2024.11.Munich/TDs/Siemens/avg_temperature_rule.tm.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"@context": [
"https://www.w3.org/2022/wot/td/v1.1",
{
"brick": "https://brickschema.org/schema/1.0.3/BrickFrame#",
"mcep": "https://w3id.org/tinyml-schema/cep-rule-schema#"
}
],
"id": "urn:mcep:rule:averageTemperature",
"@type": [
"tm:ThingModel",
"mcep:ThingFunction"
],
"properties": {
"averageTemperature": {
"title": "Virtual function that calculates the average temperature",
"mcep:rule": "avg_temp[_,_](Y) :- aggr {temp[_,_](X), *, Y := avg(X)} [count 3]",
"mcep:operates_on": "temperature",
"mcep:deployable": [
"mcep:Device",
"brick:Thermostat"
],
"type": "number",
"readOnly": true,
"observable": true,
"forms": [
{
"href": "/avg_temp",
"op": [
"readproperty",
"observeproperty"
]
}
]
},
"averageTemperatureStart": {
"@type": "mcep:start",
"title": "Start average temperature rule on the device",
"description": "Activate deployed rule on device",
"type": "string",
"readOnly": false,
"writeOnly": true,
"observable": true,
"forms": [
{
"href": "/topic/input_rule",
"op": [
"unobserveproperty",
"observeproperty",
"writeproperty"
]
}
]
}
},
"averageTemperatureStop": {
"@type": "mcep:stop",
"title": "Stop average temperature rule from the device",
"description": "Stops deployed rule on device",
"readOnly": false,
"writeOnly": true,
"type": "string",
"observable": true,
"forms": [
{
"href": "/topic/input_rule",
"op": [
"unobserveproperty",
"observeproperty",
"writeproperty"
]
}
]
}
}
2 changes: 1 addition & 1 deletion events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"https://www.w3.org/2022/wot/td/v1.1",
{
"brick": "https://brickschema.org/schema/1.0.3/BrickFrame#",
"mcep": "http://mcep/shared"
"mcep": "https://w3id.org/tinyml-schema/cep-rule-schema#"
}
],
"id": "urn:node:targetV",
Expand Down

0 comments on commit e6a74c9

Please sign in to comment.