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

Binary Search fails on a databus resource #45

Open
Aklakan opened this issue Sep 2, 2021 · 1 comment
Open

Binary Search fails on a databus resource #45

Aklakan opened this issue Sep 2, 2021 · 1 comment

Comments

@Aklakan
Copy link
Member

Aklakan commented Sep 2, 2021

The request below results in a syntax error in the binary search engine (currently in jena-sparql-api-io-core).
The reason is that the block boundary in the bzip2 is not correctly detected causing data to get cut off.
The buggy code still uses my regex matching and needs to be updated to use the hadoop codec.

SELECT * {
  SERVICE <x-binsearch:vfs:https://downloads.dbpedia.org/repo/lts/transition/links/2017.11.01/links_domain=bricklink_lang=en.nt.bz2> {
    { SELECT * {
      ?s ?p ?o
    } LIMIT 10 }
  }
}
@Aklakan
Copy link
Member Author

Aklakan commented Sep 5, 2024

The url is still online and it works with the revised code which now only relies on hadoop's Bzip2Codec (and none of my old matching stuff).

Remaining work before finally closing this issue:

  • transfer issue to jenax
  • add this file as a test case
  • add buffering under the bzip2 stream; right now for this small file it repeatedly fetches the same bz2 block via http.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant