Freely accessible does not mean free to use
Content made freely accessible on the web is still protected by copyright, unless there is a statment to the contrary.
It is not in the public domain - you need to look at the terms and conditions set by the rights holder.
Public Domain
A work is in the public domain - ie free to use, modify and build upon free of copyright considerations when:
a) It is no longer protected by copyright law and is “public property”, usually when the copyright in a work expires. In the UK this is generally 70 years after the death of the author / creator. for a literary work.
b) When the creator has explicitly waived all rights to the content and in effiect placed it in the Public Domain. This may be done by the creator using a CCO Licence.
Source of the data
Unless you have produced the data, it will be protected by copyright law and needs either permission from the rightsholders, or it should fall within the copyright legislation exception. Presuming Public Domain materials are not being used.(See sidebar.)
Under UK law there is a copyright exception that enables TDM for non-commercial research.
The key points are:
N.B. The term non-commercial applies to the purpose – not the person or institution carrying out the project.
There were plans to extend the TDM exception to allow TDM for any purpose but these plans were withdrawn in March 2023 and the UK government is struggling to pass further legisltion. Watch this space!