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

getSuggestions without max_count argument #65

Closed
wouterbeek opened this issue May 31, 2017 · 1 comment
Closed

getSuggestions without max_count argument #65

wouterbeek opened this issue May 31, 2017 · 1 comment
Milestone

Comments

@wouterbeek
Copy link
Contributor

Function getSuggestions is very nice since it implements the following two common use cases:

  1. Auto-completion for typing IRIs and literals
  2. IRI namespace matching

Currently a maximum size must be given to the function, but this maximum is not always known beforehand. For example, if you want to find all DOI IRIs (use case category 2), there are over 4M matches for prefix http://dx.doi.org/ in LOD-a-lot.

Would it be possible to return the list of suggestions as an iterator of lazy list of arbitrary size?

@RubenVerborgh RubenVerborgh added this to the Late 2017 milestone Jul 9, 2017
@webdata
Copy link
Contributor

webdata commented Sep 10, 2017

I have implemented an iterator for getSuggestions in develop, commit d7e93d1

See an example of use in: tests/getSuggestions

Let me know if this solves this issue.

@webdata webdata closed this as completed Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants