Skip to content

using file-based metadata - #102

Draft
pkdash wants to merge 89 commits into
masterfrom
use-file-based-metadata
Draft

using file-based metadata#102
pkdash wants to merge 89 commits into
masterfrom
use-file-based-metadata

Conversation

@pkdash

@pkdash pkdash commented Apr 19, 2026

Copy link
Copy Markdown
Member

Summary of this WIP PR:

  • All of the relevant hsclient functions have been updated to use s3 protocol replacing the use of hydroshare rest endpoints.
  • To keep the resource level metadata editing interface unchanged due to the new schema.org metadata file-based metadata, metadata mapping has been implemented between the legacy metadata format and the schema.org format for the resource level metadata.
  • TODO:
    • Similar to resource level metadata mapping, metadata mapping needs to be implemented for each content type/aggregation to keep the aggregation level metadata editing interface unchanged. Order of implementation:

      • GeoRaster (WIP)
      • Multidimensional (WIP)
      • GeoFeature
      • CSV
      • SingleFile
      • Fileset
      • Timeseries (based on ODM2)
    • Tests are currently failing which need to be fixed and updated to use file-based json metadata (WIP)

    • New Pydantic models for file-based metadata in schema.org format used in hsclient should be moved to hsmodels so that both hydroshare and hsclient can share the same pydantic schemas/models

@pkdash pkdash changed the title using file-based metada using file-based metadata Apr 20, 2026
@pkdash

pkdash commented Apr 30, 2026

Copy link
Copy Markdown
Member Author

@sblack-usu Have a look at this initial implementation to make hsclient to work with file-based metadata. There is still quite a bit of work to do. It would be good to get your feedback on what I have implemented so far before I do more work on this.

@sblack-usu
sblack-usu self-requested a review June 17, 2026 15:33
@pkdash pkdash linked an issue Jul 20, 2026 that may be closed by this pull request
pkdash added 26 commits July 22, 2026 09:34
…ed on schema org (later these should be part of hsmodels)
…w schema org based pydnatic models and the legacy pydantic models
- Introduced S3 client setup and user credential retrieval for accessing S3 resources.
- Updated Aggregation and Resource classes to support file-based metadata operations using S3.
- Refactored metadata retrieval and saving methods to utilize JSON-LD format.
- Enhanced file handling with size and checksum attributes in the File class.
…data and schema.org based resource metadata convertion
…retrieval when colllecting resource aggregations
…s3 protocol - replacing hsydroshare api endpoint use
pkdash added 30 commits August 7, 2026 22:41
…rip with the same field on the newer resource metadata model
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

Successfully merging this pull request may close these issues.

HSClient updates for filebased metadata

1 participant