-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
enhancementNew feature requestNew feature request
Description
Search terms you've used
- fluent
- fluent api
Feature suggestion
A fluent API for reading data.
Currently there is only a fluent API for constructing data. But it would be also possible (and maybe more widely usable) to create a fluent API for reading data.
In fact, the current style is almost there, but just with the addition of introducing relevant methods to the relevant types, instead of chaining function calls.
Expected functionality/enhancement
- Allow directly calling methods when reading structured data, instead of chaining function calls, to be more intuitive.
- Relevant methods for dealing with potentially multiple values/objects of the same subject & predicate.
- If the value is a URL (e.g. originally obtained by
getUrl), allow "resolving" it as aThing.- This may be provided in the first-level as well, saving the potential duplication of
getSolidDataset. - Of course, corner-cases may need to be handled.
- In particular, what if the current dataset already has triples of that URL (as subject)? That's why "resolving" (by fetching the dataset matching that URL) should not be the default behaviour. Maybe should also provide a method/function to "merge" the two datasets.
- This may be provided in the first-level as well, saving the potential duplication of
Use Cases
Easier development.
Metadata
Metadata
Assignees
Labels
enhancementNew feature requestNew feature request