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

Add SQLite/SemSQL export format #1147

Closed
wants to merge 3 commits into from
Closed

Conversation

gouttegd
Copy link
Contributor

This PR adds db as a new export format for release artefacts.

A .db file is a SQLite3 file containing a SemSQL representation of the release product.

All tools needed to build SQLite3/SemSQL files (semsql, rdftab, sqlite3, and relation-graph) are moved from ODKFull to ODKLite, so that the standard, ODK-generated workflows still only require ODKLite. This increases the size of ODKLite from ~1.34GB to ~1.5GB (compared to ~3.06GB for ODKFull).

If the project is configured to use a global prefix context (use_context=true), the same context (converted from JSON to CSV) is used when building the SemSQL files. Otherwise, we let semsql use its built-in list of prefixes.

closes #1142

Make sure that

* sqlite3 (Debian package),
* semsql (Python package),
* rdftab (custom-built from source),
* and Relation-Graph (downloaded as is)

are all available in ODKLite, rather than only in ODKFull.

This is so that a standard release pipeline still only requires
ODKLite, even if the project is configured to produce SQLite/SemSQL
files.
Support the production of release artefacts in SQLite/SemSQL format.

This requires a CSV-formatted list of prefixes, so if the project is
configured to use a global context, we derive the CSV from it.
Otherwise, we let `semsql` use its builtin prefix list.
Add 'db' to the list of the default export formats.
@gouttegd gouttegd self-assigned this Nov 28, 2024
@gouttegd gouttegd requested a review from matentzn November 28, 2024 18:40
@gouttegd
Copy link
Contributor Author

So enabling SemSQL export by default means that running the test suite now takes so long, it cannot be completed before running into the 360-minutes time limit…

@gouttegd
Copy link
Contributor Author

Superseded by #1148, which does not enable the new export format by default.

@gouttegd gouttegd closed this Nov 29, 2024
@gouttegd gouttegd deleted the add-semsql-export-format-2 branch November 29, 2024 08:06
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

Successfully merging this pull request may close these issues.

Add SQLite/SemSQL as an export format
1 participant