Study on the legal framework of text and data mining (TDM)