v1

latestOpenAPI 3.0.2GNU AGPLv32026-07-245983524.8 KB
Topic

Topic Graph

Endpoint to retrieve topics and their links between other topics. As opposed to topic links to refs, this endpoint retrieve connections between one topic to another topic.

get/api/topics-graph/{topic_slug}

Response

A list of topics connected to the topic_slug as well as a list of links.

Example response

{
  "topics": [
    {
      "slug": "shabbat",
      "titles": [],
      "alt_ids": {
        "_temp_id": "שבת",
        "_old_slug": "shabbat1"
      },
      "properties": {
        "heNliLink": {
          "value": "https://www.nli.org.il/he/discover/judaism/traditions/shabbat",
          "dataSource": "sefaria"
        }
      },
      "description": {
        "en": "Shabbat (or Sabbath) falls every seventh day of the week, from Friday just before sunset until dark on Saturday night. It is a day of rest, marking the time when God stopped creating after after the six days of creation. Shabbat recognizes God as Creator of the Universe and as Redeemer of Israel from Egypt. ",
        "he": "היום השביעי בשבוע, החל מיום שישי בשעת השקיעה ועד צאת הכוכבים במוצאי השבת. יום מנוחה לפי המקורות, המציין את הזמן שבו ה' נח לאחר שברא את העולם. "
      },
      "categoryDescription": {},
      "displayOrder": 0,
      "numSources": 1662,
      "description_published": true,
      "data_source": "sefaria",
      "image": {
        "image_uri": "https://storage.googleapis.com/img.sefaria.org/topics/shabbat.jpg",
        "image_caption": {
          "en": "Friday Evening, Isidor Kaufmann, Austria c. 1920. The Jewish Museum, Gift of Mr. and Mrs. M. R. Schweitzer",
          "he": "שישי בערב, איזידור קאופמן, וינה 1920. המוזיאון היהודי בניו יורק, מתנת  מר וגברת מ.ר. שוויצר"
        }
      },
      "primaryTitle": {
        "en": "Shabbat",
        "he": "שבת"
      }
    },
    {
      "slug": "shabbat-shuvah",
      "titles": [
        {
          "text": "Shabbat Shuvah",
          "lang": "en",
          "primary": true
        },
        {
          "text": "שבת שובה",
          "lang": "he",
          "primary": true
        },
        {
          "lang": "he",
          "text": "שובה"
        }
      ],
      "alt_ids": {
        "_temp_id": "שבת שובה",
        "_old_slug": "399"
      },
      "description": {
        "en": "Shabbat of Repentance between Rosh Hashanah and Yom Kippur.",
        "he": ""
      },
      "numSources": 19,
      "primaryTitle": {
        "en": "Shabbat Shuvah",
        "he": "שבת שובה"
      }
    },
    {
      "slug": "shabbat-hagadol",
      "titles": [
        {
          "text": "Shabbat HaGadol",
          "lang": "en"
        },
        {
          "text": "Shabbat Hagadol",
          "lang": "en",
          "primary": true
        },
        {
          "text": "שבת הגדול",
          "lang": "he",
          "primary": true
        }
      ],
      "alt_ids": {
        "_temp_id": "שבת הגדול"
      },
      "description": {
        "en": "Shabbat HaGadol (“The Great Shabbat”) is the Shabbat that immediately precedes the holiday of Passover. Jewish texts offer many explanations as to why this Shabbat is called “great,” like those that  point to a great miracle performed on this Shabbat during the exodus, or those that point to the word “great” at the end of the haftarah prophetic reading traditionally read on this Shabbat. In many communities, the rabbi delivers a lengthy sermon on a Passover-related topic. ",
        "he": "״שבת הגדול״ היא השבת האחרונה לפני חג הפסח. שבת זו נודעה כשבת מיוחדת החל מהמאה ה-12 בבתי המדרש של רש״י וחכמי התוספות. מנהגי שבת זו כוללים דרשה של הרב בקהילתו בהלכות הפסח, וקריאת קטעים מההגדה של פסח. מספר טעמים ניתנו לשמה של שבת זו כגון שבשבת זו בני ישראל הפסיקו לעבוד עבודה זרה, או שהיה נס גדול בלקיחת השה לקרבן פסח, ועוד. "
      },
      "categoryDescription": {},
      "displayOrder": 230,
      "numSources": 57,
      "description_published": true,
      "data_source": "sefaria",
      "primaryTitle": {
        "en": "Shabbat Hagadol",
        "he": "שבת הגדול"
      }
    }
  ],
  "links": [
    {
      "toTopic": "shabbat",
      "linkType": "is-a",
      "class": "intraTopic",
      "dataSource": "aspaklaria-edited-by-sefaria",
      "fromTopic": "shabbat-shuvah",
      "order": {
        "linksInCommon": 0,
        "toTfidf": 0,
        "fromTfidf": 0
      }
    },
    {
      "toTopic": "shabbat",
      "linkType": "is-a",
      "class": "intraTopic",
      "dataSource": "aspaklaria-edited-by-sefaria",
      "fromTopic": "shabbat-hagadol",
      "order": {
        "linksInCommon": 1,
        "toTfidf": 6.1420049159848755,
        "fromTfidf": 9.085421387618508
      }
    }
  ]
}