view service/mqtt_to_rdf/config_bed.n3 @ 797:a3e430b39177

reformat
author drewp@bigasterisk.com
date Tue, 29 Dec 2020 20:55:24 -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;] .