2022-12-26 06:42:01 +01:00
|
|
|
## About
|
2022-04-26 14:12:16 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
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.
|
2022-12-26 06:42:01 +01:00
|
|
|
|
|
|
|
**Contents**
|
2022-04-26 14:12:16 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
1. [src/json/](#srcjson-directory)
|
|
|
|
2. [src/sql/](#srcsql-directory)
|
|
|
|
3. [bin/](#bin-directory)
|
2022-07-11 23:08:58 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
## <a id='srcjson-directory'>src/json/</a>
|
2022-04-26 14:12:16 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
* [src/json/ar/](src/json/ar/) contains The Quran in its original Arabic.
|
|
|
|
* [src/json/en/](src/json/en/) contains an English translation of The Quran.
|
|
|
|
* [src/json/fa/](src/json/fa/) contains a Farsi translation of The Quran.
|
|
|
|
* [src/json/pt/](src/json/pt/) contains a Portuguese translation of The Quran.
|
2022-06-20 18:37:22 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
### JSON schema
|
2022-06-20 18:37:22 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
Each JSON file represents a surah (also known as a chapter). The format of the JSON
|
2022-10-07 01:12:02 +02:00
|
|
|
files can be described as an array where the first element is an object that contains
|
2023-02-02 06:53:09 +01:00
|
|
|
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](src/json/en/1.json) as
|
|
|
|
an example.
|
2022-07-11 23:16:56 +02:00
|
|
|
```
|
2023-02-02 06:53:09 +01:00
|
|
|
## <a id='srcsql-directory'>src/sql/</a>
|
2022-07-11 23:16:07 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
* [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.
|
2022-07-11 23:26:55 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
## <a id='bin-directory'>bin/</a>
|
2022-05-28 08:54:34 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
The [bin/](bin/) directory contains scripts that generate the contents of the
|
|
|
|
[src/](src/) directory:
|
2022-04-26 21:34:37 +02:00
|
|
|
|
2022-07-14 01:14:19 +02:00
|
|
|
* JSON scripts
|
|
|
|
* [bin/json/pull-arabic](bin/json/pull-arabic) <br>
|
2023-02-02 06:53:09 +01:00
|
|
|
This script populates [src/json/ar/](src/json/ar/).
|
2022-07-14 01:14:19 +02:00
|
|
|
* [bin/json/pull-english](bin/json/pull-english) <br>
|
2023-02-02 06:53:09 +01:00
|
|
|
This script populates [src/json/en/](src/json/en/).
|
2022-07-14 01:14:19 +02:00
|
|
|
* [bin/json/pull-farsi](bin/json/pull-farsi) <br>
|
2023-02-02 06:53:09 +01:00
|
|
|
This script populates [src/json/fa/](src/json/fa/).
|
2022-07-14 01:14:19 +02:00
|
|
|
* [bin/json/pull-portuguese](bin/json/pull-portuguese) <br>
|
2023-02-02 06:53:09 +01:00
|
|
|
This script populates [src/json/pt/](src/json/pt/).
|
2022-10-06 14:13:00 +02:00
|
|
|
|
2022-07-14 01:14:19 +02:00
|
|
|
* SQL scripts
|
|
|
|
* [bin/sql/create-sql-seed-file](bin/sql/create-sql-seed-file) <br>
|
2023-02-02 06:53:09 +01:00
|
|
|
This script creates [src/sql/seed.sql](src/sql/seed.sql).
|
2022-04-27 01:57:03 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
## Credit
|
2022-04-26 14:12:16 +02:00
|
|
|
|
2023-02-02 06:53:09 +01:00
|
|
|
Thanks to the following websites:
|
2022-04-26 14:12:16 +02:00
|
|
|
|
2022-12-26 06:42:01 +01:00
|
|
|
* https://searchtruth.com - for the original Arabic.
|
2022-04-26 21:34:37 +02:00
|
|
|
* https://quran.com - for the English translation.
|
2022-06-19 00:13:03 +02:00
|
|
|
* https://al-quran.cc - for the Farsi, and Portuguese translations.
|
2022-05-29 19:27:59 +02:00
|
|
|
|
2022-07-14 01:18:37 +02:00
|
|
|
## License
|
2022-05-29 19:27:59 +02:00
|
|
|
|
2022-06-17 10:37:57 +02:00
|
|
|
This software is released into the Public Domain.
|
2022-07-19 21:54:10 +02:00
|
|
|
|