Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
blockspeiser committed Nov 24, 2015
1 parent e4a73a4 commit 01a1fb1
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# Sefaria-Export
Structured Jewish texts and metadata as exported from Sefaria's database.
Sefaria-Export
============

Structured Jewish texts and metadata with free publich licenses, exported from Sefaria's database.

This repo contains texts, bibliographical information and lists of intertextual connections created by [Sefaria](http://www.sefaria.org).

A MongoDB dump of Sefaria's database is also available for download [via Dropbox](https://www.dropbox.com/sh/z5xdi4b7725ems5/AI4Jyg0xcY). Download this folder and use [`mongorestore`](http://docs.mongodb.org/v2.2/reference/mongorestore/) to load into your local DB.

From the parent of the downloaded `dump` folder, run:

mongorestore --drop

This will create (or overwrite) a mongo database called `sefaria`.

For Sefaria source code see [Sefaria-Project](https://github.com/Sefaria/Sefaria-Project).

### Contents

* `/json/` - simple json output of texts
* `/txt/` - simple plain text output of texts
* `/xml/` - simple xml output of texts (coming soon)
* `/links/` - CSV output of all know interconnections in texts
* `/schemas/` - JSON files corresponding to schema information about each text

Output folders are organized by category and containg seperate directories for each language. Each file is named according the version of the particular text.

Each terminal directory also includes a file called `merged` (e.g., `merged.json` or `merged.txt`). This file uses the same logic used on the Sefaria web site to include the maximal content available. For example, we have cases in the Mishnah where no single English version is complete by itself, but the merged version will include a complete text that picks and merges from multiple sources as needed.

When we do have complete versions of texts, we will still include a merged file. In that case, the merged file will be a copy of the default complete version. This simplifies many applications - you are always guarenetted that by looking at the merged version you'll see a maximal amount of text available, with preference for the text versions we've set.

Code for generating these outfiles can be found in our [Sefaria-Project](https://github.com/Sefaria/Sefaria-Project) repo under [sefaria/export.py](https://github.com/Sefaria/Sefaria-Project/blob/master/sefaria/export.py).

0 comments on commit 01a1fb1

Please sign in to comment.