CBL: Compact Encoding of JSON-LD Data using CBOR and Bitmaps for Web of Things
Prudhvi Gudla, Kamal Singh
TL;DR
This work introduces CBL, a compact encoding scheme for JSON-LD data in the Web of Things by combining CBOR, a re-indexation dictionary, and a bitmap-based structure with a delta-encoded list of key-value indices. By leveraging a static dictionary of common terms and a dynamically delta-encoded re-indexation dictionary, CBL significantly reduces network overhead for constrained IoT devices, outperforming existing CBOR-LD baselines and even CBOR-LD-OPT without relying on gzip. The approach also uses a bitmap to efficiently encode JSON-LD structures and a carefully width-encoded list of indices to minimize bit use. Across six SSN-based JSON-LD examples, CBL achieves up to 95.5% savings and demonstrates robust performance improvements over prior methods, with ablation studies highlighting the importance of delta encoding and the full encoding pipeline for maximizing compression.
Abstract
The concept of Web of Things (WoT) merges web technologies with knowledge graphs in the context of Internet of Things. Given its widespread adoption in representing and exchanging structured data online, JSON-LD could be an effective format for WoT. Nevertheless, its verbose nature may present challenges for resource-constrained IoT devices with limited bandwidth and memory capacities. In this paper, we present a novel approach to compactly represent JSON-LD data using the Concise Binary Object Representation (CBOR) and bitmaps. Our proposed method is named as CBL which stands for CBOR, Bitmap and List of Key-value pairs. CBL leverages the ideas from CBOR and HDT to achieve an efficient encoding of JSON-LD data. Results demonstrate that our approach provides savings up to 95.1% in terms of network overhead. This could be especially beneficial for IoT devices exchanging data over wireless networks. Moreover, our approach is more efficient than the current approach known as CBOR-LD, which is used to compact JSON-LD data.
