Skip to content

brian-cummings/BibleGraph

Repository files navigation

Bible Cross-Reference Graph Builder

This application converts a Bible cross-reference dataset into a graph database format. It processes verse-to-verse relationships and their weights, handling both single verses and verse ranges.

Prerequisites

  • .NET 9.0 SDK Preview (version 9.0.100-preview.1.24101.2 or later)
  • Input file containing Bible cross-references in TSV (tab-separated values) format

Input File Format

The input file should be a tab-separated file with the following format: From Verse To Verse Votes #Comments Gen.1.1 Isa.51.13 45 Gen.1.1 John.1.1-John.1.3 316

Each line represents a cross-reference with:

  • Source verse (e.g., "Gen.1.1")
  • Target verse or verse range (e.g., "John.1.1-John.1.3")
  • Weight/votes (integer)

Building and Running

From the src/GraphBuilder directory:

dotnet build
dotnet run <input-file> <output-file>

Example:

dotnet run bible_cross_references.txt output.dbms

Output Format

The application generates a DBMS file containing:

  1. Schema Creation

    • BibleVerse nodes with properties:

      • Reference (string)
      • Book (string)
      • Chapter (int)
      • Verse (int)
      • IsRange (bool)
    • BibleVerseRange nodes with properties:

      • Reference (string)
      • Book (string)
      • StartChapter (int)
      • StartVerse (int)
      • EndChapter (int)
      • EndVerse (int)
      • IsRange (bool)
  2. Node Creation

    • Individual verse nodes
    • Verse range nodes
  3. Edge Creation

    • Cross-reference relationships with weights

Graph Structure

  • Nodes represent either individual verses or verse ranges
  • Edges represent cross-references between verses/ranges
  • Edge weights indicate the number of votes for each cross-reference

Example Queries

Once the data is loaded into a graph database, you can:

  • Find all references to a specific verse
  • Discover the most referenced verses
  • Analyze verse range patterns
  • Find strongly connected verse communities
  • Explore cross-book references

License

This project is licensed under the MIT License - see the LICENSE file for details.

Data Attribution

The Bible cross-reference dataset should be properly attributed according to its source license.

Acknowledgments

Special thanks to OpenBible.info for their excellent Bible cross-reference data and their work on making Bible data accessible and remixable. Their Creative Commons Attribution License makes projects like this possible.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages