Protected
Readonly
_apiProtected
Readonly
_dataProtected
getRetrieves schema files for the structure models defined within a data specification and navigates to the subdirectory which contains the schemas for a specified aggregate. Currently, the schemas are provided by Dataspecer backend service.
The metadata for an aggregate for which the schemas should be retrieved.
A promise that resolves to a JSZip object containing the schemas for the specified aggregate.
Protected
getThis method attempts to retrieve a human-readable label for specified data specification which is represented by IRI.
The IRI identifier of the data specification.
A promise that resolves as normalized directory name.
Retrieves the schema artifact for a given aggregate.
The metadata for an aggregate for which the schemas should be retrieved.
A promise that resolves to the layer artifact file describing the schema of the aggregate. The schema is format-specific and is defined within the configuration.
Protected
getGenerates a layer artifact which contains the data schema for the specified aggregate. This instance generates an artifact which contains the LDkit schema of the aggregate.
The JSZipObject representing the file to be processed.
The aggregate metadata for which the schema is being generated.
A promise that resolves to a LayerArtifact containing the schema details.
Abstract base class for providing schema-related functionalities in the Dataspecer application.
This class serves as a foundation for schema providers, offering methods to retrieve schema artifacts and handle schema files for specific aggregates. It interacts with a remote server to fetch the necessary data and processes it to extract schema information.