"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# The following will push the Text-Fabric stylesheet to this notebook (to facilitate proper display with notebook viewer)\n",
"N1904.dh(N1904.getCss())"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "569d7036-3ef3-4850-8e9c-45ac6cd5f34e",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# Set default view in a way to limit noise as much as possible.\n",
"N1904.displaySetup(condensed=True, multiFeatures=False, queryFeatures=False)"
]
},
{
"cell_type": "markdown",
"id": "28f41233-5871-4009-8a4f-8a60de00f969",
"metadata": {
"tags": []
},
"source": [
"# 3 - Performing the queries \n",
"##### [Back to TOC](#TOC)"
]
},
{
"cell_type": "markdown",
"id": "d4e68f76-031f-47da-95d0-922419471cfc",
"metadata": {},
"source": [
"## 3.1 - Examine Romans 1:17\n",
"##### [Back to TOC](#TOC)"
]
},
{
"cell_type": "markdown",
"id": "06c9550c-6630-4fd5-9d6b-66e92d6b0ecb",
"metadata": {},
"source": [
"First we will define a query template to select Romans 1:17 to examine the way Text-Fabric dataset represents the structure under investigation."
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "e2541398-831a-4f2b-852e-e477292a5c8a",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 0.01s 1 result\n"
]
}
],
"source": [
"VerseQuery = '''\n",
"book book=Romans\n",
" verse verse=17 chapter=1\n",
"'''\n",
"\n",
"VerseResults = N1904.search(VerseQuery)"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "e0630de0-06a0-46be-ae69-4f681696f32e",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"verse 1"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse Romans 1:17
sentence #10 (start: Romans 1:17)
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Note the options \"condensed=True, multiFeatures=False,queryFeatures=False\" are included below due to the earlier N1904.displaySetup(...)\n",
"N1904.show(VerseResults, end=1)"
]
},
{
"cell_type": "markdown",
"id": "f2e94d4c-facf-496c-9703-d67f62df150b",
"metadata": {},
"source": [
"## 3.2 - Query for similar paterns\n",
"##### [Back to TOC](#TOC)"
]
},
{
"cell_type": "markdown",
"id": "7dfe9485-6274-408f-a282-52321aa8aa88",
"metadata": {},
"source": [
"The following query searches for similar patterns like in Rom. 1:17. The relational parameter \"<:\" preceding the second to fourth items enforces a sequential arrangement, ensuring that these items must follow one another without any intervening items."
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "985662a4-000f-4d36-8aef-f9a3f550cf01",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 0.34s 4 results\n"
]
}
],
"source": [
"FromToQuery = '''\n",
"verse\n",
" word lemma=ἐκ\n",
" <: word sp=noun\n",
" <: word lemma=εἰς\n",
" <: word sp=noun\n",
"'''\n",
"\n",
"FromToResults = N1904.search(FromToQuery)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "a4a04f9a-6e87-4ff0-98e0-299d21cc772f",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"N1904.table(FromToResults)"
]
},
{
"cell_type": "markdown",
"id": "be2f9896-28a6-4372-b44b-c98950b5b77e",
"metadata": {},
"source": [
"# 4 - Discussion \n",
"##### [Back to TOC](#TOC)"
]
},
{
"cell_type": "markdown",
"id": "89d6f0d3-b793-431d-977d-18507a6b5774",
"metadata": {},
"source": [
"One important observation it that the lexeme of the two nouns found in each pair are identical. The first occuranace in the genitive, the second in accusative (governed by their preposition). This finding supports the statement that this is indeed an idiomatic construct."
]
},
{
"cell_type": "markdown",
"id": "c4b36efc-10f0-4f14-b622-4cf38fdf11cc",
"metadata": {},
"source": [
"# 5 - Attribution and footnotes\n",
"##### [Back to TOC](#TOC)\n",
"\n",
"N.A."
]
},
{
"cell_type": "markdown",
"id": "b7086ee5-36a9-420b-8b09-a641d6eca4e6",
"metadata": {},
"source": [
"# 6 - Required libraries \n",
"##### [Back to TOC](#TOC)\n",
"\n",
"The scripts in this notebook require (beside `text-fabric`) the following Python libraries to be installed in the environment:\n",
"\n",
" {none}\n",
"\n",
"You can install any missing library from within Jupyter Notebook using either`pip` or `pip3`."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}