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

refactor: oxigraph -> sophia api #13

Merged
merged 15 commits into from
Oct 30, 2023
Merged

refactor: oxigraph -> sophia api #13

merged 15 commits into from
Oct 30, 2023

Conversation

cmdoret
Copy link
Member

@cmdoret cmdoret commented Oct 26, 2023

This PR replace calls to oxigraph with sophia_rs.
It offers the following advantages:

  • json-ld support (not added here yet)
  • prettified turtle serialization
  • HDT support via an extension
  • lower level api, which allows implementing custom parsers

It also adds benchmarking scripts in scripts/ to help detect changes in performance.
The sophia version of rdfpipe-rs is marginally slower than the oxigraph version (rdfpipe-ox), but this is negligible especially considering that it generates prettified ttl (see below).

image

The weak points of this refactor it that the whole graph gets loaded into memory upon parsing.

@cmdoret cmdoret self-assigned this Oct 26, 2023
@cmdoret cmdoret added this to the 3. support sophia formats milestone Oct 26, 2023
@cmdoret cmdoret linked an issue Oct 26, 2023 that may be closed by this pull request
2 tasks
@cmdoret cmdoret merged commit 54c1d98 into main Oct 30, 2023
1 check passed
@cmdoret cmdoret deleted the refactor/sophia branch November 15, 2023 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor to sophia 0.8.0
1 participant