annotate service/mqtt_to_rdf/conf/kitchen.n3 @ 1697:88f6e9bf69d1

stats and non-debug mode speedups
author drewp@bigasterisk.com
date Tue, 28 Sep 2021 00:32:16 -0700
parents cdc76c84e3e2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
788
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
1 @prefix : <http://projects.bigasterisk.com/room/> .
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
2 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
3 @prefix fr: <http://bigasterisk.com/foaf/> .
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
4
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
5 :buttonMap a :ValueMap;
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
6 :map [:from "OFF"; :to :notPressed], [:from "ON"; :to :pressed]
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
7 .
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
8
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
9
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
10
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
11 # goal is to read these and have reasoning notice them as the light state so the button works
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
12 #sonoff_0/switch/sonoff_basic_relay/state OFF
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
13
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
14
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
15 :kitchenCounterLight a :MqttStatementSource;
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
16 :mqttTopic ("h801_counter" "light" "kit_r" "state");
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
17 :parser :jsonBrightness;
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
18 :graphStatements [:outputPredicate :brightness;] .
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
19
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
20 :kitchenLight a :MqttStatementSource;
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
21 :mqttTopic ("h801_skylight" "light" "kit_r" "state");
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
22 :parser :jsonBrightness;
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
23 :graphStatements [:outputPredicate :brightness;] .
7916b9786288 mqtt_to_rdf configs
drewp@bigasterisk.com
parents:
diff changeset
24