Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify getting the download URL(s) #6

Open
Aklakan opened this issue May 8, 2020 · 0 comments
Open

Simplify getting the download URL(s) #6

Aklakan opened this issue May 8, 2020 · 0 comments

Comments

@Aklakan
Copy link
Member

Aklakan commented May 8, 2020

dcat search --jq datasetid yields a json description of the matches, and all downloadURLs can be obtained using

dcat search --jq org.limbo:train_3:0.0.1 | jq -r '.[].distribution[].downloadURL[].id'

The first question is, whether downloadURLs should go to the search or the data sub commands.

  • dcat data -l id yields a link to the cache, so dcat data -url could yield the link to the appropriate url w.r.t. encoding and format. In fact, the data sub command is concerned with conneg, so the url part fits there best
  • dcat search --url could return a simplified json, but it is rather a small quality of life improvement - the jq expression could be simplified to e.g. .[].downloadURL[].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant