Vocabulary to represent MQTT packets in RDF.

This document is a work in progress

Introduction

To use in TD forms.

Axiomatization

Classes

ControlPacket

IRI: https://www.w3.org/2019/wot/mqtt#ControlPacket

An MQTT Control Packet consists of up to three parts: fixed header (prsesent in all Control Packets), variable header, payload
Super-class ofPUBLISHPacket
SUBSCRIBEPacket
UNSUBSCRIBEPacket
In the domain offixedHeaderFlag
payload
variableHeaderFlag

PUBLISHPacket

IRI: https://www.w3.org/2019/wot/mqtt#PUBLISHPacket

A PUBLISH packet is sent from a Client to a Server or from a Server to a Client to transport an Application Message.
Sub-class ofControlPacket

SUBSCRIBEPacket

IRI: https://www.w3.org/2019/wot/mqtt#SUBSCRIBEPacket

The SUBSCRIBE packet is sent from the Client to the Server to create one or more Subscriptions. Each Subscription registers a Client’s interest in one or more Topics.
Sub-class ofControlPacket
In the domain ofhasDUPFlag
hasQoSFlag
hasRETAINFlag

UNSUBSCRIBEPacket

IRI: https://www.w3.org/2019/wot/mqtt#UNSUBSCRIBEPacket

An UNSUBSCRIBE packet is sent by the Client to the Server, to unsubscribe from topics.
Sub-class ofControlPacket

Object Properties

payload

IRI: https://www.w3.org/2019/wot/mqtt#payload

Some MQTT Control Packets contain a Payload as the final part of the packet. In the PUBLISH packet this is the Application Message.
Domain includesControlPacket

Datatype Properties

fixedHeaderFlag

IRI: https://www.w3.org/2019/wot/mqtt#fixedHeaderFlag

Each MQTT Control Packet contains a Fixed Header.
Domain includesControlPacket

hasDUPFlag

IRI: https://www.w3.org/2019/wot/mqtt#hasDUPFlag

If the DUP flag is set, it indicates that this might be re-delivery of an earlier attempt to send the packet.
Domain includesSUBSCRIBEPacket

hasQoSFlag

IRI: https://www.w3.org/2019/wot/mqtt#hasQoSFlag

This field indicates the level of assurance for delivery of an Application Message.
Domain includesSUBSCRIBEPacket

hasRETAINFlag

IRI: https://www.w3.org/2019/wot/mqtt#hasRETAINFlag

If the RETAIN flag is set to 1 in a PUBLISH packet sent by a Client to a Server, the Server must replace any existing retained message for this topic and store the Application Message, so that it can be delivered to future subscribers whose subscriptions match its Topic Name.
Domain includesSUBSCRIBEPacket

variableHeaderFlag

IRI: https://www.w3.org/2019/wot/mqtt#variableHeaderFlag

Some types of MQTT Control Packet contain a Variable Header component. It resides between the Fixed Header and the Payload. The content of the Variable Header varies depending on the packet type.
Domain includesControlPacket