We need a free data license that stipulates that “if you use this data, the code you use must be released under so-so-and-so license”. Where the license in question is a share-alike free software license like AGPL.
This will protect the freedom of the data and prevent it from being enclosed behind proprietary APIs, etc., by corporate interests.
(And, as such, will not be endorsed/strongly opposed by the “open data” folks for whom “open” means “open to be privatised.”) https://fediscience.org/@petersuber/113142012355378404