Gadget is an XML inspector designed to create useful summaries of vast pools of XML data. [sound of inspector gadget theme playing in the back]
What can I do with this?
When you want to have a condensed representation of (normally, a lot!) of well-formed XML data.
This is normally useful in situations like:
- data understanding and exploration
- data migration/transformation
- data cleanup
- data complexity evaluation
- schema adherence understanding
- schema emergence
Why was it built?
I was given the task of transforming a few hundred Mb of XML into RDF and I found out (the hard way!) that with that amount of data things start to break down: you need radically different approaches since you can't simply open your 100Mb XML document in your browser to take a look at it.
Before writing Gadget I used a collection of 12-stages-long grep+sed+sort+uniq pipelines to understand what I had in that big XML pile, but that started to become a little cumbersome so I wrote this.
How much data can it handle?
Gadget is built with scalability in mind and, in theory, there is no limit to the amount of data it can handle. In practice, once the indexer starts hitting the disk things slow down considerably. If you can give your JVM as much as RAM as your XML data, you should be fine and the indexer should be very fast (1Mb/sec). If not, the indexer will start hitting the disk and it can even become a few orders of magnitude slower (10Kb/sec).
The indexer is the heavy-lifter; once that is done, the web application runs only off the indices and therefore is very fast and can scale to a lot of concurrent access (however it will need some time to start once for larger datasets). It is also completely stateless so it can be heavily parallelized horizontally in clusters would such a need emerge.
Requirements
Gadget is composed of two parts, a command line application to index the data and a web application to browse/search the results of the indexing process. Both are written in Java and they require:
Ok, ok, I'm interested, now what?
Follow me to the Gadget user guide where we'll see what we can do with this.
Where do I download it?
You can obtain Gadget in two different ways:
- download a prepackaged distribution
- download the files directly from the code repository.
In case you want to download the files from the repository (for example, if you want to have the latest and greatest development snapshot), you need to have a Subversion client installed. At this point, just type
svn co http://simile.mit.edu/repository/gadget/trunk/ gadget
at the command line and the latest gadget distribution will appear in the "gadget" directory. Licensing and legal issues
Gadget is open source software and is licensed under the BSD license located in the LICENSE.txt file located in the root of the distribution.
Note however that this software depends on libraries that are not released under the same license. If you redistribute the software it's up to you to make sure that your redistribution complies to the sum of all the requirements not just to the ones of the Gadget license.
Credits
This software was created by the SIMILE project and originally designed, conceived and written by:
- Stefano Mazzocchi <stefanom at mit.edu>
Many thanks to David François Huynh <dfhuynh at csail.mit.edu> for the precious feedback on UI design and usability.
| Attribute values | |
|---|---|
| Glossary definition | Gadget is an XML inspector designed to create useful summaries of vast pools of XML data. + |
| Doap:name | Simile Gadget + |



