Skip to content

Support for containers #8

@YuukanOO

Description

@YuukanOO

Sometimes the same kind of resource is split in multiple documents tied together by containers. For example, blog posts could live in paths blog/year/month/posts.ttl.

As of now, repositories manage a single resource (dataset). We could extend it to allow source to be a container url (in the example given above, source could be <baseurl>/blog). If it's a container, we can determine the dataset needed to persist a data by asking for a (data: TData) => string to return a relative path given a data to persist. With this function, we can determine the needed path from the source root container.

The repository should then create containers and dataset as needed to save the final stuff. It should also enable data to be moved between dataset by checking if the data.url !== generatedUrl.

For type index, we may determine if it's a container with the instanceContainer ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthigh energyRepresents a task which need a lot of energylong-runPlanned features for the long-run

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions