-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to Triplestore.value() to return a generator over all ma…
…tching values (#252) # Description Added option to Triplestore.value() to return a generator over all matching values. Also added more tests. **Question**: Is there a better way to indicate that we should return all matches? Using `any=None` to indicate that is not very intuitive. But using a special value of the `any` argument is logical, since returning any match (`any=True`), returning all matches (`any=None`) and require only one match (`any=False`) are mutually exclusive. > How about using matches="all", "any", "unique" and have unique as default? I suppose it needs to be added in addition to any, to be deprecated. The above suggestion can be a new PR ## Type of change - [ ] Bug fix and code cleanup - [x] New feature - [ ] Documentation update - [x] Testing Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
- Loading branch information
1 parent
07c9d82
commit 9bf410b
Showing
2 changed files
with
89 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters