• Stars
    star
    212
  • Rank 186,122 (Top 4 %)
  • Language
    C++
  • License
    GNU Affero Genera...
  • Created about 11 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Context Broker and CEF building block for context data management, providing NGSI interfaces.

Orion Context Broker

FIWARE Core Context Management License badge Docker badge Support badge NGSI v2
Documentation badge Compliance Tests Unit Tests Functional Tests Status CII Best Practices

The Orion Context Broker is an implementation of the Publish/Subscribe Context Broker GE, providing an NGSI interface. Using this interface, clients can do several operations:

  • Query context information. The Orion Context Broker stores context information updated from applications, so queries are resolved based on that information. Context information consists on entities (e.g. a car) and their attributes (e.g. the speed or location of the car).
  • Update context information, e.g. send updates of temperature
  • Get notified when changes on context information take place (e.g. the temperature has changed)
  • Register context provider applications, e.g. the provider for the temperature sensor within a room

This project is part of FIWARE. For more information check the FIWARE Catalogue entry for Core Context Management.

๐Ÿ“š Documentation ๐ŸŽ“ Academy ๐Ÿณ Docker Hub ๐ŸŽฏ Roadmap

Content

Background

You can find the User & Programmer's Manual and the Installation & Administration Manual on readthedocs.io

Any feedback on this documentation is highly welcome, including bugs, typos or things you think should be included but aren't. You can use github issues to provide feedback.

Top

Description

Orion is a C++ implementation of the NGSIv2 REST API binding developed as a part of the FIWARE platform.

Orion Context Broker allows you to manage the entire lifecycle of context information including updates, queries, registrations and subscriptions. It is an NGSIv2 server implementation to manage context information and its availability. Context information consists on entities (e.g. a car) and their attributes (e.g. the speed or location of the car).

Using the Orion Context Broker, you are able to create context elements and manage them through updates and queries. In addition, you can subscribe to context information so when some condition occurs (e.g. the context elements have changed) you receive a notification. These usage scenarios and the Orion Context Broker features are described in this documentation.

If this is your first contact with the Orion Context Broker, it is highly recommended to have a look to the brief Quick Start guide.

Top

Introductory presentations

  • Orion Context Broker (en) (jp)
  • NGSIv2 Overview for Developers That Already Know NGSIv1 (en) (jp) (no longer maintained since Orion 3.7.0)

Top

Install

Build and Install documentation for Orion Context Broker can be found at the corresponding section of the Admin Manual.

๐Ÿ‘‰ If you want to run a production-grade instance of orion, carefully read all information in the admin-section.

Top

Running

How to run Orion Context Broker can be found at this document.

Top

Usage

In order to create an entity (Room1) with two attributes (temperature and pressure):

curl <orion_host>:1026/v2/entities -s -S --header 'Content-Type: application/json' \
    -X POST -d @- <<EOF
{
  "id": "Room2",
  "type": "Room",
  "temperature": {
    "value": 23,
    "type": "Number"
  },
  "pressure": {
    "value": 720,
    "type": "Number"
  }
}
EOF

In order to query the entity:

    curl <orion_host>:1026/v2/entities/Room2 -s -S --header 'Accept: application/json' | python -mjson.tool

In order to update one of the entity atributes (temperature):

curl <orion_host>:1026/v2/entities/Room2/attrs/temperature -s -S \
    --header 'Content-Type: application/json' \
    -X PUT -d @- <<EOF
{
  "value": 26.3,
  "type": "Number"
}
EOF

or (more compact):

curl <orion_host>:1026/v2/entities/Room2/attrs/temperature/value -s -S \
    --header 'Content-Type: text/plain' \
    -X PUT -d 26.3

Please have a look at the Quick Start guide if you want to test these operations in an actual public instance of Orion Context Broker. In addition, have a look to the API Walkthrough and API Reference sections below in order to know more details about the API (subscriptions, registrations, etc.).

Top

API Walkthrough

  • FIWARE NGSIv2 Orion API Walkthrough FIWARE NGSI v2 (en) (jp) (Markdown)

Top

API Reference Documentation

API Reference Documentation:

  • FIWARE NGSIv2 Orion API (en) (jp) (Markdown)

Orion Reference Documentation:

Top

Testing

End-to-end tests

The functional_test makefile target is used for running end-to-end tests:

make functional_test INSTALL_DIR=~

Please have a look to the section on building the source code in order to get more information about how to prepare the environment to run the functional_test target.

Unit Tests

The unit_test makefile target is used for running the unit tests:

make unit_test

Please have a look to the section on building the source code in order to get more information about how to prepare the environment to run the unit_test target.

Top

Advanced topics

  • Advanced Programming (en) (jp)
  • Installation and administration (en) (jp)
  • Container-based deployment
  • Development Manual (en) (jp)
  • Sample code contributions (en) (jp)
  • Contribution guidelines (en) (jp), especially important if you plan to contribute with code to Orion Context Broker
  • Deprecated features (en) (jp)

Top

Support

Ask your thorough programming questions using stackoverflow and your general questions on FIWARE Q&A. In both cases please use the tag fiware-orion

Top


License

Orion Context Broker is licensed under Affero General Public License (GPL) version 3.

ยฉ 2023 Telefonica Investigaciรณn y Desarrollo, S.A.U

Are there any legal issues with AGPL 3.0? Is it safe for me to use?

There is absolutely no problem in using a product licensed under AGPL 3.0. Issues with GPL (or AGPL) licenses are mostly related with the fact that different people assign different interpretations on the meaning of the term โ€œderivate workโ€ used in these licenses. Due to this, some people believe that there is a risk in just using software under GPL or AGPL licenses (even without modifying it).

For the avoidance of doubt, the owners of this software licensed under an AGPL-3.0 license wish to make a clarifying public statement as follows:

Please note that software derived as a result of modifying the source code of this software in order to fix a bug or incorporate enhancements is considered a derivative work of the product. Software that merely uses or aggregates (i.e. links to) an otherwise unmodified version of existing software is not considered a derivative work, and therefore it does not need to be released as under the same license, or even released as open source.

More Repositories

1

lwm2m-node-lib

Library for building OMA Lightweight M2M Applications (client and server).
JavaScript
74
star
2

fiware-cygnus

A connector in charge of persisting context data sources into other third-party databases and storage systems, creating a historical view of the context
Java
64
star
3

iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
JavaScript
60
star
4

di-py

Dependency injection in python #di #python
Python
58
star
5

tdigital-hybridge

MCA TDigital HyBridge
Objective-C
52
star
6

iotagent-json

IoT Agent for a JSON based protocol (with HTTP, MQTT and AMQP transports)
JavaScript
51
star
7

netphony-network-protocols

Java Library of Networking Protocols: PCEP, RSVP-TE, OSPF, BGP-LS
Java
42
star
8

iotagent-ul

IoT Agent for a UltraLight 2.0 based protocol (with HTTP, MQTT and AMQP transports)
JavaScript
38
star
9

tartare

Gherkin-like BDD testing framework for JavaScript based on Mocha
JavaScript
37
star
10

notification_server

Push Notification Server for the open web.
HTML
36
star
11

netphony-topology

BGP-LS Speaker and Traffic Engineering Database. Restconf API to get the topology.
Java
33
star
12

fiware-sth-comet

A component of the FIWARE ecosystem in charge of managing historical and aggregated time series context information
JavaScript
27
star
13

lightweightm2m-iotagent

IoT Agent accepting COAP requests. Designed to be a bridge between the OMA Lightweight M2M protocol and the NGSI interface.
JavaScript
24
star
14

PopBox

Simple High-Performance High-Scalability Inbox Notification Service
JavaScript
23
star
15

OpenWebDevice

Telefรณnica Open Web Device
JavaScript
22
star
16

fiware-figway

fiware-figway
Python
20
star
17

logops

Really simple and performant logger for node projects compatible with any kind of deployments as your server operations/environment defined
JavaScript
20
star
18

Rush

Http - Relayer
JavaScript
19
star
19

fiware-connectors

Data visualization connectors and utils for Orion Context Broker
Python
15
star
20

perseo-fe

Front End process for the Perseo CEP
JavaScript
15
star
21

netphony-pce

Java Based Path Computation Element (PCE) following RFC 4655 architecture
Java
14
star
22

submarine

Ever wanted to take advantage of both Leaflet and D3 to make fully interactive maps with minimal effort? Tired of using out-of-the-box mapping software only to find that it always falls short of requirements, whilst on the other hand, building from scratch is just a big hassle? Submarine is an open source library developed at Telefรณnica Labs to provide the best of both worlds.
JavaScript
13
star
23

fiware-cosmos

fiware-cosmos toolkit for administration and support. Includes Sahara plugin
JavaScript
11
star
24

fiware-pep-steelskin

Telefonica's implementation of the FIWARE PEP GE
JavaScript
11
star
25

fiware-IoTAgent-Cplusplus

IoTAgent development framework for C++
C++
11
star
26

perseo-core

Core/backend for the Perseo CEP
Java
11
star
27

cne-tnetwork

True Network Library: Javascript library to create and draw network graphs. It is SVG based and HTML 5 compatible.
JavaScript
11
star
28

sigfox-iotagent

IoT Agent for the Sigfox protocol
JavaScript
11
star
29

netphony-gmpls-emulator

Java based Emulator of a Transport Node (L1/L0) with GMPLS control plane (OSPF-TE, RSVP-TE, PCEP))
Java
10
star
30

fiware-keypass

Keypass is a multitenant XACML Authorization Server (Access Control) with PAP (Policy Administration Point) and PDP (Policy Decision Point) capabilities used by IoT Platform.
Java
9
star
31

thinking-cities

Repository to store and manage end user documentation related to the Telefonica SmartCities Stack. See http://thinking-cities.readthedocs.io
Java
9
star
32

iot-activation

Python
8
star
33

fiware-device-simulator

Simulator of FIWARE-compatible devices (UltraLight 2.0, JSON & NGSIv2)
JavaScript
8
star
34

fiware-edison

Edison 2 FIWARE integration examples
HTML
8
star
35

iotagent-manager

IoT Agent Manager to use as proxy for multiple IoTAgents with different protocols
JavaScript
7
star
36

firefoxos-gaia-spain

Firefox OS UI customizations for Spain
JavaScript
7
star
37

pylogops

Python version of logops, the simple and performant logger.
Python
7
star
38

bluevia_engine

Rails 3 Engine to handle BlueVia OAuth mechanism
Ruby
6
star
39

fiware-cosmos-platform

Scala
6
star
40

tartare-logs

Watch log files parsing their content according to a given pattern or as a JSON document
JavaScript
6
star
41

fiware-health

Program to check the functionality of each FIWARE Lab node.
Python
6
star
42

lettuce-tools

Lettuce Tools are a set of tools and utilities that extend the lettuce out of the box features fill some of the gaps detected in the projects.
Python
6
star
43

fiware-livedemoapp

fiware-livedemoapp
Python
6
star
44

tartare-chai

A set of Chai plugins to help writing acceptance tests.
JavaScript
5
star
45

fiware-arduino

This repository holds examples of Arduino sketches to persist your Arduino data into FIWARE IoT Stack cloud service by using HTTP UL 2.0
Arduino
5
star
46

tartare-collections

An HTTP client targeted at making REST requests
JavaScript
5
star
47

fiware-keystone-scim

OpenStack Keystone SCIM (System for Cross-domain Identity Management) extenstion
Python
5
star
48

tartare-mock

A handy server to mock any HTTP behaviour.
JavaScript
5
star
49

orchestrator

Orchestrator groups all provision operations for IoT Platform that tipically implies several steps or several systems interaction.
Python
5
star
50

tartare-util

A set of utils to make acceptance tests.
JavaScript
5
star
51

wakeup_platform

Mobile phones wakeup platform
Shell
5
star
52

protractor-tartare

Tartare framework plugin for Protractor
JavaScript
4
star
53

varufaker

Small utility to generate log traces based on a template, supporting Elastic Search, files and stdout
JavaScript
4
star
54

netphony-abno

Java reference implementation of ABNO Controller (RFC 7491 ) using COP and ONF-TAPI as Northbound and PCEP as southbound interface.
Java
4
star
55

command-shell-lib

The target of this module is to ease the creation of command line testing applications
JavaScript
3
star
56

iotp-talend-connectors

Talend connectors for Telefonica IoT Platform
3
star
57

fiware-SDK

Tools and libraries to make FIWARE Developer's Lives Easier
JavaScript
3
star
58

iotqatools

IoT toolbelt and libraries used for QA IoT-Platform validation
Python
3
star
59

firefoxos-gaia-latam

Firefox OS UI customizations for LATAM
JavaScript
3
star
60

fiware-orion2cartodb

NGSI connector to CARTODB
Python
3
star
61

rabbit-topic-acl

RabbitMQ Plugin for adding ACL-based security for topics
Erlang
3
star
62

FIWARE-ttopen

This repository holds examples of arduino sketches to persist your Thinking Things Open sensors data into FIWARE IoT Stack cloud service by using UL 2.0
Arduino
3
star
63

fiware-sinfonier

Sinfonier is a technology that solves the problem of collection and real-time processing of large amounts of information. Sinfonier tries to make available to users a real-time framework as Apache-STORM but with an intuitive graphical interface, an abstraction layer to facilitate the development of new functions and cluster management and an open, collaborative community.
Java
3
star
64

fiware-keystone-spassword

Keystone SPASSWORD is an OpenStack Keystone extension that enables some extra security checks over user passwords, as force the usage of strong passwords, expiration time for a password, number of bad login attempts before user account became temporarily blocked, a recover procedure password, second factor authentication (2FA), etc.
Python
3
star
65

libphonenumber-js

Builds a compact javascript version of libphonenumber without requiring to use Closure
Shell
3
star
66

gologops

Go version of logops, the simple and performant logger.
Go
2
star
67

fiware-cloto

Policy Manager GEi of the FIWARE project
Python
2
star
68

fiware-monitoring

FIWARE Monitoring GE
JavaScript
2
star
69

iotagent-thinking-things

IOT Agent for the Telefonica Thinking Things protocol
JavaScript
2
star
70

fiware-tidoop

Hadoop extensions for CKAN, STH...
Java
2
star
71

iotagent-onem2m

IoT Agent for the OneM2M protocol
JavaScript
2
star
72

CrossPlatform-ClockApp

FFOS Gaia's Clock Application working on Webkit and Gecko
JavaScript
2
star
73

B2G-Utility-Libraries.JS

Utility libraries for developing apps on Open Web Devices / B2G / FirefoxOS
JavaScript
2
star
74

instantservers

Businesses can rely on Instant Servers as an enterprise-grade platform to deliver high-performance cloud applications with low latency, easy scalability and 100% data reliability and integrity; paying only for what is used. Instant Servers is designed to handle applications that other cloud platforms choke on
Java
2
star
75

fiware-cosmos-ambari

Java
1
star
76

fiware-rss

FIWARE RSS
Java
1
star
77

5g-developers-portal

#294370
1
star
78

apichk

#269913
1
star
79

ckanext-ngsiview

ckanext-ngsiview
JavaScript
1
star
80

WebAPISpecs

WebAPI Specifications
1
star
81

fiware-commonsproperties

Fiware commons properties for paasmanager and sdc.
Java
1
star
82

vaultier-cli

Awesome CLI client for Vaultier password manager
Python
1
star
83

Licensing

Repository containing FLOSS Licenses and Contribution Policies
1
star
84

firefoxos-gaia-testsbuild

Firefox OS UI customizations for testing
JavaScript
1
star
85

bbutton-tests

BButton project Tests repository
Python
1
star
86

owd-kpis

This repository stores the code related with OWD-PNS report generation.
Python
1
star
87

fiware-node-logger

Logger for Fiware Node.js projects
JavaScript
1
star
88

tdaf-notif

Endpoint for notifications
JavaScript
1
star
89

fiware-puppetwrapper

SDC wrapper in order to deploy artifacts following puppet manifests
Java
1
star
90

django-moqueta

Awesome RESTful-web mocking application
1
star
91

fiware-sth-graphs

A set of examples of how to visualize data stored in Fiware Sth-Comet
1
star
92

hydra-context-provider

Hydra command simulator
JavaScript
1
star
93

fiware-here-adaptor

Backend implementation of the integration between FIWARE and HERE Maps
JavaScript
1
star
94

fiware-facts

Policy Manager GEi of the FIWARE project, this is the server to process the incoming facts from Orion Context Broker
Python
1
star