Closed eleftherioszisis closed 1 year ago
@mgeplf , @joni-herttuainen , @GianlucaFicarelli , please feel free to leave your feedback and discuss what directions would be interesting/useful for download()
.
I think this is good
The https://bbp.epfl.ch/neurosciencegraph/data/1e2d3085-b591-4041-a33f-d8220cd72a61?rev=12 downloads a file, but names it file
; I have opened a bug for that here: https://bbpteam.epfl.ch/project/issues/browse/DKE-1094
Enhance
download
to allow processing more types of downloadable KG resources within reason.Features
contentUrl
.Assumptions:
DataDownload
type.contentUrl
attribute. This is true for all store types.distribution.atLocation.location.startswith("file:///gpfs")
Restrictions
Questions
contentUrl
but nodistribution
?url
entry. Is it sensible/expected to have downloadable content?Example Cases
Two distributions, but one is not like the other
https://bbp.epfl.ch/neurosciencegraph/data/1e2d3085-b591-4041-a33f-d8220cd72a61?rev=12
Behavior:
Distributions with atLocation but with a DiskStorage type of store
https://bbp.epfl.ch/neurosciencegraph/data/neuronmorphologies/a62417c8-704a-44fe-9088-854ed8bb2a35?rev=9
Behavior:
Distribution with a RemoteDiskStorage and atLocation.location gpfs path
https://bbp.epfl.ch/neurosciencegraph/data/d6fe7775-0f20-48f5-8819-825d392122d9?rev=1
Behavior:
create_links_if_possible
is Falsecreate_links_if_possilbe
is True