Mercurial > code > home > repos > homeauto
view service/mqtt_to_rdf/config_bed.n3 @ 790:b85986495848
skaffold setup for mqtt_to_rdf
author | drewp@bigasterisk.com |
---|---|
date | Mon, 30 Nov 2020 23:36:57 -0800 |
parents | 7916b9786288 |
children |
line wrap: on
line source
@prefix : <http://projects.bigasterisk.com/room/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix fr: <http://bigasterisk.com/foaf/> . :buttonMap a :ValueMap; :map [:from "OFF"; :to :notPressed], [:from "ON"; :to :pressed] . :bedGreenButton a :MqttStatementSource; :mqttTopic ("bed" "switch" "green_button" "state"); :parser :buttonMap; :graphStatements [:outputPredicate :state;] . :bedRedButton a :MqttStatementSource; :mqttTopic ("bed" "switch" "red_button" "state"); :parser :buttonMap; :graphStatements [:outputPredicate :state;] . :motionMap a :ValueMap; :map [:from "OFF"; :to :noMotion], [:from "ON"; :to :motion] . :bedHeadboardMotion a :MqttStatementSource; :mqttTopic ("bed" "switch" "pir" "state"); :parser :motionMap; :graphStatements [:outputPredicate :state;] .