The Noble Quran in its original Arabic, alongside translations
Find a file
2023-02-02 02:53:09 -03:00
bin Correct typo's in the Arabic text 2022-12-26 02:52:16 -03:00
bindata improve the pull-farsi, and pull-portuguese scripts 2022-07-17 16:37:36 -03:00
binlib binlib/sql/template: add 'locals' method. 2022-10-07 15:25:02 -03:00
src Correct typo's in the Arabic text 2022-12-26 02:52:16 -03:00
.gitignore add new SQL section "Save the database to disk". 2022-07-17 20:14:04 -03:00
.rubocop.yml rubocop-ify 2022-07-16 16:19:50 -03:00
.ruby-version readme: update. 2022-04-26 16:35:06 -03:00
.sqliterc add sample .sqliterc file. 2022-06-11 17:45:14 -03:00
Gemfile Gemfile: add source 2022-09-19 18:59:45 -03:00
README.md Shrink the README 2023-02-02 02:53:09 -03:00
VERSION v0.11.1 2022-12-26 02:56:03 -03:00

About

This repository contains the contents of the holy book, The Quran - in its original Arabic. Translations in English, Farsi, and Portuguese are also included. The contents are available in the JSON, and SQL formats.

Contents

  1. src/json/
  2. src/sql/
  3. bin/

src/json/

JSON schema

Each JSON file represents a surah (also known as a chapter). The format of the JSON files can be described as an array where the first element is an object that contains information about a surah, and the rest of the array is made up of two-element arrays. The first element is the ayah number (also known as a verse number), and the second element is the contents of the ayah. See Surah Al-Fatihah as an example.

## <a id='srcsql-directory'>src/sql/</a>

* [src/sql/schema.sql](src/sql/schema.sql) defines the schema of the database.
* [src/sql/seed.sql](src/sql/seed.sql) can be used to populate a SQL database.
* [src/sql/queries/](src/sql/queries) contains example SQL queries.

## <a id='bin-directory'>bin/</a>

The [bin/](bin/) directory contains scripts that generate the contents of the
[src/](src/) directory:

* JSON scripts
  * [bin/json/pull-arabic](bin/json/pull-arabic) <br>
    This script populates [src/json/ar/](src/json/ar/).
  * [bin/json/pull-english](bin/json/pull-english) <br>
    This script populates [src/json/en/](src/json/en/).
  * [bin/json/pull-farsi](bin/json/pull-farsi) <br>
    This script populates [src/json/fa/](src/json/fa/).
  * [bin/json/pull-portuguese](bin/json/pull-portuguese) <br>
    This script populates [src/json/pt/](src/json/pt/).

* SQL scripts
  * [bin/sql/create-sql-seed-file](bin/sql/create-sql-seed-file) <br>
    This script creates [src/sql/seed.sql](src/sql/seed.sql).

## Credit

Thanks to the following websites:

  * https://searchtruth.com - for the original Arabic.
  * https://quran.com - for the English translation.
  * https://al-quran.cc - for the Farsi, and Portuguese translations.

## License

This software is released into the Public Domain.