Published

October 21, 2024

Digital BDB from Sefaria

Summary
  1. retrieve articles from BDB and sections of articles: bdb, senses and subsenses functions
  2. format entire articles or sections of articles in HTML: html_string function

Articles and sections of articles in BDB

Find articles in BDB that Sefaria indexes a Hebrew word to. The result is a Vector of Articles.

using BrownDriverBriggs 
articles = bdb("בָּרָ֣א")
6-element Vector{Article}:
 בַּר (BDB01437)
 בַּר² (BDB01438)
 בָּרָא (BDB01439)
 בָּרָא² (BDB01442)
 בַּר³ (BDB01500)
 בַּר⁴ (BDB01501)

Articles are divided into sections by sense. The senses function returns a Vector of Senses.

article = articles[3]
sections = senses(article)
4-element Vector{Sense}:
 subsection (with definition)  
 subsection for verb form Qal with 5 subsections
 subsection for verb form Niph. with 4 subsections
 subsection for verb form Pi. with 3 subsections

Some sections may have futher subsections.

subsenses(sections[2])
5-element Vector{Sense}:
 subsection (with definition)  
 section 1.  with 1 subsection
 section 2.  with 1 subsection
 section 3.  with 1 subsection
 section 4.  with 1 subsection

Formatting BDB content as HTML

Format sections of articles as HTML

You can format individual sections as HTML with the html_string function.

Input

This code:

html_string(sections[1])
Output

yields this output:

vb. shape, create (cf. Arabic بَرَى, form, fashion by cutting, shape out, pare a reed for writing, a stick for an arrow; بَرَأَ, create (loan-word); Ph. הברא CISi. 347 incisor, a trade involving cutting; Assyrian barû, make, create, COTGloss & Hpt KAT2 Gloss 1 but dub.; Sab. ברא found, build, DHMZMG 1883, 413, synon. בנה; BaZA 1888, 58, comp. Assyrian banû, create, beget, with change of liquid; Aramaic בְּרָא, ܒܪܳܐ, create)

Format BDB articles as HTML

The syntax is the same for entire articles.

Input

This code:

html_string(article)
Output

yields this output:

בָּרָא

Article BDB01439 has 4 senses

  • vb. shape, create (cf. Arabic بَرَى, form, fashion by cutting, shape out, pare a reed for writing, a stick for an arrow; بَرَأَ, create (loan-word); Ph. הברא CISi. 347 incisor, a trade involving cutting; Assyrian barû, make, create, COTGloss & Hpt KAT2 Gloss 1 but dub.; Sab. ברא found, build, DHMZMG 1883, 413, synon. בנה; BaZA 1888, 58, comp. Assyrian banû, create, beget, with change of liquid; Aramaic בְּרָא, ܒܪܳܐ, create)
  • Qal
  • Niph.
      Pf. 2 fs. נִבְרֵאתְ Ez 21:35; 3 pl. נִבְרְאוּ Ex 34:10 + 2 times; Impf. יִבָּרֵא֑וּן ψ 104:30; Inf. sf. הִבָּרַאֲךָ Ez 28:13; הִבָּֽרְאָךְ Ez 28:15; הִבָּֽרְאָם Gn 2:4; 5:2; Pt. נִבְרָא ψ 102:19;—Pass. 1. 2.
        with reference to birth: במקום אשׁר נבראת in the place where thou wast created (i.e. native land) Ez 21:35; יום הבראך day when thou wast created (king of Tyre) Ez 28:13, 15 (cf. היום ילדתיך ψ 2:7); עַם נִבְרָא ψ 102:19 (‖ עַם נוֹלָד ψ 22:32).
      3.
        of something new, astonishing: miracles Ex 34:10 (J); new things, חדשׁית Is 48:6.
  • Pi.