Topic Ontology

To learn more about topics, see the Topics API.

Sefaria's Topics collection is organized as an ontology based on BFO. Below is a basic overview of BFO's structure followed by some of the more important nodes Sefaria added. The slug is the unique ID used in our database.

BFO Overview

BFO stands for Basic Formal Ontology, and it is a foundational ontology that provides a set of basic terms and relationships to describe the structure of reality. BFO aims to provide a common framework for describing entities and their relationships in a way that is independent of any specific domain - however below we will explain how Sefaria builds on this to create our own topic ontology.

For a complete documentation of BFO see here.

Below are some notes that should help give an idea of what each node means.

slugNameDescriptionParents
entityEntityRoot nodeN/A
continuantContinuantCan only be sliced in space and not in time. Entity that continues to exist through time while maintaining it’s identityentity
occurentOccurentWhere continuants get applied / executed. Can be sliced in time.entity
independent-continuantIndependent ContinuantExists independent of anything else. Ex: People, planets, ping pong balls.continuant
specifically-dependent-continuantSpecifically Dependent ContinuantEx: Qualities. Requires some other instance to exist for it to exist. Can’t have headache without head. Can’t have color without surfacecontinuant
generically-dependent-continuantGenerically Dependent ContinuantEx: PDF file or a law. Not dependent on a single entity to exist but dependent in general on another entitycontinuant
actsProcessAlways is 1D. An act which takes time to completeoccurent
process-boundaryProcess BoundaryBeginning of process, end, threshold in process. By definition occupies 0d temporal regionoccurent
timeTimeA temporal region is an occurrent entity that is part of time as defined relative to some reference frame.occurent
spatiotemporal-regionSpatiotemporal RegionA spatiotemporal region is an occurrent entity that is part of spacetime.occurent
material-entityMaterial EntityRough Definition: Everything that has molecules as partsindependent-continuant
immaterial-entityImmaterial Entityindependent-continuant
qualityQualityThe ways something is. E.g. width, color.specifically-dependent-continuant
realizable-entityRealizable EntityAn entity which, when a certain action is performed, is realized.specifically-dependent-continuant
process-profileProcess Profileacts
instantZero-Dimensional Temporal Regiontime
one-dimensional-temporal-regionOne-Dimensional Temporal Regiontime
objectObjectEx. human (boundary is skin). Entity with continuous boundary.material-entity
fiat-object-partFiat Object PartEx. arm, wall of room, tabletop. Subjective part of object that people refer to. arm doesn’t have complete boundary.material-entity
object-aggregateObject AggregateEx. population, nation. Only contains members which are themselves objects or object aggregates.material-entity
relational-qualityRelational Qualityquality
roleRolerealizable-entity
dispositionDispositionrealizable-entity
placesSiteEx: Valleys, tunnels, dents, digestive tract, airspace. Covers various types of holes. 3D, not made of matter and bounded partly by material entity or all fiat boundaries. Manhattan is a site when referring to the space above manhattan island where people live and not the physical island.immaterial-entity
continuant-fiat-boundaryContinuant Fiat BoundaryEx: Entrance to a cave. Doesn’t have to be completely mathematical. A way of demarcating objects.immaterial-entity
zero-dimensional-continuant-fiat-boundaryZero-dimensional Continuant Fiat Boundarycontinuant-fiat-boundary
one-dimensional-continuant-fiat-boundaryOne-dimensional Continuant Fiat Boundarycontinuant-fiat-boundary
two-dimensional-continuant-fiat-boundaryTwo-dimensional Continuant Fiat Boundarycontinuant-fiat-boundary
functionFunctiondisposition

Overview of Sefaria Nodes

Below are some of the most important nodes Sefaria added to the ontology. Many are self-explanatory. They are broken up by which BFO node they're under.

Process (aka Acts)

slugNameParents
musical-processMusical Processart
historyHistoryacts
lifecycle-eventsLifecycle Eventsacts
halachic-processHalachic Processacts
artArtacts
weatherWeatheracts
theological-processTheological Processacts
biblical-eventBiblical Eventhistory

Temporal Region

slugNameParents
weeksWeeksone-dimensional-temporal-region
monthsMonthsone-dimensional-temporal-region
seasonsSeasonsone-dimensional-temporal-region
yearsYearsone-dimensional-temporal-region
part-of-dayPart of Dayone-dimensional-temporal-region
daysDaysone-dimensional-temporal-region
fastingFastingdays
holidaysHolidaysone-dimensional-temporal-region
rabbinic-holidaysRabbanic Holidaysholidays
torah-holidaysTorah Holidaysholidays
shalosh-regalimShalosh Regalimtorah-holidays
high-holidaysHigh Holidaystorah-holidays

Realizable Entity

slugNameParents
freedomFreedomdisposition
middotMiddotdisposition
emotionsEmotionsdisposition
knowledgeKnowledgedisposition
divine-namesDivine Namesrole
halachic-roleHalachic Rolerole
role-of-personRole of Personrole
halachic-role-of-inanimate-objectHalachic Role of Inanimate Objecthalachic-role
halachic-role-of-personHalachic Role of Personhalachic-role, role-of-person
family-rolesFamily Rolesrole-of-person
vocationsVocationsrole-of-person

Qualities

slugNameParents
halachic-qualityHalachic Qualityquality
material-qualityMaterial Qualityquality
numbersNumbersquality
relational-qualityRelational Qualityquality
colorsColorsmaterial-quality
prepositionPrepositionrelational-quality
covenantsCovenantsrelational-quality
specific-person-relationshipSpecific Person Relationshiprelational-quality
specific-biblical-person-relationshipSpecific Biblical Person Relationshipspecific-person-relationship

Generically Dependent Continuants

The topic religion here should likely be called religious-idea or something similar.

slugNameParents
lawsLawsgenerically-dependent-continuant
philosophyPhilosophygenerically-dependent-continuant
scienceSciencegenerically-dependent-continuant
language-entityLanguage Entitygenerically-dependent-continuant
textsTextsgenerically-dependent-continuant
ethicsEthicsgenerically-dependent-continuant
halakhahHalakhahlaw
halachic-principlesHalachic Principleshalakhah
languageLanguagelanguage-entity
lettersLetterslanguage-entity
phrasePhraselanguage-entity
wordsWordslanguage-entity
religionReligionphilosophy
magicMagicphilosophy
spiritual-placesSpiritual Placesreligion
theological-tenetsTheological Tenetsreligion
biblical-sourceBiblical Sourcetexts

Object Aggregate

slugNameParents
group-of-living-creaturesGroup of Living Creaturesobject-aggregate
group-of-inanimate-objectsGroup of Inanimate Objectsobject-aggregate
group-of-animalsGroup of Animalsgroup-of-living-creatures
group-of-plantsGroup of Plantsgroup-of-living-creatures
group-of-peopleGroup of Peoplegroup-of-living-creatures
peoplesPeoplesgroup-of-people

Object

slugNameParents
living-creatureLiving Creatureobject
inanimate-objectInanimate Objectobject
foodFoodinanimate-object
animalsAnimalliving-creature
peoplePeopleliving-creature
plantsPlantsliving-creature
biblical-figuresBiblical FiguresPeople
mishnaic-peopleMishnaic PeoplePeople
talmudic-peopleTalmudic PeoplePeople
geon-personGeon PersonPeople
rishon-personRishon PersonPeople
achron-personAchron PersonPeople
modern-personModern PersonPeople
mammalsMammalsanimals
fishMammalsanimals
birdsBirdsanimals
bugsBugsanimals
reptilesReptilesanimals
amphibiansAmphibiansanimals
wormsWormsanimals

Immaterial Entity

slugNameParents
geographyGeographyplaces
geographic-featuresGeographic Featuresplaces
structuresStructuresplaces

Fiat Object Part

slugNameParents
body-partsBody Partsfiat-object-part

Overview of Sefaria link types

Below is an exhaustive list of all of the link types that can exist between nodes. Each topic link in our database must be of one of these types. Each link is bidirectional. If reading the link in the 'forward' direction, you should use slug. Reading it in the backwards direction, use inverseSlug. For example, see this link:

{
    "fromTopic": "isaac",
    "toTopic": "abraham",
    "linkType": "child-of"
}

In the forward direction, it would be read as isaac -child-of-> abraham. In the backwards direction, it would be abraham-parent-of-> isaac. All links in our database are saved using the link type's slug, not inverseSlug.

Links with the same slug and inverseSlug are symmetrical. Currently, there has been no work done to infer topic links from existing links (e.g. if we know a is child of b and c is sibling of a then c is child of b).

Link Types Between People

The following are link types that are meant to connect two different people

sluginverseSlugDescription
child-ofparent-of
child-in-law-ofparent-in-law-of
sibling-ofsibling-of
descendant-ofancestor-ofUsed for relating a famous descendant to their ancestor. e.g. David -descendant-of -> Ruth
taughtlearned-fromUsually used for relating a rabbi and his student
corresponded-withcorresponded-withTwo people who spoke with each other (and do not fit under another link type)
opposedopposedTwo people who were opposed to each other in their views
cousin-ofcousin-of
spouse-ofspouse-of

Link Types Between Other Types of Nodes

Each link type is only valid if the fromTopic is of type Valid From and if the toTopic is of type Valid To.

sluginverseSlugDescriptionValid FromValid To
has-rolerole-ofphysical entity which has a social role. e.g. David -has-role-> kingmaterial-entityrole
gender-ofhas-genderGender of a person. e.g. male -gender-of-> davidgenderpeople
person-participates-in-eventevent-has-person-participantA person who participates in an historical eventpeoplehistory
adjacent-toadjacent-toAn independent thing which is next to another thing. e.g. menorah -adjacent-to-> shulchanindependent-continuantindependent-continuant
causeshas-causeAn action which causes another actionactsacts
member-ofhas-memberA physical thing which is part of a group. e.g. Judah Maccabee -member-of-> Maccabeesmaterial-entityobject-aggregate
physically-containsphysically-contained-inAn independent thing which physically contains another independent thing. e.g. Israel -physically-contains-> Jerusalemindependent-continuantindependent-continuant
temporally-containstemporally-contained-inA time thing which contains another time thing. e.g. A week -temporally-contains-> Shabbatoccurentoccurent
participates-inhas-participantA non-time entity which takes part in a time entity. e.g. shabbat-candles - participates-in-> shabbatcontinuantoccurent
precedespreceded-byA time entity which comes before another time thing. e.g. shabbat -precedes-> sundayoccurentoccurent
applies-halachahas-halachic-applicationA halachic action which applies a certain halacha. e.g. shaking-lulav -applies-halacha-> laws-of-lulavhalachic-processhalakhah
specifically-dependent-onhas-specific-dependenceA specifically dependent continuant which depends on entity to exist. you cannot imagine this SDC existing without this entity. e.g. the role god-of-the-patriarchs is specifically-dependent-on-> the-patriarchsspecifically-dependent-continuant OR generically-dependent-continuantentity
relationship-ofhas-relationshipA relationship's connection to people in the relationship. e.g. moshe-and-aharons-relationship is -specifically-dependent-on-> moshespecific-person-relationshippeople
leader-ofhas-leaderA person who was a leader of this peoplepeoplepeoples

General Link Types

The following link types can connect any two nodes:

sluginverseSlugDescription
is-ais-category-ofDescribes ontological hierarchy between nodes. A - is-a -> B implies that B is a more general type of A
displays-underdisplays-aboveDescribes display structure of nodes. This is used to display the table of contents for topics on Sefaria's frontend.
synonymous-withsynonymous-withTwo topics which are almost always interchangeable. e.g. totafot is -synonymous-with-> teffilin
similar-tosimilar-toTwo topics which are similar in many of their attributes. e.g. saving is -similar-to-> rescuing
dissimilar-todissimilar-toTwo topics which are not similar in many of their attributes. e.g. work is -dissimilar-to-> rest
related-torelated-toTwo topics which are generally related. Usually these two topics' relationship doesn't fit under any other link type
sheets-related-tohas-sheets-related-toTwo topics whose relationship was derived from colocation of tags on source sheets

What’s Next