SlideShare a Scribd company logo
Lessons from Building FIWARE Environment
with IoT Agent
Yuji Azama
Hideyasu Hayashi
Okinawa Open Laboratory / NEC Solution Innovators, Ltd.
November 28th, 2018
Okinawa Open Laboratory
Topics
■ About Okinawa Open Laboratory (OOL)
■ Our Motivation and Environment
■ How to define the data model in FIWARE to utilizing data
■ How to define Entity ID to utilizing data
■ FIWARE in Okinawa
■ Summary
2
3
China
Japan
ASEAN
Okinawa
Center of the
Asian Dynamism
Cities located 4 hours
or less from Okinawa
Narita
Souel
NagoyaKansai
Haneda
Dailian
Beijing
Shanghai
Tsingtao
Guangzhou
Taipei
Hong Kong
Hanoi
Bangkok
Ho Chi Minh
Kuala Lumpur
Manila
Singapore
Jakarta
OOL is an international research institute
in Urasoe City, Okinawa, Japan
the Center of the Asian Dynamism
Urasoe
City Okinawa Main Island
Promote the Practical Application
and Dissemination of
Advanced ICT Platform Technologies
Mission
Okinawa Open Laboratory (OOL)
Activities
Researching IoT, Cloud Computing and NFV
Hosting Test Bed, Education and Conference
Okinawa Open Laboratory
Motivation
■ Goal
■ Promote utilization and exchange of IoT data
■ Why do we need FIWARE?
■ Open Source and based on standard
■ Allows small start by selecting necessary components
■ Our Trial
■ Detect odor, temperature and humidity around our office by
sensors and grasp the trend
4
Okinawa Open Laboratory
Testing Environment
■ Sensing metrics to track air quality
around the office
■ Temperature
■ Humidity
■ Gas (Odor)
■ Each sensor connects to
the Raspberry Pi
■ Sensor data is sent to FIWARE
5
DHT 11
Temperature and
Relative Humidity
MQ 135
GAS for Air Quality
Okinawa Open Laboratory
Components of Our Environment
6
Short Time History
Quantum Leap
Orion Context Broker
IoT Agent JSON
Monsquitto MQTT Broker
Device(RaspberryPi)
GAS for Air Quality
Sensor
Temperature and
Relative Humidity
Sensor
Okinawa Open Laboratory
Our Sensors and Visualized data by FIWARE
7
Raspberry Pi and sensors
Visualized data of sensors
Okinawa Open Laboratory
Issues in consuming sensor data
■ #1: Different data format per sensor
■ #2: Free format of entity ID
8
Okinawa Open Laboratory
#1: Different data format per sensor
■ Every sensor has its own data format :(
■ Difficult to search by Entity Types
■ RoomStatus, RoomInfo, Room, room
■ Difficult to search by Attributes
■ temperature, temp, temp_value, t
■ Difficult to aggregate data which have unit of
no uniformity in attribute value
■ ℃, °F, %,
■ Many expressions of Date Time
■ 2018-10-12T12:00+09:00 (ISO 8601)
■ 1539345600 (Unix Timestamp)
■ 2018/10/12 12:00:00.000 (Custom)
9
Temperature1
,Temp2=27°,
temp=25,unit
=degree,
timestampe:y
yyy:mm:dd
The accumulated data
Data Consumer
It is not easy to retrieve data by filtering
Okinawa Open Laboratory
#1: Different data format per sensor
■ Problem
■ It is not easy to retrieve data by filtering
■ Difficult to build queries
■ Solution
■ Normalizing accumulated data
by applying standardized data model
Normalizing consuming(accumulated) data a
10
Okinawa Open Laboratory
#1: FIWARE Data Models
■ The data models developed and
recommended for use in the FIWARE
community.
■ The data models have been
harmonized to enable data portability
for different applications including,
but not limited, to Smart Cities.
11https://www.fiware.org/developers/data-models/
Okinawa Open Laboratory
#1: Data model decision process in FIWARE
■ FIWARE Data Models recommends the reuse of existing data models.
1. Find in “FIWARE Data Models ”
1. Find in “Schema.org” Data models
1. Find in other community’s data models
example:Open311(standard for civic issue tracking),
Datex Ⅱ( traffic information and data), and so on.
1. Define your own data models.
12
Not exist
Not exist
Not exist
Okinawa Open Laboratory
#1: Data model we use
■ 「AirQualityObserved」
13Excerpt Schema list
Values of attribute
Okinawa Open Laboratory
#1: Applying “Air Quality Observed” data model
■ Improvements
■ The data model doesn’t
depend on the type of
sensor.
■ The data model doesn’t
depend on the context
provider.
■ Aggregation became
easier
14
{
“devices”: [{
“device_id”: “MySensor01”,
“entity_name”: “urn:ngsi-ld:AirQualityObserved:Sensor001”,
“entity_type”: “AirQualityObserved”,
“attributes”: [
{ “name”: “airQualityLevel”, “object_id”: “aql”, “type”: “Text” },
{ “name”: “airQualityIndex”, “object_id”: “aqi”, “type”: “Number” },
{ “name”: “relativeHumidity”, “object_id”: “h”, “type”: “Number” },
{ “name”: “temperature”, “object_id”: “t”, “type”: “Number” },
{ “name”: “TimeInstant”, “object_id”: “time”, “type”: “DateTime” }
],
“static_attributes”: [
{ “name”: “address”, “type”: “PostalAddress”, “value”: {
“addressCountry”: “JP”,
“addressLocality”: “Okinawa”,
“streetAddress”: “61, Kanekadan, Uruma-shi” }},
{ “name”: “reliability”, “type”: “Number”, “value”: “0.9” }
],
“transport”: “MQTT”
}]
}
A device definition JSON of IoT Agent
Okinawa Open Laboratory
#2: Problems of free format of Entity ID
■ How to keep Entity ID Uniqueness and Readability?
■ Duplicate management of Entity ID is difficult when there are
many types of sensor
■ Entity ID should be managed in common format by all users
■ How to define the naming rule of Entity ID?
■ It is hard to define a naming rule from scratch
15
Okinawa Open Laboratory
#2: Free format of Entity ID
■ Problem
■ The format depends on the definition of ContextProvider
■ How to keep Entity ID Uniqueness and Readability?
■ How to define the naming rule of Entity ID?
■ Solution
■ Use Entity ID based on NGSI-LD
Normalizing consuming(accumulated) data a
16
Okinawa Open Laboratory
#2: Readable, Clean and Simple Entity ID
■ A gap of NGSIv2 and NGSI-LD
■ Even in NGSIv2 specification, it is possible to define Entity ID by the
specification of the NGSI-LD.
■ NGSI-LD defines a URN Namespace that makes API users to design
readable, clean and simple identifiers.
■ URN Namespace
■ A URN is an identifier to identify a resource on the network by name.
■ Specification of URN Namespace
■ Namespace IDentifier(NID): “ngsi-ld”
■ Namespace Specific String(NSS): <EntityTypeName>“:”<EntityIdentificationString>
■ Example of Entity ID: urn:ngsi-ld:Person:28976543
17
NID NSS
Okinawa Open Laboratory
#2: Apply Entity ID based on NGSI-LD
■ Improvements
■ The Entity ID format doesn’t depends on Context Provider
■ Easy to keep Uniqueness and Readability
18
$ curl http://orion:1026/v2/entities/urn:ngsi-ld:AirQualityObserved:Sensor001
{
"id": "urn:ngsi-ld:AirQualityObserved:Sensor001",
"type": "AirQualityObserved",
"TimeInstant": {"type": "DateTime", "value": "2018-11-16T10:26:01.768041+09:00", "metadata": {}},
"address": {"type": "PostalAddress", "value": {"addressCountry": "JP", ・・・}, "metadata": {・・・}},
"airQualityIndex": {"type": "Number", "value": 45, "metadata": {・・・}},
"airQualityLevel": {"type": "Text", "value": "Good", "metadata": {・・・}},
"relativeHumidity": {"type": "Number", "value": 64, "metadata": {・・・}},
"reliability": {"type": "Number", "value": 0.9, "metadata": {・・・}},
"temperature": {"type": "Number", "value": 28, "metadata": {・・・}}
}
Retrieve context data from Orion by Entity ID based on NGSI-LD
Okinawa Open Laboratory
FIWARE in Okinawa
■ Projects on smart cities and IoT are coming up one after
another.
■ “Open Platform for Smart City” has been launched
■ Launched by NEC at Oct 2018
■ “FIWARE-as-a-Service”
■ Free of charge
■ First targets are companies and
government agencies in Japan.
■ Planed to expand to Asia.
19
Ready-for-use FIWARE environment
will bring many smart cities/IoT apps !!
Okinawa Open Laboratory
Summary
■ Our FIWARE environment is working correctly
■ Need some skills such as sensor, networking, container and so on
■ Not difficult to work FIWARE itself
■ Important to normalize data models to consume data
efficiently
■ Use FIWARE Data Models or Schema.org
■ Use Entity ID based on NGSI-LD specification
■ FIWARE-as-a-Service has been launched in Okinawa
■ Ready-for-use FIWARE env should encourage more FIWARE usage
20
Thank you
21

More Related Content

PPTX
FIWARE Wednesday Webinars - How to Design DataModels
PDF
FIWARE Global Summit - NGSI-LD - NGSI with Linked Data
PDF
FIWARE Global Summit - NGSI-LD: Modelling, Linking and Utilizing Context Info...
PDF
Data Modeling with NGSI, NGSI-LD
PDF
Session 2 - NGSI-LD primer & Smart Data Models | Train the Trainers Program
PDF
Session 5 - NGSI-LD Advanced Operations | Train the Trainers Program
PDF
FIWARE Global Summit - Hands-On NGSI-LD
PDF
FIWARE Wednesday Webinars - Introduction to NGSI-LD
FIWARE Wednesday Webinars - How to Design DataModels
FIWARE Global Summit - NGSI-LD - NGSI with Linked Data
FIWARE Global Summit - NGSI-LD: Modelling, Linking and Utilizing Context Info...
Data Modeling with NGSI, NGSI-LD
Session 2 - NGSI-LD primer & Smart Data Models | Train the Trainers Program
Session 5 - NGSI-LD Advanced Operations | Train the Trainers Program
FIWARE Global Summit - Hands-On NGSI-LD
FIWARE Wednesday Webinars - Introduction to NGSI-LD

What's hot (20)

PDF
Session 7 - Connecting to Legacy Systems, IoT and other Systems | Train the T...
PDF
FIWARE Global Summit - NGSI-LD – an Evolution from NGSIv2
PDF
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
PDF
MongoDB .local Paris 2020: Les bonnes pratiques pour travailler avec les donn...
PDF
One Ontology, One Data Set, Multiple Shapes with SHACL
PDF
FIWARE Global Summit - Real-time Processing of Historic Context Information u...
PDF
From Knowledge Graphs to AI-powered SEO: Using taxonomies, schemas and knowle...
PDF
MongoDB .local Chicago 2019: Still Haven't Found What You Are Looking For? Us...
PPTX
Jumpstart: Introduction to Schema Design
PPTX
Mark Logic StrangeLoop 2010
PPTX
Building Spring Data with MongoDB
PPTX
Tutorial: Building Your First App with MongoDB Stitch
PPTX
Data Analytics: Understanding Your MongoDB Data
PPTX
Orion Context Broker NGSI-v2 Overview for Developers That Already Know Ngsi-v...
PPTX
Addressing Your Backup Needs Using Ops Manager and Atlas
PDF
MongoDB .local Chicago 2019: Using MongoDB Transactions to Implement Cryptogr...
PDF
MongoDB Atlas Workshop - Singapore
PDF
GraphChain
PDF
MongoDB World 2019: MongoDB in Data Science: How to Build a Scalable Product ...
PPTX
Comprehensive overview FAPI 1 and FAPI 2
Session 7 - Connecting to Legacy Systems, IoT and other Systems | Train the T...
FIWARE Global Summit - NGSI-LD – an Evolution from NGSIv2
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
MongoDB .local Paris 2020: Les bonnes pratiques pour travailler avec les donn...
One Ontology, One Data Set, Multiple Shapes with SHACL
FIWARE Global Summit - Real-time Processing of Historic Context Information u...
From Knowledge Graphs to AI-powered SEO: Using taxonomies, schemas and knowle...
MongoDB .local Chicago 2019: Still Haven't Found What You Are Looking For? Us...
Jumpstart: Introduction to Schema Design
Mark Logic StrangeLoop 2010
Building Spring Data with MongoDB
Tutorial: Building Your First App with MongoDB Stitch
Data Analytics: Understanding Your MongoDB Data
Orion Context Broker NGSI-v2 Overview for Developers That Already Know Ngsi-v...
Addressing Your Backup Needs Using Ops Manager and Atlas
MongoDB .local Chicago 2019: Using MongoDB Transactions to Implement Cryptogr...
MongoDB Atlas Workshop - Singapore
GraphChain
MongoDB World 2019: MongoDB in Data Science: How to Build a Scalable Product ...
Comprehensive overview FAPI 1 and FAPI 2
Ad

Similar to FIWARE Global Summit - Lessons from Building FIWARE Environment with IoT Agent (20)

PDF
FIWARE Tech Summit - Quantum Leap - A FIWARE Ttme-series DB
PDF
Elasticsearch Performance Testing and Scaling @ Signal
PPTX
Context Information Management in IoT enabled smart systems - the basics
PDF
Sherlock: an anomaly detection service on top of Druid
PPTX
MDM-2013, Milan, Italy, 6 June, 2013
PDF
Closing the Loop in Extended Reality with Kafka Streams and Machine Learning ...
PDF
Virtual Knowledge Graphs for Federated Log Analysis
PPTX
Powering Rails Application With PostgreSQL
PDF
Making web stack tasty using Cloudformation
PPTX
MongoDB IoT City Tour EINDHOVEN: Managing the Database Complexity
PPTX
Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...
PDF
MongoDB Performance Tuning
PDF
MongoDB and the Internet of Things
PDF
02_Chapter_WorkLoads_DataModeling_Mongodb.pdf
PDF
02_Chapter_WorkLoads_DataModeling_Mongodb.pdf
PPTX
MongoDB Best Practices
PPTX
Webinar: Best Practices for Getting Started with MongoDB
PPTX
MongoDB IoT City Tour STUTTGART: Managing the Database Complexity, by Arthur ...
PDF
MongoDB Europe 2016 - Enabling the Internet of Things at Proximus - Belgium's...
PPTX
Michael Poremba, Director, Data Architecture at Practice Fusion
FIWARE Tech Summit - Quantum Leap - A FIWARE Ttme-series DB
Elasticsearch Performance Testing and Scaling @ Signal
Context Information Management in IoT enabled smart systems - the basics
Sherlock: an anomaly detection service on top of Druid
MDM-2013, Milan, Italy, 6 June, 2013
Closing the Loop in Extended Reality with Kafka Streams and Machine Learning ...
Virtual Knowledge Graphs for Federated Log Analysis
Powering Rails Application With PostgreSQL
Making web stack tasty using Cloudformation
MongoDB IoT City Tour EINDHOVEN: Managing the Database Complexity
Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...
MongoDB Performance Tuning
MongoDB and the Internet of Things
02_Chapter_WorkLoads_DataModeling_Mongodb.pdf
02_Chapter_WorkLoads_DataModeling_Mongodb.pdf
MongoDB Best Practices
Webinar: Best Practices for Getting Started with MongoDB
MongoDB IoT City Tour STUTTGART: Managing the Database Complexity, by Arthur ...
MongoDB Europe 2016 - Enabling the Internet of Things at Proximus - Belgium's...
Michael Poremba, Director, Data Architecture at Practice Fusion
Ad

More from FIWARE (20)

PPTX
Behm_Herne_NeMo_akt.pptx
PDF
Katharina Hogrebe Herne Digital Days.pdf
PPTX
Christoph Mertens_IDSA_Introduction to Data Spaces.pptx
PPTX
Behm_Herne_NeMo.pptx
PPTX
Evangelists + iHubs Promo Slides.pptx
PPTX
Lukas Künzel Smart City Operating System.pptx
PPTX
Pierre Golz Der Transformationsprozess im Konzern Stadt.pptx
PPTX
Dennis Wendland_The i4Trust Collaboration Programme.pptx
PPTX
Ulrich Ahle_FIWARE.pptx
PPTX
Aleksandar Vrglevski _FIWARE DACH_OSIH.pptx
PDF
Water Quality - Lukas Kuenzel.pdf
PPTX
Cameron Brooks_FGS23_FIWARE Summit_Keynote_Cameron.pptx
PPTX
FiWareSummit.msGIS-Data-to-Value.2023.06.12.pptx
PPTX
Boris Otto_FGS2023_Opening- EU Innovations from Data_PUB_V1_BOt.pptx
PPTX
Bjoern de Vidts_FGS23_Opening_athumi - bjord de vidts - personal data spaces....
PDF
Abdulrahman Ibrahim_FGS23 Opening - Abdulrahman Ibrahim.pdf
PDF
FGS2023_Opening_Red Hat Keynote Andrea Battaglia.pdf
PPTX
HTAG_Skalierung_Plattform_lokal_final_versand.pptx
PPTX
WE_LoRaWAN _ IoT.pptx
PPTX
EU Opp_Clara Pezuela - German chapter.pptx
Behm_Herne_NeMo_akt.pptx
Katharina Hogrebe Herne Digital Days.pdf
Christoph Mertens_IDSA_Introduction to Data Spaces.pptx
Behm_Herne_NeMo.pptx
Evangelists + iHubs Promo Slides.pptx
Lukas Künzel Smart City Operating System.pptx
Pierre Golz Der Transformationsprozess im Konzern Stadt.pptx
Dennis Wendland_The i4Trust Collaboration Programme.pptx
Ulrich Ahle_FIWARE.pptx
Aleksandar Vrglevski _FIWARE DACH_OSIH.pptx
Water Quality - Lukas Kuenzel.pdf
Cameron Brooks_FGS23_FIWARE Summit_Keynote_Cameron.pptx
FiWareSummit.msGIS-Data-to-Value.2023.06.12.pptx
Boris Otto_FGS2023_Opening- EU Innovations from Data_PUB_V1_BOt.pptx
Bjoern de Vidts_FGS23_Opening_athumi - bjord de vidts - personal data spaces....
Abdulrahman Ibrahim_FGS23 Opening - Abdulrahman Ibrahim.pdf
FGS2023_Opening_Red Hat Keynote Andrea Battaglia.pdf
HTAG_Skalierung_Plattform_lokal_final_versand.pptx
WE_LoRaWAN _ IoT.pptx
EU Opp_Clara Pezuela - German chapter.pptx

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Electronic commerce courselecture one. Pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
MYSQL Presentation for SQL database connectivity
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Approach and Philosophy of On baking technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Machine Learning_overview_presentation.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
20250228 LYD VKU AI Blended-Learning.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced methodologies resolving dimensionality complications for autism neur...
sap open course for s4hana steps from ECC to s4
Per capita expenditure prediction using model stacking based on satellite ima...
Electronic commerce courselecture one. Pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars
Network Security Unit 5.pdf for BCA BBA.
Reach Out and Touch Someone: Haptics and Empathic Computing
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
MYSQL Presentation for SQL database connectivity
MIND Revenue Release Quarter 2 2025 Press Release
Approach and Philosophy of On baking technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Machine Learning_overview_presentation.pptx
cuic standard and advanced reporting.pdf
Encapsulation theory and applications.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton

FIWARE Global Summit - Lessons from Building FIWARE Environment with IoT Agent

  • 1. Lessons from Building FIWARE Environment with IoT Agent Yuji Azama Hideyasu Hayashi Okinawa Open Laboratory / NEC Solution Innovators, Ltd. November 28th, 2018
  • 2. Okinawa Open Laboratory Topics ■ About Okinawa Open Laboratory (OOL) ■ Our Motivation and Environment ■ How to define the data model in FIWARE to utilizing data ■ How to define Entity ID to utilizing data ■ FIWARE in Okinawa ■ Summary 2
  • 3. 3 China Japan ASEAN Okinawa Center of the Asian Dynamism Cities located 4 hours or less from Okinawa Narita Souel NagoyaKansai Haneda Dailian Beijing Shanghai Tsingtao Guangzhou Taipei Hong Kong Hanoi Bangkok Ho Chi Minh Kuala Lumpur Manila Singapore Jakarta OOL is an international research institute in Urasoe City, Okinawa, Japan the Center of the Asian Dynamism Urasoe City Okinawa Main Island Promote the Practical Application and Dissemination of Advanced ICT Platform Technologies Mission Okinawa Open Laboratory (OOL) Activities Researching IoT, Cloud Computing and NFV Hosting Test Bed, Education and Conference
  • 4. Okinawa Open Laboratory Motivation ■ Goal ■ Promote utilization and exchange of IoT data ■ Why do we need FIWARE? ■ Open Source and based on standard ■ Allows small start by selecting necessary components ■ Our Trial ■ Detect odor, temperature and humidity around our office by sensors and grasp the trend 4
  • 5. Okinawa Open Laboratory Testing Environment ■ Sensing metrics to track air quality around the office ■ Temperature ■ Humidity ■ Gas (Odor) ■ Each sensor connects to the Raspberry Pi ■ Sensor data is sent to FIWARE 5 DHT 11 Temperature and Relative Humidity MQ 135 GAS for Air Quality
  • 6. Okinawa Open Laboratory Components of Our Environment 6 Short Time History Quantum Leap Orion Context Broker IoT Agent JSON Monsquitto MQTT Broker Device(RaspberryPi) GAS for Air Quality Sensor Temperature and Relative Humidity Sensor
  • 7. Okinawa Open Laboratory Our Sensors and Visualized data by FIWARE 7 Raspberry Pi and sensors Visualized data of sensors
  • 8. Okinawa Open Laboratory Issues in consuming sensor data ■ #1: Different data format per sensor ■ #2: Free format of entity ID 8
  • 9. Okinawa Open Laboratory #1: Different data format per sensor ■ Every sensor has its own data format :( ■ Difficult to search by Entity Types ■ RoomStatus, RoomInfo, Room, room ■ Difficult to search by Attributes ■ temperature, temp, temp_value, t ■ Difficult to aggregate data which have unit of no uniformity in attribute value ■ ℃, °F, %, ■ Many expressions of Date Time ■ 2018-10-12T12:00+09:00 (ISO 8601) ■ 1539345600 (Unix Timestamp) ■ 2018/10/12 12:00:00.000 (Custom) 9 Temperature1 ,Temp2=27°, temp=25,unit =degree, timestampe:y yyy:mm:dd The accumulated data Data Consumer It is not easy to retrieve data by filtering
  • 10. Okinawa Open Laboratory #1: Different data format per sensor ■ Problem ■ It is not easy to retrieve data by filtering ■ Difficult to build queries ■ Solution ■ Normalizing accumulated data by applying standardized data model Normalizing consuming(accumulated) data a 10
  • 11. Okinawa Open Laboratory #1: FIWARE Data Models ■ The data models developed and recommended for use in the FIWARE community. ■ The data models have been harmonized to enable data portability for different applications including, but not limited, to Smart Cities. 11https://www.fiware.org/developers/data-models/
  • 12. Okinawa Open Laboratory #1: Data model decision process in FIWARE ■ FIWARE Data Models recommends the reuse of existing data models. 1. Find in “FIWARE Data Models ” 1. Find in “Schema.org” Data models 1. Find in other community’s data models example:Open311(standard for civic issue tracking), Datex Ⅱ( traffic information and data), and so on. 1. Define your own data models. 12 Not exist Not exist Not exist
  • 13. Okinawa Open Laboratory #1: Data model we use ■ 「AirQualityObserved」 13Excerpt Schema list Values of attribute
  • 14. Okinawa Open Laboratory #1: Applying “Air Quality Observed” data model ■ Improvements ■ The data model doesn’t depend on the type of sensor. ■ The data model doesn’t depend on the context provider. ■ Aggregation became easier 14 { “devices”: [{ “device_id”: “MySensor01”, “entity_name”: “urn:ngsi-ld:AirQualityObserved:Sensor001”, “entity_type”: “AirQualityObserved”, “attributes”: [ { “name”: “airQualityLevel”, “object_id”: “aql”, “type”: “Text” }, { “name”: “airQualityIndex”, “object_id”: “aqi”, “type”: “Number” }, { “name”: “relativeHumidity”, “object_id”: “h”, “type”: “Number” }, { “name”: “temperature”, “object_id”: “t”, “type”: “Number” }, { “name”: “TimeInstant”, “object_id”: “time”, “type”: “DateTime” } ], “static_attributes”: [ { “name”: “address”, “type”: “PostalAddress”, “value”: { “addressCountry”: “JP”, “addressLocality”: “Okinawa”, “streetAddress”: “61, Kanekadan, Uruma-shi” }}, { “name”: “reliability”, “type”: “Number”, “value”: “0.9” } ], “transport”: “MQTT” }] } A device definition JSON of IoT Agent
  • 15. Okinawa Open Laboratory #2: Problems of free format of Entity ID ■ How to keep Entity ID Uniqueness and Readability? ■ Duplicate management of Entity ID is difficult when there are many types of sensor ■ Entity ID should be managed in common format by all users ■ How to define the naming rule of Entity ID? ■ It is hard to define a naming rule from scratch 15
  • 16. Okinawa Open Laboratory #2: Free format of Entity ID ■ Problem ■ The format depends on the definition of ContextProvider ■ How to keep Entity ID Uniqueness and Readability? ■ How to define the naming rule of Entity ID? ■ Solution ■ Use Entity ID based on NGSI-LD Normalizing consuming(accumulated) data a 16
  • 17. Okinawa Open Laboratory #2: Readable, Clean and Simple Entity ID ■ A gap of NGSIv2 and NGSI-LD ■ Even in NGSIv2 specification, it is possible to define Entity ID by the specification of the NGSI-LD. ■ NGSI-LD defines a URN Namespace that makes API users to design readable, clean and simple identifiers. ■ URN Namespace ■ A URN is an identifier to identify a resource on the network by name. ■ Specification of URN Namespace ■ Namespace IDentifier(NID): “ngsi-ld” ■ Namespace Specific String(NSS): <EntityTypeName>“:”<EntityIdentificationString> ■ Example of Entity ID: urn:ngsi-ld:Person:28976543 17 NID NSS
  • 18. Okinawa Open Laboratory #2: Apply Entity ID based on NGSI-LD ■ Improvements ■ The Entity ID format doesn’t depends on Context Provider ■ Easy to keep Uniqueness and Readability 18 $ curl http://orion:1026/v2/entities/urn:ngsi-ld:AirQualityObserved:Sensor001 { "id": "urn:ngsi-ld:AirQualityObserved:Sensor001", "type": "AirQualityObserved", "TimeInstant": {"type": "DateTime", "value": "2018-11-16T10:26:01.768041+09:00", "metadata": {}}, "address": {"type": "PostalAddress", "value": {"addressCountry": "JP", ・・・}, "metadata": {・・・}}, "airQualityIndex": {"type": "Number", "value": 45, "metadata": {・・・}}, "airQualityLevel": {"type": "Text", "value": "Good", "metadata": {・・・}}, "relativeHumidity": {"type": "Number", "value": 64, "metadata": {・・・}}, "reliability": {"type": "Number", "value": 0.9, "metadata": {・・・}}, "temperature": {"type": "Number", "value": 28, "metadata": {・・・}} } Retrieve context data from Orion by Entity ID based on NGSI-LD
  • 19. Okinawa Open Laboratory FIWARE in Okinawa ■ Projects on smart cities and IoT are coming up one after another. ■ “Open Platform for Smart City” has been launched ■ Launched by NEC at Oct 2018 ■ “FIWARE-as-a-Service” ■ Free of charge ■ First targets are companies and government agencies in Japan. ■ Planed to expand to Asia. 19 Ready-for-use FIWARE environment will bring many smart cities/IoT apps !!
  • 20. Okinawa Open Laboratory Summary ■ Our FIWARE environment is working correctly ■ Need some skills such as sensor, networking, container and so on ■ Not difficult to work FIWARE itself ■ Important to normalize data models to consume data efficiently ■ Use FIWARE Data Models or Schema.org ■ Use Entity ID based on NGSI-LD specification ■ FIWARE-as-a-Service has been launched in Okinawa ■ Ready-for-use FIWARE env should encourage more FIWARE usage 20