Topic Ontology

Learn how Topics on Sefaria are organized, and how to access them using the Sefaria API.

To learn more about Topics on Sefaria, 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 has added. The slug is the unique ID used in our database.

An Overview of BFO

The BFO, or Basic Formal Ontology, is a foundational ontology that provides a set of fundamental terms and relationships for describing the structure of reality. BFO aims to provide a common framework for describing entities and their relationships that is independent of any specific domain. Sefaria has built upon this to create an ontology for Topics on Sefaria.

For a complete documentation of BFO, see here.

Slugs and Nodes

The following table includes information about the various nodes and their meanings.

slugNameDescriptionParents
entityEntityThis is a root nodeN/A
continuantContinuantCan only be sliced in space and not in time. This entity continues to exist through time while maintaining its identity.entity
occurentOccurentThis is where continuants get applied or executed. It can be sliced in time.entity
independent-continuantIndependent ContinuantThis continuant exists independent of any other entity. Examples include people, planets, and ping pong balls.continuant
specifically-dependent-continuantSpecifically Dependent ContinuantThis is a continuant whose existence is dependent on another entity, also described as a quality. For example, you can't have a headache without a head. Therefore, the headache is specifically dependent.continuant
generically-dependent-continuantGenerically Dependent ContinuantThis is a continuant whose existence is not dependent on a specific entity but on another entity in a more general way. Examples include a PDF file or a law.continuant
actsProcessThis is always 1D. It is an act that takes time to complete.occurent
process-boundaryProcess BoundaryThis is the boundary of a process: the beginning, end, or other threshold. By definition, this occupies a 0D temporal region.occurent
timeTimeThis is a temporal region, an occurrent entity that is part of time, as defined in relation to a reference frame.occurent
spatiotemporal-regionSpatiotemporal RegionA spatiotemporal region is an occurrent entity that is part of space-time.occurent
material-entityMaterial EntityThis is an entity composed of molecules.independent-continuant
immaterial-entityImmaterial EntityThis is an entity that is not composed of molecules.independent-continuant
qualityQualityThis describes the attributes of an entity, such as width or color.specifically-dependent-continuant
realizable-entityRealizable EntityThis is an entity that is actualized when a specific action is performed.specifically-dependent-continuant
process-profileProcess ProfileThis is an abstract representation or a smaller part of a larger process.acts
instantZero-Dimensional Temporal RegionThis is an occurrent that has zero dimensions, representing a specific, indivisible point in time.time
one-dimensional-temporal-regionOne-Dimensional Temporal RegionThis is an extended region of time that possesses duration.time
objectObjectThis is an entity that has a continuous boundary, such as an animal or a building.material-entity
fiat-object-partFiat Object PartThis is a subjective sub-part of a larger object. For example, an arm is an object, but it is part of a larger object: a human.material-entity
object-aggregateObject AggregateThis is a collection of objects that are, themselves, objects or object aggregates. For example, a population or nation.material-entity
relational-qualityRelational QualityThis is a specific type of attribute that connects more than one independent continuant simultaneously, binding them together by the nature of their relationship to one another.quality
roleRoleThis is a specific type of realizable entity (a dependent continuant) that is assigned to an entity based on its social, institutional, or contextual use rather than its intrinsic or physical makeuprealizable-entity
dispositionDispositionThis is a specifically dependent continuant that can only exist if certain features of its bearer exist. It requires a physical change in the bearer to begin or to cease in order to exist.realizable-entity
placesSiteThis is a three-dimensional entity that is not made of matter and is partially bounded by either a material entity or by fiat boundaries. For example, valleys, tunnels, dents, and airspace are all spaces that are not fully bounded.immaterial-entity
continuant-fiat-boundaryContinuant Fiat BoundaryThis is an immaterial entity of zero, one, or two dimensions that exists based on human convention or cognitive reference, rather than a physical or natural discontinuity. For example, the entrance to a cave. It serves to demarcate objects.immaterial-entity
zero-dimensional-continuant-fiat-boundaryZero-dimensional Continuant Fiat BoundaryThis is a fiat point. It is an immaterial, zero-dimensional entity whose location is defined in relation to a material entity and that exists without corresponding to any physical discontinuity or spatial mark.continuant-fiat-boundary
one-dimensional-continuant-fiat-boundaryOne-dimensional Continuant Fiat BoundaryThis is an arbitrary, one-dimensional border or edge defined by human agreement or cognitive framing, rather than by physical boundariescontinuant-fiat-boundary
two-dimensional-continuant-fiat-boundaryTwo-dimensional Continuant Fiat BoundaryThis is an immaterial entity with a location determined by a material entity.continuant-fiat-boundary
functionFunctionThis is a specific type of realizable dependent continuant. It represents an internal capability, tendency, or power that an object possesses by virtue of how it was built or how it evolved.disposition

Overview of Sefaria's Nodes

Below are some of the most important nodes the Sefaria infrastructure uses, in addition to the existing ontology. In the table below, you'll see them delineated according to the relevant BFO node.

BFO Node: Process

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

BFO Node: 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-holidaysRabbinic Holidaysholidays
torah-holidaysTorah Holidaysholidays
shalosh-regalimShalosh Regalimtorah-holidays
high-holidaysHigh Holidaystorah-holidays

BFO Node: Realizable Entity

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

BFO Node: Qualities

slugNameParents
halachic-qualityHalakhic 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

BFO Node: Generically Dependent Continuants

The topic religion here could also be referred to as religious-idea or similar.

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

BFO Node: 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

BFO Node: 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

BFO Node: Immaterial Entity

slugNameParents
geographyGeographyplaces
geographic-featuresGeographic Featuresplaces
structuresStructuresplaces

BFO Node: Fiat Object Part

slugNameParents
body-partsBody Partsfiat-object-part

Overview of Sefaria Link Types

Below is a comprehensive list of link types that can exist between nodes in the Sefaria infrastructure. Please note:

  • Every Topic link in our database must be one of these types.
  • Every link is bidirectional. Therefore, if you're reading the link in the forward direction, you should use slug, but if you're reading it in the backward direction, use inverseSlug.

Below is an example of a bidirectional Topic link:

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

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

Links with the same slug and inverseSlug are symmetrical. As yet, we have not inferred Topic links from existing links (e.g., if we know "a" is a child of "b", and "c" is a sibling of "a", then "c" is a child of "b").

Link Types Between People

The following are link types that connect two individual people.

sluginverseSlugDescription
child-ofparent-of
child-in-law-ofparent-in-law-of
sibling-ofsibling-of
descendant-ofancestor-ofUsed for relating a descendant to their ancestor, e.g., David -descendant-of -> Ruth
taughtlearned-fromUsually used for connecting a rabbi and a student
corresponded-withcorresponded-withUsed to connect two people who have communicated with one another, and whose relationship does not fit under another link type.
opposedopposedUsed to connect two people whose views are in opposition to one another.
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 the type Valid To.

sluginverseSlugDescriptionValid FromValid To
has-rolerole-ofThis is a physical entity that has a social role. For example, David -has-role-> kingmaterial-entityrole
gender-ofhas-genderThis is the gender of a person. For example, male -gender-of-> Davidgenderpeople
person-participates-in-eventevent-has-person-participantThis is a person who participated in a historical event.peoplehistory
adjacent-toadjacent-toThis is an independent entity that is located spatially next to another independent entity. For example, menorah -adjacent-to-> shulchanindependent-continuantindependent-continuant
causeshas-causeThis is an action which causes another action.actsacts
member-ofhas-memberThis is a physical entity that is part of a larger group. For example, Judah Maccabee -member-of-> Maccabeesmaterial-entityobject-aggregate
physically-containsphysically-contained-inThis is an independent entity that physically contains another independent entity. For example, Israel -physically-contains-> Jerusalemindependent-continuantindependent-continuant
temporally-containstemporally-contained-inThis is a time thing that contains another time entity. For example, A week -temporally-contains-> Shabbatoccurentoccurent
participates-inhas-participantThis is a non-time entity that takes part in a time entity. For example, shabbat-candles - participates-in-> Shabbatcontinuantoccurent
precedespreceded-byThis is a time entity that temporally precedes another time entity. For example, Shabbat -precedes-> Sundayoccurentoccurent
applies-halachahas-halachic-applicationThis is a halakhic action that applies a certain halakhic ruling. For example, shaking-lulav -applies-halacha-> laws-of-lulavhalachic-processhalakhah
specifically-dependent-onhas-specific-dependenceThis is a specifically dependent continuant whose existence depends on another entity. For example, the role god-of-the-patriarchs is specifically-dependent-on-> the-patriarchsspecifically-dependent-continuant OR generically-dependent-continuantentity
relationship-ofhas-relationshipThis is a relationship's dependence on the people in the relationship. For example, moshe-and-aharons-relationship is -specifically-dependent-on-> Mosesspecific-person-relationshippeople
leader-ofhas-leaderThis is a person who was a leader of a specific group of people.peoplepeoples

General Link Types

The following link types can connect any two nodes:

sluginverseSlugDescription
is-ais-category-ofThis describes an ontological hierarchy between nodes. A - is-a -> B implies that B is a more general type of A.
displays-underdisplays-aboveThis describes the display structure of nodes. It is used to display the Table of Contents for Topics on Sefaria's frontend.
synonymous-withsynonymous-withThis describes two Topics that are almost always interchangeable. For example, totafot is -synonymous-with-> tefillin
similar-tosimilar-toThis describes Topics that have many similar attributes. For example, saving is -similar-to-> rescuing
dissimilar-todissimilar-toThis describes two topics that share few attributes. For example, work is -dissimilar-to-> rest
related-torelated-toThis describes two topics that are related in a general sense. Usually, this is used to describe two Topics with a relationship that doesn't fit under any other link type.
sheets-related-tohas-sheets-related-toThis describes two topics with a relationship derived from co-location of tags on Sheets.