Now that I’m familiar enough with Ruby on Rails to tweak various things, it’s time to get down to business and actually code the part that will make this thing useful. My goal is to be able to dump in a bunch of taxonomy data and spit out a tidy overview of the total hits in each category, with summaries for the top-level categories.
HH-0500.0500 HH-0500.2500-250 HH-0500.2500-250 HH-0500.8000-150 HH-0500.2500-250 HH-0500.8000-150 HH-0500.8000-150 HH-0500.0500 ND-6500.9800 FT-3000.1700 HH-0500.2500-250 HH-4500 HH-4500 HH-4500.0500 HH-0500.2500-250 ND-3500.3600 HH-4500.0500 HH-0500.2500-250 HH-0500.8000-150 HH-0500.2500-270 HH-0500.8000-150 HH-0500.8000-150 HH-0500.2500-250 YF-4500 HH-0500.0500 HH-4500 HH-0500.2500-270 HH-4500 HH-0500.2500-250 BD-1800.2000 HH-0500.0500 HH-0500.2500-250 HH-0500.2500-250 HH-0500.2500-250 HH-0500.2500-250 LV-1600 BM-6000.1500 HH-0500.2500-250 HH-4500 HH-0500.2500-250 HH-0500.2500-250 HH-0500.2500-250 HH-0500.2500-250 HH-0500.2500-250 HH-0500.2500-250 HH-0500.2500-270 HH-0500.2500-250 HH-0500.0500 HH-4500 HH-0500.2500-250 BD-1800.2000 HH-0500.0500 HH-0500.2500-250 HH-0500.2500-250 HD-6000.6200 HH-4500 BM-3000.2000 TI-1800.3000-200 HH-0500.2500-250 HD-6000.6200 HH-0500.8000-150 HH-0500.2500-250
Sample output (based on the taxonomy category names that correspond to the codes – this is the AIRS/211 Taxonomy of Human Services):
The model is backed by a super basic database with fields for titling the raw data or taxonomy to be parsed, dumping the raw data in there, and capturing a timestamp for when it was uploaded. I added a field for where the pretty parsed data can live, but I have to figure out how to
1. actually pass the raw data off and chomp it
2. write methods that can reliably handle any code in the taxonomy and based on the first letter of the code, generate a total for a top-level category
2. write methods that can match any code in the taxonomy to its category name and display that name and its total
3. pass all of this chomped data back to the database and update the appropriate database record with the parsed data