thorobasePA
04-19-2010, 12:03 AM
The thorobase API (http://j.mp/cVe0XN) goes open-source! Right now, the (JavaScript) API consists of 2 projects:
* thoroData (http://j.mp/cSqXHY), to encapsulate horse racing data, and
* thoroMotion (http://j.mp/bZGywp), to visualize this data.
The projects are all hosted on github.com (http://www.github.com) under my robinhowlett (http://github.com/robinhowlett) account. thoroData (http://j.mp/cSqXHY) and thoroMotion (http://j.mp/bZGywp) are submodules of the thorobase project.
The thoroData API (http://j.mp/9r3mzN) contains the basic Model for horse racing objects: Meets, RaceCards, Races, and Performances. It also contains static racing data (e.g. Equibase Points of Call and Points of Fractionals), and the "interface" for Provider (suppliers of racing data) objects.
Provider implementations parse the raw data contained with the provider's file format and transform it into the thoroData Model. Currently, I have implemented just one implementation of a Provider so far, the BRIS Import Chart Data (http://j.mp/as9JXj), with many more to come.
The thoroMotion API (http://j.mp/belrRo) wraps a Google Visualization API (http://j.mp/8XJBBp) Motion Chart (http://j.mp/bU0Yj2) object and provides a createThoroMotionData method that transforms any thoroData Race object into the format a thoroMotion visualization requires.
If all of the above makes absolutely no sense, don't worry! In the coming days and weeks I will give a series of simple tutorials about getting started with the thorobase API, including creating thoroMotions, custom PPs, gadgets, converting from one provider's format to another etc.
For those of you comfortable with code, please go ahead and follow the links above to the GitHub repositories where you browse the source code. I've written some (http://j.mp/bEfeDg) test (http://j.mp/9u9f9N) code (in the /test folder) that demonstrates some basic usage of the thoroData and thoroMotion modules, and I've left some comments on the code that I hope, along with the code design, makes things clear.
If you know Git and github feel free the fork the projects, and if you are comfortable with JavaScript, just download the code and get started.
Otherwise, just either subscribe to the mailing list or the RSS feed on thorobase.com (http://www.thorobase.com) and you'll receive the tutorials when they written.
If you have any questions, please don't hesitate to ask.
* thoroData (http://j.mp/cSqXHY), to encapsulate horse racing data, and
* thoroMotion (http://j.mp/bZGywp), to visualize this data.
The projects are all hosted on github.com (http://www.github.com) under my robinhowlett (http://github.com/robinhowlett) account. thoroData (http://j.mp/cSqXHY) and thoroMotion (http://j.mp/bZGywp) are submodules of the thorobase project.
The thoroData API (http://j.mp/9r3mzN) contains the basic Model for horse racing objects: Meets, RaceCards, Races, and Performances. It also contains static racing data (e.g. Equibase Points of Call and Points of Fractionals), and the "interface" for Provider (suppliers of racing data) objects.
Provider implementations parse the raw data contained with the provider's file format and transform it into the thoroData Model. Currently, I have implemented just one implementation of a Provider so far, the BRIS Import Chart Data (http://j.mp/as9JXj), with many more to come.
The thoroMotion API (http://j.mp/belrRo) wraps a Google Visualization API (http://j.mp/8XJBBp) Motion Chart (http://j.mp/bU0Yj2) object and provides a createThoroMotionData method that transforms any thoroData Race object into the format a thoroMotion visualization requires.
If all of the above makes absolutely no sense, don't worry! In the coming days and weeks I will give a series of simple tutorials about getting started with the thorobase API, including creating thoroMotions, custom PPs, gadgets, converting from one provider's format to another etc.
For those of you comfortable with code, please go ahead and follow the links above to the GitHub repositories where you browse the source code. I've written some (http://j.mp/bEfeDg) test (http://j.mp/9u9f9N) code (in the /test folder) that demonstrates some basic usage of the thoroData and thoroMotion modules, and I've left some comments on the code that I hope, along with the code design, makes things clear.
If you know Git and github feel free the fork the projects, and if you are comfortable with JavaScript, just download the code and get started.
Otherwise, just either subscribe to the mailing list or the RSS feed on thorobase.com (http://www.thorobase.com) and you'll receive the tutorials when they written.
If you have any questions, please don't hesitate to ask.