Closed lolottetheclash closed 1 year ago
This pull request introduces a comprehensive metadata management system. It includes new types and interfaces for metadata properties, categories, and items, a Zustand store for state management, and a SPARQL gateway for metadata retrieval. It also includes test cases for metadata retrieval and error handling.
File(s) | Summary |
---|---|
src/domain/metadata/command.ts |
Introduces new types and interfaces for metadata loading. |
src/domain/metadata/domain.ts |
Adds a Zustand store for state management with command and query functions. |
src/domain/metadata/entity.ts |
Defines new types and interfaces for metadata properties, categories, and items. |
src/domain/metadata/port.ts |
Adds import statements and defines several type aliases for metadata retrieval. |
src/domain/metadata/query.ts |
Introduces new types and interfaces for metadata properties and items. |
src/domain/metadata/test/... |
Adds test cases for metadata retrieval. |
src/infra/metadata/sparql/dto.ts |
Introduces new types and interfaces for Sparql bindings and results. |
src/infra/metadata/sparql/sparqlGateway.ts |
Implements the retrieveMetadata function of the MetadataPort interface. |
src/ui/store/index.ts |
Adds a new import statement for the Metadata module and creates a new store called metadataStore . |
🐇
In the land of code, where logic intertwines,
A rabbit hops, leaving traces of designs.
Metadata managed, with Zustand in store,
SPARQL queries, revealing more and more.
Tests are written, to ensure all's right,
Celebrating changes, in the soft moonlight. 🌙
This PR aims to implement metadata domain described in both of these issues: Audit & General.
It implements the connexion to the ontology to get a dataset / service / zone metadata.
This PR concerns the domain part, the UI update will be made in another dedicated PR.
Summary by CodeRabbit
New Features:
Refactor:
Test:
Chore: