Have a look in the extension warehouse and search for attribute editor you will get a grasp of how the DC attributes are applied to the components. You can add attributes to multple components at once.
The next step is to explore ruby for this task, see this thread: