Entity datasets (like theographic) provide metadata about people, places, events, and people groups.
Key Characteristics:
- Discovery: Entity datasets include specific links in their
/api/available_datasets.json entry: listOfPeopleApiLink, listOfPlacesApiLink, listOfEventsApiLink, and listOfPeopleGroupsApiLink. - Chapter Alignment: You can retrieve chapter-aligned entity data via
/api/d/{dataset}/{book}/{chapter}.json. This returns the entities appearing in that chapter and the verse numbers where they are mentioned. - Combining Data: Entities use standard Bible book IDs, chapter numbers, and verse numbers, allowing them to be overlaid on any translation.
- Entity References: Entities reference each other using
DatasetEntityRef, which specifies a type ('people' | 'places' | 'events' | 'groups') and an id.
export interface DatasetEntityRef {
/**
* The ID of the entity that is being referenced.
*/
id: string;
/**
* The type of the entity that is being referenced.
* Matches the collection segment of the entity's API link,
* so the link can be constructed as `/api/d/{dataset}/{type}/{id}.json`.
*/
type: 'people' | 'places' | 'events' | 'groups';
/**
* The name of the entity that is being referenced.
*/
name?: string;
/**
* The API link for the entity that is being referenced.
*/
apiLink?: string;
}
export interface VerseRef {
/**
* The ID of the book (GEN, EXO, etc.).
*/
book: string;
/**
* The chapter number that the reference starts at.
*/
chapter: number;
/**
* The verse number that the reference starts at.
*/
verse: number;
/**
* The verse that the reference ends at.
* Consecutive verses in the same chapter are collapsed into a single reference.
*/
endVerse?: number;
}