Skip to content

Commit

Permalink
add a TODO: where to put directoryLabel (file path)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Apr 24, 2024
1 parent 151efb7 commit 13b47e2
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,19 @@ public void exportDataset(ExportDataProvider dataProvider, OutputStream outputSt
String checksumType = checksum.getString("type").toLowerCase();
String checksumValue = checksum.getString("value");
String contentUrl = oreFiles.getJsonObject(fileCounter).getString("schema:sameAs");
/**
* TODO: directoryLabel is unused right now because we're not
* sure where to put it. The spec and examples show it in
* contentUrl but we use this field already. We have asked for
* clarification in
* https://github.com/mlcommons/croissant/issues/639
*
* It's suboptimal that the directoryLabel isn't already
* included in dataProvider.getDatasetFileDetails(). If it gets
* added as part of the following issue, we can get it from
* there: https://github.com/IQSS/dataverse/issues/10523
*/
String directoryLabel = oreFiles.getJsonObject(fileCounter).getString("dvcore:directoryLabel");

distribution.add(
Json.createObjectBuilder()
Expand Down

0 comments on commit 13b47e2

Please sign in to comment.