Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A little service that translates selected web services to a uniform collection format, which is used by the Envision browser
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cache
public
.gitignore
Gemfile
README.textile
country.rb
playlist.rb
service.rb

README.textile

Collectionize

Collectionize is just a little aggregator service that translates interesting web services to a uniform collection format.
Those collections that are represented in a readable JSON format can than be handled by
Envision, a browser dedicated to data analysis and visualization tasks.

There’s also a Javascript Library that can be used to process such collections and perform transformations like grouping and sorting on them.
It’s pretty much like Google’s DataTable,
which is part of the Google Visualization API.

Check it out at http://github.com/michael/collection.

Currently available Collections

  • Countries fetched from Freebase.com (/countries)
  • Last.fm Playlists (/playlists)

Last.fm Playlists are fetched used the following approach:

Last.fm data aggregation

Format

Collections have the following format:


{
  "properties": "properties": {
    "name": {
      "name": "Country Name",
      "type": "string",
      "unique": true
    },
    "official_language": {
      "name": "Official language",
      "type": "string",
      "unique": true
    },
    "form_of_government": {
      "name": "Form of governmennt",
      "type": "string",
      "unique": false
    },
    "currency_used": {
      "name": "Currency used",
      "type": "string",
      "unique": true
    },
    "population": {
      "name": "Population",
      "type": "number",
      "unique": true
    },
    "gdp_nominal": {
      "name": "GDP nominal",
      "type": "number",
      "unique": true
    },
    "area": {
      "name": "Area",
      "type": "number",
      "unique": true
    },
    "date_founded": {
      "name": "Date founded",
      "type": "date",
      "unqiue": true
    }
  },
  "items": [
    {
      "name": "Argentina",
      "official_language": "Spanish Language",
      "form_of_government": [
        "Federal republic",
        "Presidential system"
      ],
      "currency_used": "Argentinian Peso",
      "population": 39745613,
      "gdp_nominal": 338700000000.0,
      "area": 2780403.0,
      "date_founded": "1816-07-09"
    },
    ...
  ],
}

Something went wrong with that request. Please try again.