This document provides an introduction to core context management and the FIWARE Context Broker. It discusses key concepts like context data, entities, relationships, and the NGSI v2 interface. The context broker stores representations of real-world entities and their attributes, maintains the current state, and allows retrieving and updating context data via a REST API. Programs can also register other data sources and subscribe to changes in context.
2. Learning Goals
▪ What is Context Data?
▪ What is a Context Broker?
▪ What is NGSI v2?
▪ Introduction to harmonized data models
▪ How to read and update context data via REST
▪ How to assign relationships between Entities
▪ How to register other sources as context data
▪ How to subscribe to changes in context
1
4. FIWARE Catalogue
33
Data/APIManagement
PublicationMonetization
Core Context Management
(Context Broker)
Context
Processing, Analysis, Visualization
Interface to
IoT, Robotics and third party systems
Deploymenttools
3
Development of
Context-aware applications
(Orion, STH-Comet,
Cygnus, QuantumLeap, Draco)
Connection to the
Internet of Things
(IDAS, OpenMTC)
Real-time
processing of
context events
(Perseo)
Handling authorization
and access control to
APIs
(Keyrock, Wilma,
AuthZForce, APInf )
Publication and
Monetization of Context
Information
(CKAN extensions, Data/API
Biz Framework, IDRA)
Creation of
Application Dashboards
(Wirecloud)
Real-time
Processing of media
streams
(Kurento)
Business Intelligence
(Knowage)
Connection to robots
(Fast RTPS,Micro XRCE-DDS)
Big Data
Context Analysis
(Cosmos)
Cloud Edge
(FogFlow)
Documents exchange
(Domibus)
6. Data Entities and Relationships
▪A store is a real world bricks and mortar
building.
▪A shelf is a real world device to hold
objects which we wish to sell
▪A product is defined as something that we
sell - it is conceptual object.
▪An inventory item is another conceptual
entity, used to associate products, stores,
shelves and physical objects.
5
9. Summary
▪ Context data represents the state of a physical or conceptual object which exists
in the real world.
▪ The Orion Context Broker maintains a representation of the state of the entities:
• Entered programmatically
• Retrieved from sensors
• Augmented by other sources such as webservices, other context brokers etc.
▪ The context broker only holds the current state - it has no memory
▪ NGSI v2 is a vendor-neutral standardized interface for interactions within FIWARE
• Simple REST API for CRUD
• Subscriptions can be used raise events to send data to other microservices
• Registrations can be used to retrieve context from other sources
• Also supports Query Filtering + Pagination + Geoqueries
• Use the Open API Specification to generate a library
8