Profile

Cover photo
Xavier Badosa
Attended Aula
Lived in Barcelona
173 followers|126,884 views
AboutPosts

Stream

Xavier Badosa

Shared publicly  - 
 
 
The +JSON-stat Viewer and the +JSON-stat Table Browser, now accept bundles, datasets but also collections

For example, using the JSON-stat Dataset Sample Collection:

http://json-stat.org/samples/collection.json

Viewer collection example
http://json-stat.org/format/viewer/?uri=http%3A%2F%2Fjson-stat.org%2Fsamples%2Fcollection.json

Browser collection example
http://json-stat.org/format/browser/?uri=http%3A%2F%2Fjson-stat.org%2Fsamples%2Fcollection.json

(You may need to hit Reload to update the JSON-stat lib to the latest release.)
JSON-stat is a simple lightweight standard best suited for data visualization, mobile apps or open data initiatives, that has been designed for all kinds of disseminators.
1 comment on original post
1
Add a comment...

Xavier Badosa

Shared publicly  - 
 
How to get collections info using JSON-stat Javascript Toolkit 0.8.0

You can get the items data accessing this.link.item or use the handy .Item() method. This method can be called like this:

this.Item(); //get the items array
this.Item(0); //get the first item
this.Item({"class" : "dataset"}); //get the array of item of class "dataset"

JSONstat("http://json-stat.org/samples/collection.json", function(){
   if(this.class==="collection"){
      var col=this.Item();

      if(col.length){
         html="<ol>";
         col.forEach(function(e){
            html+='<li><a href="'+e.href+'">'+e.label+'</a></li>';
         });
         html+="</ol>";
         document.getElementsByTagName("body")[0].innerHTML=html;
      }
   }
});

+JSON-stat  #jjt   #js   #json   #stats   #opendata   #api  
1
2
JSON-stat's profile photoCharlie Smith's profile photo
Add a comment...

Xavier Badosa

Shared publicly  - 
 
JSON-stat Javascript Toolkit v. 0.7.5 is out

Latest version fully supports JSON-stat datasets, not only JSON-stat bundles.

For example:

Bundle
http://json-stat.org/samples/galicia.json

Dataset
http://json-stat.org/samples/galicia-ds.json

You can use the JSON-stat Viewer

http://json-stat.org/format/viewer/?uri=http%3A%2F%2Fjson-stat.org%2Fsamples%2Fgalicia-ds.json

or 

the JSON-stat Table Browser 

http://json-stat.org/format/browser/?uri=http%3A%2F%2Fjson-stat.org%2Fsamples%2Fgalicia-ds.json&ds=0

to view dataset responses.

Download the latest version from:

https://github.com/badosa/JSON-stat

+JSON-stat  #json   #stats   #opendata   #datasets   #cube   #table   #api   #standard  
JSON-stat Javascript Toolkit
1
2
JSON-stat's profile photoMaurizio Pirillo's profile photo
Add a comment...

Xavier Badosa

Shared publicly  - 
 
JSON-stat in the session "The future of standards in statistics", United Nations, Geneva.

http://www.slideshare.net/badosa/jsonstat

In 2015, I was invited to present the JSON-stat standard in the Workshop on International Collaboration for Standards-Based Modernisation (Geneva, 5-7 May 2015). 

http://www1.unece.org/stat/platform/display/WICSBM/Geneva%2C+5-7+May+2015

#unece   #json  +JSON-stat  #cube   #stats   #opendata   #api  
In 2015, I was invited to present the JSON-stat standard in the Workshop on International Collaboration for Standards-Based Modernisation (Geneva, 5-7 May 2015). http://www1.unece.org/stat/platform/display/WICSBM/Geneva%2C+5-7+May+2015
1
4
JSON-stat's profile photoRich Gillin's profile photoSaid Ricardo Zacarías Ramírez's profile photoJesus M. Castagnetto's profile photo
2 comments
 
Yes, true...
Add a comment...

Xavier Badosa

Shared publicly  - 
 
Finland joins Norway, UK, Ireland, Denmark, Sweden, Galicia...
 
Finnish Labor Market

Finland joins the JSON-stat community!

This visualization uses the Statistics Finland API to retrieve information about the population by labor force status in the JSON-stat format. The data is then processed with the help of the JSON-stat Javascript Toolkit. Finally, it is visualized using Idescat Visual.

http://bl.ocks.org/81ab0e82138199d7e166

#dataviz    #stats   #finland   #js   #json   #labor  
View original post
1
Add a comment...

Xavier Badosa

Shared publicly  - 
 
 
Version 1.02 of the JSON-stat spec is out

"decimals", "symbol" and "position" have been added. Clarifications have been included in "unit" and "label".
JSON-stat is a simple lightweight standard best suited for data visualization, mobile apps or open data initiatives, that has been designed for all kinds of disseminators.
View original post
1
Add a comment...

Xavier Badosa

Shared publicly  - 
 
JSON-stat is a simple lightweight standard best suited for data visualization, mobile apps or open data initiatives, that has been designed for all kinds of disseminators.
View original post
1
Add a comment...
Have him in circles
173 people
Hugh McGuire's profile photo
Sthefenier DASILVA COELHO's profile photo
Marta “Vinilo con Arte” Iranzo's profile photo
Kenton Russell's profile photo
Alf Fyhrlund's profile photo
Mariano Gistaín's profile photo
Jason “Doc” Rochester's profile photo
Silvia David iMagina's profile photo
Ernest Frigola Martorell's profile photo

Communities

21 communities

Xavier Badosa

Shared publicly  - 
 
And soon JSON-stat Javascript Toolkit will be updated to support the new features...
 
JSON-stat spec has been updated (1.03) to include #collections.

http://json-stat.org/format/

#stats #spec #json #hypermedia #hateoas #opendata #api
JSON-stat is a simple lightweight standard best suited for data visualization, mobile apps or open data initiatives, that has been designed for all kinds of disseminators.
View original post
1
Add a comment...

Xavier Badosa

Shared publicly  - 
 
 
What's next: JSON-stat for all the stages in statistics dissemination

How? Enabling a  general grouping mechanism: the "collection" class

https://groups.google.com/d/msg/json-stat/N4xyvgMC1CI/pu42mPeK3pEJ

#hateoas   #hypermedia   #rest   #json   #stats   #nso  
View original post
2
Add a comment...

Xavier Badosa

Shared publicly  - 
 
JSON-stat Javascript Toolkit v. 0.7.2 is out

The new release of the #javascript   #library  to process +JSON-stat responses can be downloaded from

https://github.com/badosa/JSON-stat

In the new release, dimensions without a geo, time or metric role are considered "classifications" and can be retrieved like this:

.Dataset(0).role.classification

For example,

JSONstat("http://json-stat.org/samples/oecd-canada.json").Dataset("canada").role.classification

returns

["age", "sex"]

And

JSONstat("http://json-stat.org/samples/oecd-canada.json").Dataset("canada").Dimension("age").role

returns

"classification"

This role can also be used to filter dimensions:

JSONstat("http://json-stat.org/samples/oecd-canada.json").Dataset("canada").Dimension({role: "classification"})

https://github.com/badosa/JSON-stat/wiki/API-Reference
2
3
Xavier Badosa's profile photoJSON-stat's profile photoJürgen Bierlein's profile photomartin gallagher's profile photo
2 comments
 
Updated to v. 0.7.4 to correct a bug when role exist but it's an empty object ({}).
Add a comment...

Xavier Badosa

Shared publicly  - 
 
 
Retrieving data from two JSON-stat sources: Dano-Norwegian Inflation

Statistics Denmark and Statistics Norway support the JSON-stat format. In this example, CPI (12-month rate) is retrieved from both sources, processed with the JSON-stat Javascript Toolkit and finally visualized with Idescat Visual.

http://bl.ocks.org/a7f539bd1f367f8d5d3f

#json   #cube   #opendata   #stats   #api   #denmark   #norway  
View original post
1
Add a comment...

Xavier Badosa

Shared publicly  - 
 
Similar calculator code for three different countries offering +JSON-stat APIs: Ireland joins Sweden and Norway.
 
Ireland's Inflation Calculator

An example of the use of the JSON-stat API of the Central Statistics Office (CSO) of Ireland:

http://bl.ocks.org/3cfb6bcec7c5a27b1fa7
View original post
1
Add a comment...
People
Have him in circles
173 people
Hugh McGuire's profile photo
Sthefenier DASILVA COELHO's profile photo
Marta “Vinilo con Arte” Iranzo's profile photo
Kenton Russell's profile photo
Alf Fyhrlund's profile photo
Mariano Gistaín's profile photo
Jason “Doc” Rochester's profile photo
Silvia David iMagina's profile photo
Ernest Frigola Martorell's profile photo
Communities
21 communities
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Barcelona
Story
Tagline
Web experiments since 1995
Introduction
dotepub.com creator and developer.

json-stat.org promoter and author of the JSON-stat Javascript Toolkit.




Education
  • Aula
  • UB
  • UPF
Basic Information
Gender
Male