feat: Add SQLite conversion, FTS5 search optimization, and compression pipeline for offline use for App#122
Open
IsmailHosenIsmailJames wants to merge 5 commits intofawazahmed0:1from
Open
Conversation
…nstructions for generating databases.
Owner
|
Salam Alaykum, I have added link to your sqlite repo in README. It would be more efficient to keep these SQLite-related updates localized in that repository to avoid cluttering the main branch. |
Author
|
Okay. Maybe you are correct. You can close it. Jajakallhu Kairon |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a complete offline-first pipeline that converts the Hadith JSON API into optimized SQLite databases. This enable mobile and web developers to integrate high-performance Hadith search and synchronization with minimal overhead.
Key Features
1. SQLite Conversion with FTS5 (
json_to_sqlite.py)book_info,sections,hadiths, andgradestables.2. Compression & Metadata Pipeline (
compress_and_info.py).zipfiles.ara/,eng/,ben/).all_info.jsonand language-specificinfo.jsonfor easy app integration.3. Interactive Documentation
index.html).Hosting & Resources
The assets generated by this pipeline are now publicly hosted:
How to Regenerate Data
To update the SQLite databases after JSON changes:
python3 json_to_sqlite.pypython3 compress_and_info.pycompressed_hadith_sqlite/folder to the resource repository.