Merge of material id?

Yes, materials may map to new “canonical” ids.

See previous discussion for doing robust queries / auto-mapping: