Is there a way to import Term to Attribute associations?

There are APIs and import functions for Glossaries and Terms, but nothing for associating attributes to Terms. How can I do this in an automated fashion?