refine wms relation class diag