Mercurial > code > home > repos > homeauto
diff service/mqtt_to_rdf/conf/frontdoorlock.n3 @ 798:cdc76c84e3e2
move conf into subdir
author | drewp@bigasterisk.com |
---|---|
date | Tue, 29 Dec 2020 21:05:32 -0800 |
parents | service/mqtt_to_rdf/config_frontdoorlock.n3@f3607a373a00 |
children | 5871ef3a380e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/mqtt_to_rdf/conf/frontdoorlock.n3 Tue Dec 29 21:05:32 2020 -0800 @@ -0,0 +1,20 @@ +@prefix : <http://projects.bigasterisk.com/room/> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix fr: <http://bigasterisk.com/foaf/> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . + +:mqttConnectedStatusMap a :ValueMap; + :map [:from "offline"; :to :Offline], + [:from "online"; :to :Online] . + +:frontDoorLockStatus a :MqttStatementSource; + :mqttTopic ("frontdoorlock" "status"); + + :parser :mqttConnectedStatusMap; + + :graphStatements [ + :outputPredicate :connectedStatus + ] + + . +