Skip to content
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

Use OTEAPI to separate between download and parse strategies #200

Open
jesper-friis opened this issue Jan 8, 2022 · 0 comments
Open

Use OTEAPI to separate between download and parse strategies #200

jesper-friis opened this issue Jan 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jesper-friis
Copy link
Collaborator

DLite storage plugins does not separate between download and parse strategies. Instead of implement this separation in DLite, use OTEAPI. In order to support this, we should change the signature of dlite_instance_load_url() and dlite_instance_save_url() to

dlite_instance_load_url(const char *parser, const char *url);

and

dlite_instance_save_url(const char *parser, const char *url, DLiteInstance *inst);

The parser argument should be used to select storage plugin, including OTEAPI parse strategy. The scheme of the URL is used by OTEAPI to select download strategy. If the URL does not contain a scheme, "file://" is implied.

The option and fragment parts of the URL may be used to provide options and instance id (UUID) to the parser.

@jesper-friis jesper-friis added the prioritised Prioritised for current sprint label Jan 8, 2022
@jesper-friis jesper-friis added enhancement New feature or request and removed prioritised Prioritised for current sprint labels Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant