annotate service/mqtt_to_rdf/conf/frontdoorlock.n3 @ 1688:5871ef3a380e

cnof checkpoint
author drewp@bigasterisk.com
date Mon, 27 Sep 2021 23:18:49 -0700
parents cdc76c84e3e2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
767
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
1 @prefix : <http://projects.bigasterisk.com/room/> .
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
2 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
3 @prefix fr: <http://bigasterisk.com/foaf/> .
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
4 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
5
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
6 :mqttConnectedStatusMap a :ValueMap;
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
7 :map [:from "offline"; :to :Offline],
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
8 [:from "online"; :to :Online] .
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
9
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
10 :frontDoorLockStatus a :MqttStatementSource;
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
11 :mqttTopic ("frontdoorlock" "status");
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
12
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
13 :parser :mqttConnectedStatusMap;
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
14
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
15 :graphStatements [
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
16 :outputPredicate :connectedStatus
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
17 ]
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
18
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
19 .
f3607a373a00 front door support on another broker
drewp@bigasterisk.com
parents:
diff changeset
20
1688
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
21 { ?msg :body "online" . } => { ?msg :onlineTerm :Online . } .
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
22 { ?msg :body "offline" . } => { ?msg :onlineTerm :Offline . } .
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
23
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
24
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
25 {
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
26 ?msg a :MqttMessage ;
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
27 :topic ( "frontdoorlock" "status" );
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
28 :onlineTerm ?onlinenessStr . } => {
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
29 :frontDoorLockStatus :connectedStatus ?onlineness .
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
30 } .
5871ef3a380e cnof checkpoint
drewp@bigasterisk.com
parents: 798
diff changeset
31