view service/mqtt_to_rdf/conf/frontdoorlock.n3 @ 1644:9e7f571deedf

mqtt_to_rdf.py updates
author drewp@bigasterisk.com
date Fri, 17 Sep 2021 11:04:23 -0700
parents cdc76c84e3e2
children 5871ef3a380e
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/> .
@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
  ]
  
  .