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

Add multiple properties fetch to RdfSource #12

Closed
skodapetr opened this issue Jul 28, 2021 · 1 comment
Closed

Add multiple properties fetch to RdfSource #12

skodapetr opened this issue Jul 28, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@skodapetr
Copy link
Collaborator

As of now RdfSource allow use to read one property at a time. When reading multiple properties for a single object such approach is sub-optimal.

In addition we can also add new methods that allow user to request multiple properties, e.g.

properties(iri: string[], predicate: string): Promise<{[predicate:string] : RdfObject[]}>;

and similar for reverse property.

The default implementation may utilize the property and reverseProperty operations. In the final step an optimization can be implemented for SparqlSource.

@skodapetr skodapetr added the maintenance Non-functional change request label Jul 28, 2021
@skodapetr skodapetr added enhancement New feature or request and removed maintenance Non-functional change request labels Aug 23, 2021
@sstenchlak
Copy link
Member

This is still partially relevant. We have a concept of views, where the user may request a surrounding. But there is no mechanism to fetch multiple surroundings at once or numerous single resources at once. Nevertheless, due to the current set of "CIM adapters", there is no case where this would be beneficial.

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

2 participants