-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New minimal "semantic" data model for sessions #176
Comments
Why is it needed? Isn't it a big change for the framework? Will it destroy compatibility with previous plugins? |
We're trying to not destroy compatibility with previous plugins, but only for a while. Our intention is to move to a more minimalized session, and keep data in a semantic container, in the default case a DLite collection. However, it could be using any framework for this, internally, this depends mainly on the strategies and the overall service that installs this package and a select group of plugin packages. |
See also the description of In addition to them, the download strategy needs a standard way to communicate how to retrieve the downloaded content, e.g. the key under which the content is stored in the data cache. Note that the download strategy has no idea about the meaning of the downloaded content, so it make no sense for it to try to use Would introducing standard
To not bother all parse strategies with these details, OTEAPI could provide a utility function Note, if we have several download strategies after each other in one pipeline this wouldn't work. But that is not how the pipelines are supposed to be used. However, the following should actually work
since the get() method of |
When splitting the dataresource datamodel into download (may be called dataresource) and parse, it was suggested that It may be generalised to |
In addition to |
An important question that has not been answered here is where the This is the same question as addressed in issue #211. |
In a recent discussion between @quaat, @jesper-friis and myself, we decided to move in a direction where the session object is not used to transfer data in any way, but rather reference semantic objects (like DLite collections or OSP-Core entities) in which the data is put/stored, which can then be referenced and invoked in the individual strategies as needed.
A first step to moving in this direction is to expand the
SessionUpdate
pydantic model with some minimum fields that may not be overwritten in sub-classes and are information complete with respect to retrieving the semantic object and understanding which framework to use (DLite, OSP-Core, etc.).The text was updated successfully, but these errors were encountered: