As a researcher, you should clarify ownership of and rights relating to research data before a project starts. It will determine how the data can be managed into the future, so these should be documented early in a project through Data Management Plan.