Support for containers #8
Labels
enhancement
New feature or request
high energy
Represents a task which need a lot of energy
long-run
Planned features for the long-run
Milestone
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 thesource
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
?The text was updated successfully, but these errors were encountered: