First, claim all the items (d-b-f), then dump them (d-b-d). Don't forget to switch off dumping the cages themselves (k-d on each cage). A whole slew of dwarf haulers should spring into action to strip your caged goblins naked. Then toss them in a pit and use them as live training for your militia.