Module 4
Module 4
The Internet of Things (IoT) and the Web of Things (WoT) are complementary
concepts, but they approach the integration of devices and systems differently.
Below is a detailed comparison of the two:
1. Definition
2. Goals
IoT:
• Focuses on connecting devices and enabling them to communicate with each
other.
• Emphasizes hardware, connectivity, and network protocols (e.g., MQTT,
CoAP).
• Provides the foundational infrastructure for device communication.
WoT:
• Builds on IoT infrastructure and aims to simplify device interaction
through web technologies.
• Standardizes access to IoT devices by using web protocols (e.g., HTTP,
JSON).
• Focuses on user-centric and application-level interoperability.
3. Architecture
IoT:
• Typically uses specialized protocols like MQTT, CoAP, Zigbee, and
LoRaWAN.
• Device communication is often limited to the local network or proprietary
platforms.
• Data is collected and processed in cloud-based systems or edge computing
environments.
WoT:
• Wraps IoT devices with web-friendly APIs (e.g., RESTful APIs) to make
them accessible via the web.
• Utilizes web protocols like HTTP, WebSockets, and JSON-LD for data
representation and interaction.
• Integrates with the World Wide Web for seamless interaction across
devices and applications.
IoT:
• Focuses on networking and low-level protocols.
• Common protocols include:
• MQTT (Message Queuing Telemetry Transport)
• CoAP (Constrained Application Protocol)
• Bluetooth, Zigbee, LoRaWAN
• Proprietary standards (vendor-specific implementations).
WoT:
• Adopts web standards and semantic technologies to achieve
interoperability.
• Common protocols and standards include:
• HTTP/HTTPS for communication.
• JSON/JSON-LD for data representation.
• WebSockets for real-time interaction.
• W3C WoT specifications for standardization.
5. Interoperability
IoT:
• Interoperability is a significant challenge due to the variety of
protocols, platforms, and vendors.
• Often relies on proprietary solutions or middleware to bridge gaps.
WoT:
• Designed to enhance interoperability by leveraging the universal
standards of the web.
• Makes devices discoverable and accessible through web
technologies, ensuring seamless integration.
6. Security
IoT:
• Security depends on the protocols used (e.g., DTLS for CoAP,
SSL/TLS for MQTT).
• Fragmentation in standards leads to inconsistent security
implementations.
• Often vulnerable to attacks due to weak or outdated security
measures.
WoT:
• Inherits security measures from the web, such as HTTPS, OAuth,
and API keys.
• Centralized security mechanisms make it easier to implement strong
and consistent protections.
7. Complexity
IoT:
• Complexity arises from managing heterogeneous devices, networks,
and protocols.
• Often requires device-specific libraries, SDKs, or middleware for
integration.
WoT:
• Simplifies development by abstracting device complexities through
web interfaces.
• Provides standardized APIs, reducing the need for custom
integrations.
8. Use Cases
IoT:
• Industrial automation (IIoT).
• Smart cities (traffic management, waste management).
• Healthcare (remote monitoring, wearable devices).
• Agriculture (precision farming).
WoT:
• Smart home integration (interoperable devices using web APIs).
• Cross-platform web applications (e.g., a single interface for multiple
IoT devices).
• Lightweight IoT applications in web browsers.
9. Developer Experience
IoT:
• Requires expertise in networking, low-level programming, and
device-specific SDKs.
• Development is often hardware-focused.
WoT:
• Focuses on application-layer development using familiar web
technologies (HTML, JavaScript, JSON).
• Enables rapid prototyping and cross-platform application
development.
IoT:
• MQTT, CoAP, Zigbee, LoRaWAN, Bluetooth LE, NB-IoT.
WoT:
• RESTful APIs, WebSockets, JSON/JSON-LD, W3C WoT
standards, OpenAPI.
IoT:
• Data from IoT devices is often locked within proprietary ecosystems
or platforms.
• Access to device data may require specific SDKs, APIs, or custom
middleware solutions.
WoT:
• WoT uses web-based APIs and protocols to make data more
accessible and sharable across platforms.
• Devices can expose their data directly via REST APIs or
standardized web protocols, enabling easy integration into third-party
applications.
IoT:
• IoT is primarily about creating a connected network of devices and
infrastructure.
• The focus is on building the foundational communication systems
between “things.”
WoT:
• WoT evolves from IoT, aiming to extend its vision by making
devices part of the broader web ecosystem.
• It envisions a future where IoT devices interact seamlessly with
existing web technologies, promoting global connectivity.
IoT:
• Requires developers to learn new technologies, protocols, and
sometimes proprietary languages.
• Development tools often depend on the specific IoT platform or
manufacturer.
WoT:
• Leverages established web technologies (e.g., JavaScript, JSON,
HTML, HTTP), which are already well-known to developers.
• Simplifies development, reducing the learning curve for creating IoT
applications.
15. Scalability
IoT:
• Designed to scale across millions of devices but often faces
challenges in ensuring seamless integration across heterogeneous systems.
• Scalability is constrained by proprietary ecosystems and protocols.
WoT:
• Facilitates scalability by adopting web standards that are inherently
designed for global use.
• Web technologies like HTTP and JSON simplify adding new
devices and services, ensuring long-term scalability.
IoT:
• Focuses on data communication but often lacks standardized
semantic models.
• Devices may communicate, but understanding the meaning of the
data may require proprietary tools.
WoT:
• Implements semantic web principles (e.g., JSON-LD, RDF) to
provide contextual meaning to data.
• This ensures devices and applications can not only exchange data
but also understand it in a standardized manner.
IoT:
• May face challenges integrating legacy devices or systems due to
differences in protocols and standards.
• Requires middleware to bridge gaps between old and new
technologies.
WoT:
• Simplifies integration by wrapping legacy systems with web APIs,
making them compatible with modern web technologies.
• Provides an efficient path to modernize legacy systems.
IoT:
• High initial costs due to proprietary hardware, specialized software,
and vendor lock-in.
• Ongoing costs for maintaining separate infrastructures and tools for
different ecosystems.
WoT:
• Reduces costs by leveraging open web technologies and standards.
• Eliminates the need for vendor-specific tools, encouraging
reusability and reducing development expenses.
21. Examples
IoT:
• Smart thermostats communicating via Zigbee.
• Industrial sensors sending data to proprietary cloud platforms for
analysis.
WoT:
• A smart home system where devices expose their functionalities as
REST APIs and are accessible via a browser or smartphone app.
• Devices such as lights, cameras, and locks working together
seamlessly through web protocols.
IoT:
• Envisions a “connected world” where devices interact through
networks.
• Focus is on devices and their connectivity.
WoT:
• Envisions a “web-connected world” where devices, data, and
applications form an interoperable ecosystem.
• Focus is on enabling smarter, human-centric IoT solutions through
web integration.
Conclusion
Example:
• The URI https://www.wikipedia.org uniquely identifies the Wikipedia
homepage.
Example:
When you type https://www.wikipedia.org into a browser, an HTTP GET request
retrieves the webpage content.
Together, URIs and HTTP form the core architecture of the web:
• URIs uniquely identify resources.
• HTTP provides a protocol for accessing and interacting with these
resources.
This combination enables the World Wide Web to function as a decentralized and
scalable platform for sharing and accessing information globally.
Example:
A smart light bulb could describe its properties (brightness, color), actions (turn
on/off), and events (power status) in a machine-readable format like JSON-LD.
Any WoT-compatible application can use this metadata to interact with the device
without needing proprietary APIs.
Example:
A WoT-enabled thermostat could expose a RESTful API to allow applications to
read its current temperature or set a target temperature using standard HTTP
requests.
These two pillars work together to simplify IoT application development and
integration:
• Standardized Metadata and Semantics: Ensures devices can describe their
functionality in a universally understandable way.
• Web-Based Protocols and APIs: Provides the means to interact with these
devices consistently using web standards.
Together, they form the foundation for an open, interoperable, and scalable
ecosystem that integrates IoT devices seamlessly into the World Wide Web.
The Web of Things (WoT) aims to standardize the interaction and integration of
IoT devices using web technologies. The architecture standardization is driven
by the World Wide Web Consortium (W3C) to ensure seamless interoperability,
scalability, and flexibility. Below are the key elements of WoT architecture
standardization:
Example:
• A smart thermostat’s TD might specify:
• Properties: Current temperature, target temperature.
• Actions: Increase/decrease temperature.
• Events: Temperature threshold exceeded.
2. Protocol Bindings
Definition: Maps the abstract interactions defined in the Thing Description to
specific communication protocols (e.g., HTTP, MQTT, CoAP).
Purpose: Ensures flexibility in the choice of communication protocols.
Features:
• Allows devices to support multiple protocols for diverse
environments.
• Standardized mappings ensure consistency across implementations.
Example:
• A light bulb might expose its control functions over both HTTP
(RESTful API) and MQTT (publish/subscribe).
Example:
A script written using the WoT API can control a light bulb by invoking the
“turnOn” action, irrespective of the communication protocol.
Interactions:
• Things expose their metadata through TDs.
• Consumers use the WoT API to discover and interact with devices.
• The runtime manages communication, security, and data exchange.
Example:
A smart lock may require token-based authentication (OAuth2) before allowing
access to its “unlock” action.
6. Semantic Interoperability
Example:
• A healthcare monitoring system can interpret data from multiple devices
(e.g., heart rate monitors, glucose sensors) using semantic annotations.
7. Modular and Decentralized Design
8. Cross-Domain Integration
Example:
A home automation system can integrate with energy management devices and
security systems using WoT standards.
Conclusion
The platform middleware for the Web of Things (WoT) acts as an intermediary
layer that bridges IoT devices, data processing, and application services. It
abstracts complexities, enabling seamless communication, integration, and
management of diverse IoT devices using WoT standards. Middleware in the
WoT architecture ensures scalability, interoperability, and security while
simplifying development and deployment.
3. Data Management
• Collects, stores, and processes data from IoT devices.
• Handles data streaming, batch processing, and real-time analytics.
• Ensures semantic consistency using metadata standards like JSON-
LD and RDF.
7. Event Handling
• Manages subscription and notification mechanisms to monitor
device events.
• Supports real-time event-based interaction patterns.
6. API Gateway
• Exposes unified APIs for developers to interact with devices and
services.
• Provides RESTful, GraphQL, or other interfaces for easy application
integration.
1. Eclipse Ditto
• Provides a platform for managing digital twins of IoT devices.
• Supports WoT Thing Descriptions for standardizing device
interactions.
2. Node-WoT
• An open-source implementation of the W3C WoT standard,
enabling developers to create and manage WoT devices.
3. IoTivity
• Facilitates device communication and service discovery, supporting
WoT integration.
Conclusion
The Unified Multitier WoT Architecture bridges the physical world of IoT
devices with the digital realm of applications and services, ensuring seamless
communication, management, and scalability. It achieves this through a layered
approach that organizes components into distinct tiers, enabling modularity,
interoperability, and flexibility.
1. Interoperability
• Ensures devices and services from different vendors can work
together seamlessly.
• Relies on Thing Descriptions and standardized APIs.
2. Scalability
• Supports scaling from small setups (e.g., a single home) to large
deployments (e.g., smart cities).
• Utilizes edge and cloud computing to manage increasing data
volumes.
3. Decoupling
• Separates the physical devices from the application logic to enable
modularity.
• Applications interact with devices through abstractions provided by
Thing Descriptions.
5. Semantic Consistency
• Uses semantic web technologies (e.g., JSON-LD, RDF) to ensure
consistent understanding of data across devices and applications.
2. Edge Processing:
• Localized analytics and protocol translation occur at this tier.
• Critical actions (e.g., alerts) are processed immediately, while non-
critical data is forwarded to the platform tier.
3. Platform Integration:
• Consolidates and analyzes data from multiple edge devices.
• Provides APIs for application development and external system
integration.
4. Application Utilization:
• Data and device interactions are visualized or utilized in automated
workflows.
• Users and systems interact with devices via user-friendly interfaces.
1. Smart Cities:
• Integrates traffic lights, waste management, and energy systems into
a unified platform.
• Real-time edge analytics ensure quick decision-making, while
centralized platforms provide long-term planning insights.
2. Healthcare:
• IoT devices monitor patients and provide real-time alerts at the edge.
• Centralized systems analyze historical data for trends and
predictions.
3. Industrial IoT:
• Edge tier handles real-time equipment monitoring and alerts.
• Platform tier consolidates data for predictive maintenance and
analytics.
Conclusion
The Unified Multitier WoT Architecture organizes IoT ecosystems into physical,
edge, platform, and application tiers, each playing a distinct role in enabling
scalable, interoperable, and secure IoT solutions. By leveraging WoT standards
like Thing Descriptions, protocol bindings, and semantic technologies, this
architecture ensures seamless integration and optimal performance across diverse
domains, including smart cities, healthcare, and industrial IoT.
The integration of Web of Things (WoT) Portals with Business Intelligence (BI)
unlocks powerful tools for managing, analyzing, and visualizing IoT data,
enabling organizations to make informed decisions and optimize operations.
WoT portals serve as the interface between users and the IoT ecosystem, while
BI provides the analytics layer to extract actionable insights from the collected
data. Together, they create a seamless framework for data-driven decision-
making in IoT-enabled environments.
WoT Portals are web-based platforms that enable users to interact with IoT
devices and services. They are built using WoT standards like Thing Descriptions
(TDs) and provide:
• A unified view of IoT devices and their capabilities.
• APIs for seamless interaction with IoT resources.
• Interfaces for controlling devices, monitoring data, and managing
workflows.
1. Device Management:
• Allows users to add, configure, and monitor IoT devices.
• Provides a dashboard for visualizing device states and properties.
2. Service Discovery: Enables discovery of available devices and services
through semantic descriptions.
1. Data Collection:
• IoT devices generate continuous streams of data, which is collected
through WoT interfaces.
2. Data Processing:
• Data is cleaned, aggregated, and transformed for analytics.
3. Data Analytics:
• BI tools use statistical and machine learning models to analyze data
trends, detect anomalies, and predict outcomes.
5. Decision Support:
• Provides actionable recommendations based on analytics to
optimize operations or improve customer experiences.
The combination of WoT portals and BI creates a robust ecosystem for IoT data
management and utilization. Here’s how they work together:
1. Unified Data Access: WoT portals aggregate data from diverse IoT
devices and standardize it using Thing Descriptions. BI tools consume this data
for analytics.
1. Smart Cities
• Portals provide a centralized interface for managing infrastructure
like lighting, traffic, and utilities.
• BI analyzes data for improving urban planning and reducing
resource waste.
3. Healthcare
• Remote patient monitoring through IoT devices integrated into a
WoT portal.
• BI tools analyze health data trends and provide actionable insights
for treatment.
4. Retail
• IoT-enabled inventory tracking systems integrated with WoT
portals.
• BI provides insights into customer behavior and optimizes stock
management.
Conclusion
WoT portals and Business Intelligence (BI) form a powerful combination for
maximizing the value of IoT ecosystems. While WoT portals enable seamless
interaction and management of IoT devices, BI tools provide the analytics
capabilities required for extracting actionable insights. Together, they empower
organizations to optimize operations, improve decision-making, and drive
innovation in various domains like smart cities, industrial automation, and
healthcare.