The first category map must contain the relations between the items and the categories on hierarchy level 1. The name mapping that is specified with the category map only acts on the categories. You must specify the name mapping for the items with the item field. For more information, see Defining a name mapping in the logical data specification.
You can define more than one taxonomy in a logical data specification.
IDMMX.DM_LogicalDataSpec()..DM_addTax('MyTax', 'MYSCHEMA.MYTAXTABLE', 'ITEMCOL', 'CATMAPCOL_1', cast(NULL as VARCHAR), 0)
IDMMX.DM_LogicalDataSpec()..DM_addDataSpecFld('COL1')..DM_addNmp ('ItemNmp','MYSCHEMA.MYNMPTABLE', 'ITEMCOL','MAPPEDITEMCOL') ..DM_addNmp('CatMapNmp','MYSCHEMA.MYNMPTABLE','VALUECOL', 'MAPPEDVALUECOL')..DM_setFldNmp('COL1', 'ItemNmp')..DM_addTax ('MyTax', 'MYSCHEMA.MYTAXTABLE', 'ITEMCOL', 'CATMAPCOL_1', 'CatMapNmp', 0)