Coder Social home page Coder Social logo

tolchi / bible-database Goto Github PK

View Code? Open in Web Editor NEW

This project forked from godlytalias/bible-database

0.0 2.0 0.0 78.12 MB

Bible databases as JSON, SQL & SQLITE3 Database format for various Indian languages. Developers can download it freely for their development works.

PLpgSQL 99.98% Objective-C 0.02%

bible-database's Introduction

Bible Database

This database files are released to help developers in easily developing Bible applications, Developers also requested to raise patches for any fixes found in the database files.

Usage

This branch contains sql files, sqlite database and JSON database for Bible in these languages currently: #. English #. Malayalam #. Hindi #. Telugu #. Tamil #. Kannada #. Oriya #. Gujarati #. Bengali

SQL Database

SQL Database is having fields Book, Chapter, Versecount which are of type INT and verse field which is VARCHAR. The Book field starts from 0 and Chapter & Versecount from 1. Below is a sample SQL query for fetching John 3:16

Select Book,Chapter,Versecount,verse from bible where Book=42 and Chapter=3 and Versecount=16;

JSON Database

JSON Database have fields Verse & Verseid. Verseid field is a unique id which is a comibination of Book + Chapter + Verse. First two digits represents Book(0 - 65), Second three digits represent Chapter and last three digits represent Verse. For JSON Database, Book, Chapter and Verse starts from 0. Below is a sample PHP code for fetching John 3:16;

>>> <?php >>> $filecontent = file_get_contents("bible.json"); >>> $books = json_decode($filecontent); >>> echo $books->Book[42]->Chapter[2]->Verse[15]->Verse; >>> ?>

Javascript Example

>>> var bible; >>> function readJsonFile() { >>> var rawFile = new XMLHttpRequest(); >>> rawFile.overrideMimeType("application/json"); >>> rawFile.onreadystatechange = function() { >>> if (rawFile.readyState === 4 && rawFile.status == "200") { >>> bible = JSON.parse(rawFile.responseText); >>> } >>> }; >>> rawFile.open("GET", "bible.json", true); >>> rawFile.send(); >>> } >>> >>> function queryverse(book, chapter, verse) >>> { >>> return bible.Book[book - 1].Chapter[chapter - 1].Verse[verse - 1].Verse; >>> }

Users can clone this repo by typing :

git clone https://github.com/godlytalias/Bible-Database.git

Help, bugs, feedback

  1. Users can mail their queries, feedback and suggestions at [email protected]
  2. Developers/Contributor can raise issues at issues or by mail
  3. Pull requests are most welcome, Please fix if any bugs found and push the patches.

Credits

The databases are created by extracting data from Wordproject®

License

GNU GPL Version 3, 29 June 2007.

Please refer this link for detailed description.

All rights belong to Godly T.Alias.

Copyright © 2015

bible-database's People

Contributors

godlytalias avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.