-
Notifications
You must be signed in to change notification settings - Fork 45
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
clarify where to put file paths (e.g ml-25m/ratings.csv) #639
Comments
Just to make sure I understand the issue correctly: You have an organized set of files, with directories, etc. You would like to provide them individually as FileObjects instead of a zip file, and the contentURL of each file does not contain their path, but uses a flat structure with an identifier instead, so you need a way to represent path to the file in the original directory structure. Is that right? Assuming my understanding is correct, how about encoding the path in the @id of each fileObject? e.g., |
Per discussion in this issue: mlcommons/croissant#639
@benjelloun yes, you understand our situation perfectly. Thanks for the suggestion. I implemented it here: gdcc/dataverse-exporters@52c9e72 Should I go ahead and close this issue or should we use it to add something to the spec about file paths? Thanks again! ❤️ |
I think we can close this issue now, and reopen if you run into more issues with file paths. Thanks! |
During the 2024-03-20 Crossaint Task Force meeting I asked where to put file paths (e.g. "ml-25m" for "ml-25m/ratings.csv" and @benjelloun said to go ahead and create an issue to clarify the spec.
I understand that the spec is pretty clear in the case where a zip file is available and
contentUrl
can be used to show the paths to files within the zip. Here's an example from https://github.com/mlcommons/croissant/blob/v1.0.5/datasets/1.0/movielens/metadata.json that shows a file path of "ml-25m/ratings.csv":However, while Dataverse often can provide a zip of all files in a dataset, increasingly files are large and zipping is expensive, so we plan to continue using
contentUrl
for direct links to the files. (Besides, why download an entire zip if you only need one file?) I say continue because to support Google Dataset Search we already provide the following, for example, in our Schema.org output:So, if not
contentUrl
, which field should I use for the file path? Thanks!The text was updated successfully, but these errors were encountered: