- Prepare Hadith files from https://github.com/ceefour/hadith-islamware
- Use
org.soluvas.sanad.cli.qurandatabase.ImportHadithDatabase
from https://github.com/soluvas/sanad project. - Dump from PostgreSQL to TSV files:
psql -hlocalhost -Upostgres sanad_sanad_dev
COPY (SELECT * FROM sanad.hadithcollection) TO '/tmp/hadithcollection.tsv';
COPY (SELECT * FROM sanad.hadith) TO '/tmp/hadith.tsv';
COPY (SELECT * FROM sanad.literal WHERE id LIKE 'hadith%') TO '/tmp/literal-hadith.tsv';
COPY (SELECT * FROM sanad.spellingproperty WHERE id LIKE 'hadith%') TO '/tmp/spellingproperty-hadith.tsv';
COPY (SELECT * FROM sanad.authenticityproperty WHERE id LIKE 'hadith%') TO '/tmp/authenticityproperty-hadith.tsv';
cp -v /tmp/hadith*.tsv /tmp/*-hadith.tsv ~/git/sanad-hadith/
xz -2e -v literal-hadith.tsv # GitHub's file size limit is 100 MB
- kutubuhadits-sql (private) containing 1 Quran + 9 Hadits Compilation with Indonesian translation.