Presentation is loading. Please wait.

Presentation is loading. Please wait.

Olga Avramenko www.linkedin.com/in/oavramenko/ April 2014 MongoDB + QlikView Olga Avramenko www.linkedin.com/in/oavramenko/ April 2014.

Similar presentations


Presentation on theme: "Olga Avramenko www.linkedin.com/in/oavramenko/ April 2014 MongoDB + QlikView Olga Avramenko www.linkedin.com/in/oavramenko/ April 2014."— Presentation transcript:

1 Olga Avramenko www.linkedin.com/in/oavramenko/ April 2014
MongoDB + QlikView Olga Avramenko April 2014

2 Overview MongoDB REST Interface JSON -> XML Ruby QlikView

3 Starting MongoDB w/ REST
mongod --rest

4

5 Retrieving a Collection
{ "offset" : 0, "rows": [ { "city" : "ACMAR", "loc" : [ , ], "pop" : 6055, "state" : "AL", "_id" : "35004" } , { "city" : "ADAMSVILLE", "loc" : [ , ], "pop" : 10616, "state" : "AL", "_id" : "35005" } , { "city" : "ADGER", "loc" : [ , ], "pop" : 3205, "state" : "AL", "_id" : "35006" } , { "city" : "KEYSTONE", "loc" : [ , ], "pop" : 14218, "state" : "AL", "_id" : "35007" } , { "city" : "NEW SITE", "loc" : [ , ], "pop" : 19942, "state" : "AL", "_id" : "35010" } , { "city" : "ALPINE", "loc" : [ , ], "pop" : 3062, "state" : "AL", "_id" : "35014" } , { "city" : "ARAB", "loc" : [ , ], "pop" : 13650, "state" : "AL", "_id" : "35016" } , { "city" : "BAILEYTON", "loc" : [ , ], "pop" : 1781, "state" : "AL", "_id" : "35019" } , { "city" : "BESSEMER", "loc" : [ , ], "pop" : 40549, "state" : "AL", "_id" : "35020" } , { "city" : "HUEYTOWN", "loc" : [ , ], "pop" : 39677, "state" : "AL", "_id" : "35023" } , { "city" : "BLOUNTSVILLE", "loc" : [ , ], "pop" : 9058, "state" : "AL", "_id" : "35031" } , { "city" : "BREMEN", "loc" : [ , ], "pop" : 3448, "state" : "AL", "_id" : "35033" } , { "city" : "BRENT", "loc" : [ , ], "pop" : 3791, "state" : "AL", "_id" : "35034" } , { "city" : "BRIERFIELD", "loc" : [ , ], "pop" : 1282, "state" : "AL", "_id" : "35035" } , { "city" : "CALERA", "loc" : [ , ], "pop" : 4675, "state" : "AL", "_id" : "35040" } , { "city" : "CENTREVILLE", "loc" : [ , ], "pop" : 4902, "state" : "AL", "_id" : "35042" } , { "city" : "CHELSEA", "loc" : [ , ], "pop" : 4781, "state" : "AL", "_id" : "35043" } , { "city" : "COOSA PINES", "loc" : [ , ], "pop" : 7985, "state" : "AL", "_id" : "35044" } , { "city" : "CLANTON", "loc" : [ , ], "pop" : 13990, "state" : "AL", "_id" : "35045" } , { "city" : "CLEVELAND", "loc" : [ , ], "pop" : 2369, "state" : "AL", "_id" : "35049" } , { "city" : "COLUMBIANA", "loc" : [ , ], "pop" : 4486, "state" : "AL", "_id" : "35051" } , { "city" : "CRANE HILL", "loc" : [ , ], "pop" : 2270, "state" : "AL", "_id" : "35053" } ,

6 Simple Ruby App to convert JSON to XML
require 'net/http’ require 'uri’ require 'json’ require 'xmlsimple’ require 'sinatra’ url = 'http://localhost:28017/scratch/zips/’ get '/' do page_content = Net::HTTP.get(URI.parse(url)) mongo_json = JSON.parse(page_content) XmlSimple.xml_out(mongo_json) end

7 Now we have XML <opt offset="0" total_rows="1000" millis="17"> <rows city="ACMAR" pop="6055" state="AL" _id="35004"> <loc> </loc> <loc> </loc> </rows> <rows city="ADAMSVILLE" pop="10616" state="AL" _id="35005"> <loc> </loc> <loc> </loc> </rows> <rows city="ADGER" pop="3205" state="AL" _id="35006"> <loc> </loc> <loc> </loc> </rows> <rows city="KEYSTONE" pop="14218" state="AL" _id="35007"> <loc> </loc> <loc> </loc> </rows> <rows city="NEW SITE" pop="19942" state="AL" _id="35010"> <loc> </loc> <loc> </loc> </rows> <rows city="ALPINE" pop="3062" state="AL" _id="35014"> <loc> </loc> <loc> </loc> </rows> <rows city="ARAB" pop="13650" state="AL" _id="35016"> <loc> </loc> <loc> </loc> </rows> <rows city="BAILEYTON" pop="1781" state="AL" _id="35019"> <loc> </loc> <loc> </loc> </rows>

8 QlikView WebFiles Import

9 QlikView App with MongoDB Data


Download ppt "Olga Avramenko www.linkedin.com/in/oavramenko/ April 2014 MongoDB + QlikView Olga Avramenko www.linkedin.com/in/oavramenko/ April 2014."

Similar presentations


Ads by Google