Sofia2 new release 2.14.0 is now available. This release has also been deployed in the experimentation platform Sofia2 CloudLab.

This new version adds the following features to the platform:

· Social Media Capabilities V1

In this first version Social Media on Twitter are integrated on Sofia2. From the console you can perform the following actions

Esta información se almacena finalmente en ontologías Sofia2 lo que permite analizarlas a posteriori mediantes herramientas analíticas.

This information is stored in Sofia2 ontologies allowing make analysis by analytical tools.

You can search for users and from there access your timeline:

And then store the search in a new or existing ontology:

Each user can create their settings access or use a generic configuration:

You can also do searches with logical operators:

Y las tendencias bien globales, bien de un país:

· KPs Container V1

The KPs Container is a new module in Sofia2 that allows launching Python or Java managed KPs. These are executed in the container’s environment following a CRON expression.

This first version supports KPs in Python language.

The operation is as follows :

A deployed KP in the container will generate one or more message following a particular format so that, when it completes each periodic execution , the container collects these messages and sends them to SIB Sofia2 on behalf of the KP .

Also, a KP can generate one or more log files, downloadable from the management console .

Registering a KP in the container is made from the Administration Console by selecting the menu option CONTAINER KP ‘s / APPS > Create KPs / APPS container :

This options allows SIB data authentication storage, cron execution periodicity , generated message and trace files name configuration, as well as the upload of the Python program to run and the configuration of the execution required properties.

En esta pantalla se registran los datos de autenticación en el SIB, cron de periodicidad de ejecución, nombres de ficheros mensajes generados y de trazas, así como la subida del programa Python a ejecutar y las propiedades que necesitará durante la ejecución.

· RTDB Ontologies Sharding

This concept allows a large sized Sofia2 ontology ( several million instances) to be physically partitioned into the RTDB . For RI, is persisted in various MongoDB collections.

It improves inserts and queries performance on ontologies that have much information on BDTR.

The division and reconstruction process is done transparently to the user who can perform queries without physical partitioning worries.

Partitioning can be done by user or KP instance.

This configuration on an ontology can only be performed by an administrator role, so in the environment CloudLab user must ask the administrator.

· Scripting Engine Support for R and Mongo scripts

With this functionality we can invoke R and Mongo scripts and evaluate their results. In this way we can plan the execution of MongoDB Batch processes (eg aggregate data once a day) or do some R process when reach an ontology (eg ontology control).

The way is:

Through Script module Sofia2 API, we can invoke R Script apisofia.executeRScript ("scriptPrueba.R") and retrieve output to evaluate in the script:

Where the R script return:

MongoDB Scripts are executed using apisofia.executeMongoScript ("scriptPrueba.js");

Por ejemplo:

· License APIs Update

The Sofia2s APIs have been updated to clearly indicate their Apache license.

· New Python API:

Another API has been added: The Python API. It supports Python 2.7.x and Pytoon 3.x and uses WebSocket communication with the platform. There is a link in the Developer option of the Web.

· MQTTS Support on SIB-Runtime

From this version, SIB-Runtime includes MQTT support over authenticated SSL via certifícate (so far was done via balancer). These are the ports in the CloudLab instance:

· 8883: MQTTs port to SIB nodes.

· 8884: MQTTs port to SIB Instance 1.

· 8885: MQTTs port to SIB Instance 2.

The client must connect this way:

MQTTConnectionConfig config=new MQTTConnectionConfig();



· Ontology index creation via RTDB Console

An administrator user can create indexes on the ontologies , allowing in the case of MongoDB based RI the indexes creation :

Simples (one field):

db.SensorTemperatura.ensureIndex( { "SensorTemperatura.identificador": 1 } )

db.SensorTemperatura.ensureIndex( { "SensorTemperatura.medida": -1 } )

Complex (several fields):

db.SensorTemperatura.ensureIndex( { "SensorTemperatura.identificador": 1,”SensorTemperatura.medida”:1 } )

Complex and with options:

 db.SensorTemperatura.ensureIndex( { "SensorTemperatura.identificador": 1,”SensorTemperatura.medida”:1 },{unique: true, sparse: true })

To delete indexes must indicate the name of the index , an example:


To consult indexes:


On future versions indexes will be created on the ontology’s template so that they will be assigned during ontology creation .

· Themes Support for Config Web Console:

From this versión on, the Web Configuration Console’s theme is customizable, allowing custom header, menu, footer and style loading from configuration properties.

Default styles:

Smart Coruña Styles:

· Windows SDK and First Steps guide update

The Windows SDK and Sofia2 First Steps guide have been update adding the new capabilities of the platform making easier to step into the platform. You can download it from the Developers section :

· KP Model Development Guide for embedded devices

A new guide (available on request) has been created which explain how to develop over the managed infrastructure of the KP Model. It’s a Java framework to support application development that provides out-of-the-box features such as remote SW deployment, centralized configuration, connection lost detection,..

This infrastructure is particularly interesting for remote deployed device’s development (like CSC Gateways)

· Native Support API Manager queries

Native Suport has been added to the GET(sql) operation of the Ontologies API Manager module. Now you can specify a new parameter: {queryType}.

The values of the new parameter will be one of the following:

o SQLLIKE: for sql queries.

o NATIVE: for mongo queries.

· Fuel Station Viewer:

This demo available here can represent on a map the petrol stations from the feedGasolinera ontología. Also it allows filtering by county, town and street plus get the nearest gas station to a particular point with a radio.

The demo has a Developer version in which you can view all information passed.



Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s