-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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 ?