Presentation by Martin Bauer
Senior Researcher, NEC Labs Europe
José Manuel Cantera
Senior Standardization Expert, FIWARE Foundation
FIWARE Global Summit
27-28 November 2018
Malaga, Spain
FIWARE Global Summit - NGSI-LD - NGSI with Linked Data
1. NGSI-LD – NGSI with Linked Data
Martin Bauer – NEC Laboratories Europe
José Manuel Cantera Fonseca – FIWARE Foundation
November 2018 (Aligned with ETSI ISG CIM)
3. 2
‘Dealing’ with ‘Data’: 5 Star Model (W3C, Berners-Lee)
Open Data
The World Wide Web Consortium (W3C) has
developed a five star model to describe
different characteristics of open data, and its
usefulness for people wishing to reuse it. It is
being used globally as a model for assessing
data readiness for re-use.
The 3-star level is considered the minimum
standard for release of government’s public
data of single agencies for re-use.
The 4/5-star level is considered required
for multi-agency / multi-city scenarios
* Data is visible, licensed for reuse (CC), but requires considerable effort to reuse.
** Data is visible, licensed, and easy to reuse, but not necessarily by all.
*** Data is visible and easy to reuse by all (not restricted to using specific software).
**** Data is visible, easy to use and described (with meta data) in a standard fashion.
***** Data is visible, easy to use, described in a standard fashion and meaning is
clarified by being linked to a common definition (i.e. Ontology).
4. 3
Proprietary
Data
Open
Data
A.I.
CONTEXT INFORMATION MANAGEMENT:
EXCHANGE DATA AND DEFINITIONS (ONTOLOGY)
User
Apps
IoT
Context
Information
Management
APPs
APPs
APPs
Provenance Usage
Context
Information
Ontologies
Context
Information
Ontologies
Context
Information
Ontologies
Context
Information
Ontologies
Context
Information
Ontologies
Context
Information
Ontologies
Context
Information
Ontologies
Context
Information
Ontologies
NGSI-LD
NGSI-LD
Source: ETSI ISG CIM
5. 4
Standardizing NGSI-LD as Evolution of NGSI Context Interface Family
à ETSI Group Specification
Contact for ETSI ISG CIM:
Chairman: Lindsay Frost
ISGSupport@etsi.org
Open pages for consensus material:
https://docbox.etsi.org/ISG/CIM/Open
• visit at: https://portal.etsi.org/CIM
Timeframe:
• NGSI-LD v1.0 API Specification. Closed in December 2018
• UCs and other WIs beginning of 2019
ETSI INDUSTRY SPECIFICATION GROUP FOR CROSS-CUTTING
CONTEXT INFORMATION MANAGEMENT (ETSI ISG CIM)
Source: ETSI ISG CIM
6. 5
CAN WE (OR YOU) „KEEP IT SIMPLE“ ?
ETSI ISG CIM NGSI-LD API FEATURES (+LIMITS)
Information Model is Graph-based & information-centric
• Core concepts include Entities and Relationships
• Entities can have Properties and Relationships
• Relationships/Properties can also have Properties, Relationships
Referencing of defined/hierarchical vocabularies/ontologies
• All terms are unambiguously defined
• Allows users to reference their familiar information definitions
Model and Query language (is constrained so more predictable)
• Federation of (independent) information sources, anywhere
• Queries: based on entity type or ID, can filter results, can constrain geographic scope,
constrained not to traverse graph (only one level at a time)
Source: ETSI ISG CIM
10. Temporal Queries (e.g. for trend analysis)
Regular Query
“most recent”
GPS
Speedometer
Temporal Query
GPS
Speedometer
time time
included in result set
not included in result set
9
14. 13
Information Model - Highlights
§ NGSI Entity à Physical or virtual object.
§ It has (one) Entity Type.
§ Uniquely identified by an Entity Id (URI)
§ Entity has zero or more attributes identified by a name
§ Property --> Static or dynamic characteristic of an entity
§ GeoProperty (geospatial context)
§ TemporalProperty (time context)
§ Relationship à Association with a Linked entity (unidirectional)
§ Properties have a value
§ An NGSI value can be a single value (Number, String, boolean), or complex (Array, Structured
Value)
§ Relationships have an object
§ A URI which points to another entity (target of the relationship). Target can be a collection.
15. 14
Information Model – Highlights (II)
§ Cross-Domain, core properties for giving context to your information are
defined in a mandatory way, to be used by API operations (e.g. geo queries)
§ location à Geospatial location, encoded as GeoJSON.
§ observedAt à Observation timestamp, encoded as ISO8601. (timestamp)
§ createdAt à Creation timestamp (of entity, attribute). dateCreated in NGSIv2
§ modifiedAt à Update timestamp (of entity, attribute). dateModified in NGSIv2
§ unitCode à Units of measurement, encoded as mandated by UN/CEFACT.
§ Recommended practice
§ Use URIs to identify your entities.
§ A URN schema is provided off-the-shelf. It enables to know in advance what entity type
an id refers to
§ urn:ngsi-ld:<Entity_Type_Name>:<Entity_Identification_String>
29. 28
Overall strategy / timeline
§ Principles
§ Avoid vendor lock-in, i.e. a standard that only has one implementation.
§ NGSI-LD <> FIWARE.
§ Multiple implementations will be beneficial for the FIWARE Ecosystem and NGSI-LD in the end
§ FIWARE Foundation stimulates the development of different implementations by
§ welcoming and supporting the existence of multiple implementations of NGSI-LD
§ contributing to a common test suite that can be used by implementors to verify their compliance
to the specification.
§ devoting some resources to the extension of Orion for supporting NGSI-LD,
§ supporting and encouraging other alternative or complementary implementation initiatives
30. 29
Orion Context Broker – Next Steps
§ Plan
§ Evolve Orion to support NGSI-LD. First alpha (branched) version. Dec 2018.
§ During 2019 the integration with the main development branch will be done.
§ Full NGSI-LD support will take time.
31. 30
NEC’s Roadmap
§ NEC is developing NGSI-LD Broker, alpha version ready
§ Show and evaluate
§ Distribution and federation aspects
§ Scalability
§ Modular architecture
§ Use it in NEC‘s research and innovation projects, in particular
§ Autopilot
§ Synchronicity
§ CPaaS.io
§ Fed4IoT
§ Deployment with City of Heidelberg
§ Alpha-version of NGSI-LD Broker will be made available to project partners in a
FIWARE sandbox environment soon (together with other FIWARE GEs).
§ NEC is going to support development of common FIWARE test suite for NGSI-LD
§ Further steps regarding integrating into FIWARE ecosystem are under discussion
Orion Context Broker instances
NEC
NGSI-LD
Broker
Applications
This activity has partially received funding by the European Commission
(Horizon 2020 grant agreement No. 723076 (CPaaS.io), No. 814918
(Fed4IoT), No. 731993 (Autopilot) and No. 732240 (SynchroniCity)
34. 33
References
§ NGSI-LD Wrapper (Proxy on top of Orion)
§ https://github.com/Fiware/NGSI-LD_Wrapper
§ NGSI-LD Test Suite
§ https://github.com/Fiware/NGSI-LD_Tests
§ FIWARE Orion Context Broker (LD branch)
§ https://github.com/fiware/context.Orion-LD (check branches)
§ docker run fiware/orion-ld
35. Thank you!
http://fiware.org
Follow @FIWARE on Twitter
José Manuel Cantera Fonseca
FIWARE Foundation
Josemanuel.cantera@fiware.org
Martin Bauer
NEC Laboratories Europe
martin.bauer@neclab.eu