It's nice to say that Data has rights, but also keep in mind that he wasn't created by Starfleet. He is his own unique life form, especially after his creator died.
That's my problem with the Doctor and his holograms rights. He is a property of Starfleet whether he wants to be or not. The terrible writing on Voyager never addresses this.
By this logic, Data is the property of Dr Soong.