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

How to obtain file list from file repository? #10

Open
mih opened this issue Nov 8, 2022 · 0 comments
Open

How to obtain file list from file repository? #10

mih opened this issue Nov 8, 2022 · 0 comments

Comments

@mih
Copy link

mih commented Nov 8, 2022

I am switching datalad-ebrains over from custom queries to using this library datalad/datalad-ebrains#33

I would appreciate input on how to obtain a "file list" given a file repository.

kg_client.instances.get_by_id('00932cbe-f90f-4968-a91f-da717c554320') already provides me an IRI like https://object.cscs.ch/v1/AUTH_.../ext-d000017_DiFuMoAtlases_pub?prefix=64/` that yields structured information on what I need to know (name, hash, size, date, and optional MIME type):

<object>
<name>64/labels_64_dictionary.csv</name>
<hash>403c17ff9dc32970ae0068cf103220d7</hash>
<bytes>6737</bytes>
<content_type>text/csv</content_type>
<last_modified>2020-02-12T13:37:49.526770</last_modified>
</object>

I wonder if ebrain-kg-core can be used to readily provide this information without having to add custom parsing of this particular file repositories response?

Thanks in advance!

ping @dickscheid

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