Right-protected data publishing with provable distance-based mining