pldn / LDWizard

🧙 LDWizard: A generic framework for simplifying the creation of linked data. Supported by the PLDN community.
European Union Public License 1.2
13 stars 7 forks source link

Support uploads from URL #28

Closed wouterbeek closed 2 years ago

wouterbeek commented 4 years ago

Observation

It is currently possible to upload a local tabular data file. Sometimes it may be easier to upload a tabular data file by specifying the URL to its online publication location.

Suggestion

Let's add support for uploading tabular data (and maybe also a script) by URL.

mightymax commented 2 years ago

Implementing this enhancement is not trivial, it either requires a. writing a CORS proxy in the LDWizard project that fetches the data from the remote server on behalf of the UI; or b. implementing CORS on the remote server (the LDWizard user has obviously no way to do this).

Implementing a pure JS based solution for this using the fetch api will result in network errors because of CORS limitations. I have created a branch to illustrate the issue, see this commit, it implements the UI, but fails fetching the data when executed.

wouterbeek commented 2 years ago

Since the use case is relatively small (it is easy to download the CSV from a URL manually), and the effort is relatively large (CORS etc.), I'm closing this issue are not useful enough to warrant the effort.