TC5.11 - DataMapper, DataMapping, on knowledge and MicroService IOT applications

Test Case Title

TC5.11 - DataMapper, DataMapping, on knowledge and MicroService IOT applications


I can:

Mapping data of a service (a service URI) to another serviceURI on the same or on different Knowledge base.

Use the mapping from the IOT Applications.


Using a PC or Mobile with a web browser.

Simple skill on use IotBlocks on Nodered.

The following functionalities are available only for specific Snap4city users with specific privileges.

Expected successful result

Request information of a service and get realtime data of another service. The static information remains the same of the original service requested.




Please note that some of the following links could be accessible only for registered users.

  1. It may happen that some new services do not yet have the realtime data and you want to implement the code that assumes that that service has them. For example, some car parks in a city do not yet have sensors but an interface is being developed to display free car parks. You may therefore need to map the data of another parking lot with the sensors working on the one that does not yet have them
  2. To use this feature you can use the specially created microservices or the interface that is located on the Snap4City portal.
  3. Suppose we have these two parking:

  1. Respectively with serviceUri:


  1. If the node “service info”

  1. is used to retrieve information of the first serviceUri (that without realtime) the response of the node is:

  1. So it is possible to use the node:

  1. To create a mapping from the service without realtime data to the service with realtime (the other properties remain the same of the service requested). Fill the configuration tab like this: 


  1. Inject a msg inside the node:

  1. On success a message is showed:

  1. If the user has a profile of “ToolAdmin” can see the mapping on:

  1. Where it is possible to create, read, update and delete the mapping data with a simple interface.

  1. After the insertion of the mapping, the user can use the “service-info-mapped” node:

  1. With this configuration

  1. As response the node retrieve the static information of the desired service with the realtime information of the other service used in the mapping