We will be using a Custom Data Access Connector that connects to Couchbase and consumes the data into SAP Lumira. Here, we will be using the game simulation sample, which comes by default as a sample data along with the Couchbase installation.You can download the data from https://github.com/couchbase/couchbase-examples

 

The gamesim example

The gamesim example contains the results of a game simulation with scores and details about each gamer. It is loaded as “gamesim-sample” bucket as part of Couchbase setup. Typical data from that bucket would look like this.

 

 

Finding the needle in a haystack

Couchbase is built on top of JSON as its data store. Large volume of unstructured data can be stored in Couchbase very effectively. In order to visualize this unstructured data, we need to find and bring only the data that is needed to be used inside SAP Lumira. We will be using process called MapReduce, which maps our data and reduces the result down to meaningful data that is needed.

We will be creating views in Couchbase, which helps us execute Mapreduce on original dataset and return the results. We can create different views for different type of analysis,and also perform aggregation and calculation, using Javascript.

Here is a basic view that returns the necessary details about each player.

 

After publishing the view to production post testing, we can execute to see the result on the complete dataset.

Now that we have the required data, let’s go ahead and use it inside SAP Lumira.

 

Read on to find out how you can consume the above data and create cool storyboard here