|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
There's been some interest in making some of the raw data we use in our database available for everyone to use independently, and I'm currently in the process of making that happen... so to anyone who might like to use this, what format would be most accessible / easiest to integrate / etc?
I've already started to add in support for JSON (mostly because of its language / platform friendliness / ease of use) but I'm sure there's some other formats that would work better. XML is toward the top of the list, but from personal experience I know it's a pain to parse and may complicate things for anyone wishing to use it. Exporting as an Excel spreadsheet / PDF document isn't currently at the top of the list, but can certainly be bumped up if there's enough interest You can see a first taste of the JSON access here, others will accessible similarly: http://glass.frcdb.net/team/1/json It should work with any team number, and more exported data (event-wide, etc) should be available soon using a similar URL scheme. Note that this only works on our test site, http://glass.frcdb.net/. Feel free to comment/offer suggestions on other new things as well -- we're adding support for more years ('09 is almost ready) as well as per-event (and soon to be per-team) wikis and other features to help document FRC. Thanks for any suggestions! |
|
#2
|
||||
|
||||
|
Re: Best Data Format?
Quote:
|
|
#3
|
|||||
|
|||||
|
Re: Best Data Format?
I second Ether's comment. CSV can trivially be imported into Excel, Access, parsed into XML or just perused manually if necessary.
I think the goal should be to select a format that is as universally accessible as possible, while maintaining the data value. |
|
#4
|
|||
|
|||
|
Re: Best Data Format?
I had partially dismissed CSV/TSV/PSV/etc before because I wasn't able to export our data tree to it directly. But it's probably the most accessible format we can offer so I think I'll need to find a way
![]() I don't think it could be done in the same manner as JSON or other tree-based formats (XML, etc) so it'd probably multiple files of lists, like: teams.csv Code:
# number, nickname, location, rookie season, other stats... 1,The Juggernauts,Pontiac, MI USA,1997,... 4,Team 4 ELEMENT,Van Nuys, CA USA,1997,... Code:
# name, short name, start date, end date, other stats Ann Arbor FIRST Robotics District Competition,ann-arbor,1268377200000,1268463600000,... Code:
# number, red 1, red 2, red 3, blue 1, blue 2, blue 3, red score, blue score 1,68,1998,49,2591,2619,862,1,5 2,2611,1684,3415,2627,3302,1940,0,0 We've also finished JSON exporting for events, mostly, e.g. http://glass.frcdb.net/event/colorado/json returns basically the same data as the normal event page. (A somewhat more readable example of event JSON here). With any luck, the 2 current choices should make things pretty accessible! |
|
#5
|
||||
|
||||
|
Re: Best Data Format?
Quote:
Last edited by Ether : 05-12-2010 at 09:27. |
|
#6
|
|||
|
|||
|
Re: Best Data Format?
I've proposed a standard XML format, of which you can find in my footer:
Quote:
I might look at representing the data points with an RDF data model, a model that makes statements about resources (for instance, (X alliance) scored (x points), or (Y team) has a penalty "crossed the line")... It's still rather hard to use, but could be very cool for analytics. If you have data you just want to get rid of, use CSV or JSON first, that's easiest to parse and can be converted into other formats with very little scripting. |
|
#7
|
|||
|
|||
|
Re: Best Data Format?
Well, our JSON interface interface is working nicely, and currently looks something like this:
Code:
http://frcdb.net/event/whatever/json (single event, includes match data and standings) http://frcdb.net/team/####/json http://frcdb.net/json/teams (all teams) http://frcdb.net/json/events (all events) Anyway, it‘s a good thing someone‘s thought to make a standard XML format! We‘ve been planning to offer that but lost some priority when it was decidedly too hard to parse, but standardizing it can make this a ton easier. CSV is still in the works, but converting our data to a relational model tends to be more time consuming than simply dumping it out Apparently that‘s what we get for storing everything with mass serialization instead of in an SQL database like we should have... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FRC Event Data in XML Format | Andrew Schreiber | General Forum | 43 | 24-10-2010 09:08 |
| FIRST Event Data in XML format | Andrew Schreiber | Technical Discussion | 11 | 03-05-2009 04:18 |
| How to write image data to binary PGM file format(P5)? | tommy_chai | Programming | 0 | 08-10-2007 08:22 |
| Scouting Data Interchange Format | proegssilb | Scouting | 7 | 06-06-2007 19:29 |