"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# load the app and data\n",
"N1904GBI = use (\"tonyjurg/Nestle1904GBI\", hoist=globals())"
]
},
{
"cell_type": "markdown",
"id": "63ab413a",
"metadata": {},
"source": [
"# Some basic usage example\n",
"##### [back to TOC](#TOC)\n",
"\n",
"### Example 1: show all object phrases in clauses\n",
"\n",
"The following example will query (and indicate) phrases with function 'O' (=Object). This is done by selecting versed containing the value 'O' for feature 'phrasefunction' belonging to node type 'phrase'. See also the [feature description of 'phrasefunction'](https://tonyjurg.github.io/Nestle1904GBI/features/phrasefunction.html). It starts with examining at the first verse of Matthews. The first Object phrase in Matthew is found in verse 2. The display is limited to the first two verses found containing an Object phrase."
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "adc48de9",
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" 0.08s 10813 results\n"
]
},
{
"data": {
"text/html": [
"verse 1"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
verse=2
clause #2
clause=2clauserule=Conj13CL
phrase #3
phrase=3phrasefunction=Sphrasefunction_long=Subject functionphrasetype=N2NP
Ἀβραὰμ
Abrahamlemma=Ἀβραάμstrongs=11sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Nominativechapter=1clause=2formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.7monad=9nodeID=n40001002001normalized=Ἀβραάμnu=Singularnumber=Singularorig_order=9phrase=3sentence=2sp_full=nountype=Properverse=2word=Ἀβραὰμ
phrase #4
phrase=4phrasefunction=Vphrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
begatlemma=γεννάωstrongs=1080sp=verbbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=2formaltag=V-AAI-3Sfunctionaltag=V-AAI-3Slex_dom=023003ln=23.58monad=10mood=IndicativenodeID=n40001002002normalized=ἐγέννησενnu=Singularnumber=Singularorig_order=10person=Thirdphrase=4sentence=2sp_full=verbtense=Aoristverse=2voice=Activeword=ἐγέννησεν
phrase #5
phrase=5phrasefunction=Ophrasefunction_long=Object functionphrasetype=N2NP
τὸν
-lemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=2formaltag=T-ASMfunctionaltag=T-ASMgn=Masculinelex_dom=092004ln=92.24monad=11nodeID=n40001002003normalized=τόνnu=Singularnumber=Singularorig_order=11phrase=5sentence=2sp_full=determinerverse=2word=τὸν
Ἰσαάκ,
Isaaclemma=Ἰσαάκstrongs=2464sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=2formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.180monad=12nodeID=n40001002004normalized=Ἰσαάκnu=Singularnumber=Singularorig_order=12phrase=5sentence=2sp_full=nountype=Properverse=2word=Ἰσαάκ,
clause #3
clause=3clauserule=Conj13CL
phrase #6
phrase=6phrasefunction=Ophrasefunction_long=Object functionphrasetype=N2NP
δὲ
thenlemma=δέstrongs=1161sp=conjbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=3formaltag=CONJfunctionaltag=CONJlex_dom=089015ln=89.87monad=13nodeID=n40001002006normalized=δέorig_order=13phrase=6sentence=2sp_full=conjunctionverse=2word=δὲ
phrase #7
phrase=7phrasefunction=Sphrasefunction_long=Subject functionphrasetype=N2NP
Ἰσαὰκ
Isaaclemma=Ἰσαάκstrongs=2464sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Nominativechapter=1clause=3formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.180monad=14nodeID=n40001002005normalized=Ἰσαάκnu=Singularnumber=Singularorig_order=14phrase=7sentence=2sp_full=nountype=Properverse=2word=Ἰσαὰκ
phrase #8
phrase=8phrasefunction=Vphrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
begatlemma=γεννάωstrongs=1080sp=verbbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=3formaltag=V-AAI-3Sfunctionaltag=V-AAI-3Slex_dom=023003ln=23.58monad=15mood=IndicativenodeID=n40001002007normalized=ἐγέννησενnu=Singularnumber=Singularorig_order=15person=Thirdphrase=8sentence=2sp_full=verbtense=Aoristverse=2voice=Activeword=ἐγέννησεν
phrase #9
phrase=9phrasefunction=Ophrasefunction_long=Object functionphrasetype=N2NP
τὸν
-lemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=3formaltag=T-ASMfunctionaltag=T-ASMgn=Masculinelex_dom=092004ln=92.24monad=16nodeID=n40001002008normalized=τόνnu=Singularnumber=Singularorig_order=16phrase=9sentence=2sp_full=determinerverse=2word=τὸν
Ἰακώβ,
Jacoblemma=Ἰακώβstrongs=2384sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=3formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.157amonad=17nodeID=n40001002009normalized=Ἰακώβnu=Singularnumber=Singularorig_order=17phrase=9sentence=2sp_full=nountype=Properverse=2word=Ἰακώβ,
clause #4
clause=4clauserule=Conj13CL
phrase #10
phrase=10phrasefunction=Ophrasefunction_long=Object functionphrasetype=N2NP
δὲ
thenlemma=δέstrongs=1161sp=conjbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=4formaltag=CONJfunctionaltag=CONJlex_dom=089015ln=89.87monad=18nodeID=n40001002011normalized=δέorig_order=18phrase=10sentence=2sp_full=conjunctionverse=2word=δὲ
phrase #11
phrase=11phrasefunction=Sphrasefunction_long=Subject functionphrasetype=N2NP
Ἰακὼβ
Jacoblemma=Ἰακώβstrongs=2384sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Nominativechapter=1clause=4formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.157amonad=19nodeID=n40001002010normalized=Ἰακώβnu=Singularnumber=Singularorig_order=19phrase=11sentence=2sp_full=nountype=Properverse=2word=Ἰακὼβ
phrase #12
phrase=12phrasefunction=Vphrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
begatlemma=γεννάωstrongs=1080sp=verbbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=4formaltag=V-AAI-3Sfunctionaltag=V-AAI-3Slex_dom=023003ln=23.58monad=20mood=IndicativenodeID=n40001002012normalized=ἐγέννησενnu=Singularnumber=Singularorig_order=20person=Thirdphrase=12sentence=2sp_full=verbtense=Aoristverse=2voice=Activeword=ἐγέννησεν
phrase #13
phrase=13phrasefunction=Ophrasefunction_long=Object functionphrasetype=Pron2NP
τὸν
-lemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=4formaltag=T-ASMfunctionaltag=T-ASMgn=Masculinelex_dom=092004ln=92.24monad=21nodeID=n40001002013normalized=τόνnu=Singularnumber=Singularorig_order=21phrase=13sentence=2sp_full=determinerverse=2word=τὸν
Ἰούδαν
Judahlemma=Ἰούδαςstrongs=2455sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=4formaltag=N-ASMfunctionaltag=N-ASMgn=Masculinelex_dom=093001ln=93.173hmonad=22nodeID=n40001002014normalized=Ἰούδανnu=Singularnumber=Singularorig_order=22phrase=13sentence=2sp_full=nountype=Properverse=2word=Ἰούδαν
καὶ
andlemma=καίstrongs=2532sp=conjbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=4formaltag=CONJfunctionaltag=CONJlex_dom=089017ln=89.92monad=23nodeID=n40001002015normalized=καίorig_order=23phrase=13sentence=2sp_full=conjunctionverse=2word=καὶ
τοὺς
thelemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=4formaltag=T-APMfunctionaltag=T-APMgn=Masculinelex_dom=092004ln=92.24monad=24nodeID=n40001002016normalized=τούςnu=Pluralnumber=Pluralorig_order=24phrase=13sentence=2sp_full=determinerverse=2word=τοὺς
ἀδελφοὺς
brotherslemma=ἀδελφόςstrongs=80sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=4formaltag=N-APMfunctionaltag=N-APMgn=Masculinelex_dom=010003ln=10.49monad=25nodeID=n40001002017normalized=ἀδελφούςnu=Pluralnumber=Pluralorig_order=25phrase=13sentence=2sp_full=nountype=Commonverse=2word=ἀδελφοὺς
αὐτοῦ,
of himlemma=αὐτόςstrongs=846sp=pronbook_long=Matthewbook_short=Mattbooknum=1case=Genitivechapter=1clause=4formaltag=P-GSMfunctionaltag=P-GSMgn=Masculinelex_dom=092004ln=92.11monad=26nodeID=n40001002018normalized=αὐτοῦnu=Singularnumber=Singularorig_order=26phrase=13sentence=2sp_full=pronountype=Personalverse=2word=αὐτοῦ,
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse 2"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"verse
verse=3
clause #5
clause=5clauserule=Conj13CL
phrase #14
phrase=14phrasefunction=Ophrasefunction_long=Object functionphrasetype=Pron2NP
δὲ
thenlemma=δέstrongs=1161sp=conjbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=5formaltag=CONJfunctionaltag=CONJlex_dom=089015ln=89.87monad=27nodeID=n40001003002normalized=δέorig_order=27phrase=14sentence=2sp_full=conjunctionverse=3word=δὲ
phrase #15
phrase=15phrasefunction=Sphrasefunction_long=Subject functionphrasetype=N2NP
Ἰούδας
Judahlemma=Ἰούδαςstrongs=2455sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Nominativechapter=1clause=5formaltag=N-NSMfunctionaltag=N-NSMgn=Masculinelex_dom=093001ln=93.173hmonad=28nodeID=n40001003001normalized=Ἰούδαςnu=Singularnumber=Singularorig_order=28phrase=15sentence=2sp_full=nountype=Properverse=3word=Ἰούδας
phrase #16
phrase=16phrasefunction=Vphrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
begatlemma=γεννάωstrongs=1080sp=verbbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=5formaltag=V-AAI-3Sfunctionaltag=V-AAI-3Slex_dom=023003ln=23.58monad=29mood=IndicativenodeID=n40001003003normalized=ἐγέννησενnu=Singularnumber=Singularorig_order=29person=Thirdphrase=16sentence=2sp_full=verbtense=Aoristverse=3voice=Activeword=ἐγέννησεν
phrase #17
phrase=17phrasefunction=Ophrasefunction_long=Object functionphrasetype=N2NP
τὸν
-lemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=5formaltag=T-ASMfunctionaltag=T-ASMgn=Masculinelex_dom=092004ln=92.24monad=30nodeID=n40001003004normalized=τόνnu=Singularnumber=Singularorig_order=30phrase=17sentence=2sp_full=determinerverse=3word=τὸν
Φαρὲς
Perezlemma=Φάρεςstrongs=5329sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=5formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.374monad=31nodeID=n40001003005normalized=Φαρέςnu=Singularnumber=Singularorig_order=31phrase=17sentence=2sp_full=nountype=Properverse=3word=Φαρὲς
καὶ
andlemma=καίstrongs=2532sp=conjbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=5formaltag=CONJfunctionaltag=CONJlex_dom=089017ln=89.92monad=32nodeID=n40001003006normalized=καίorig_order=32phrase=17sentence=2sp_full=conjunctionverse=3word=καὶ
τὸν
-lemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=5formaltag=T-ASMfunctionaltag=T-ASMgn=Masculinelex_dom=092004ln=92.24monad=33nodeID=n40001003007normalized=τόνnu=Singularnumber=Singularorig_order=33phrase=17sentence=2sp_full=determinerverse=3word=τὸν
Ζαρὰ
Zerahlemma=Ζάραstrongs=2196sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=5formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.135monad=34nodeID=n40001003008normalized=Ζαράnu=Singularnumber=Singularorig_order=34phrase=17sentence=2sp_full=nountype=Properverse=3word=Ζαρὰ
phrase #18
phrase=18phrasefunction=ADVphrasefunction_long=Adverbial functionphrasetype=N2NP
ἐκ
out oflemma=ἐκstrongs=1537sp=prepbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=5formaltag=PREPfunctionaltag=PREPlex_dom=089003ln=89.3monad=35nodeID=n40001003009normalized=ἐκorig_order=35phrase=18sentence=2sp_full=prepositionverse=3word=ἐκ
τῆς
-lemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Genitivechapter=1clause=5formaltag=T-GSFfunctionaltag=T-GSFgn=Femininelex_dom=092004ln=92.24monad=36nodeID=n40001003010normalized=τῆςnu=Singularnumber=Singularorig_order=36phrase=18sentence=2sp_full=determinerverse=3word=τῆς
Θάμαρ,
Tamarlemma=Θαμάρstrongs=2283sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Genitivechapter=1clause=5formaltag=N-PRIfunctionaltag=N-PRIgn=Femininelex_dom=093001ln=93.151monad=37nodeID=n40001003011normalized=Θάμαρnu=Singularnumber=Singularorig_order=37phrase=18sentence=2sp_full=nountype=Properverse=3word=Θάμαρ,
clause #6
clause=6clauserule=Conj13CL
phrase #19
phrase=19phrasefunction=ADVphrasefunction_long=Adverbial functionphrasetype=N2NP
δὲ
thenlemma=δέstrongs=1161sp=conjbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=6formaltag=CONJfunctionaltag=CONJlex_dom=089015ln=89.87monad=38nodeID=n40001003013normalized=δέorig_order=38phrase=19sentence=2sp_full=conjunctionverse=3word=δὲ
phrase #20
phrase=20phrasefunction=Sphrasefunction_long=Subject functionphrasetype=N2NP
Φαρὲς
Perezlemma=Φάρεςstrongs=5329sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Nominativechapter=1clause=6formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.374monad=39nodeID=n40001003012normalized=Φαρέςnu=Singularnumber=Singularorig_order=39phrase=20sentence=2sp_full=nountype=Properverse=3word=Φαρὲς
phrase #21
phrase=21phrasefunction=Vphrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
begatlemma=γεννάωstrongs=1080sp=verbbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=6formaltag=V-AAI-3Sfunctionaltag=V-AAI-3Slex_dom=023003ln=23.58monad=40mood=IndicativenodeID=n40001003014normalized=ἐγέννησενnu=Singularnumber=Singularorig_order=40person=Thirdphrase=21sentence=2sp_full=verbtense=Aoristverse=3voice=Activeword=ἐγέννησεν
phrase #22
phrase=22phrasefunction=Ophrasefunction_long=Object functionphrasetype=N2NP
τὸν
-lemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=6formaltag=T-ASMfunctionaltag=T-ASMgn=Masculinelex_dom=092004ln=92.24monad=41nodeID=n40001003015normalized=τόνnu=Singularnumber=Singularorig_order=41phrase=22sentence=2sp_full=determinerverse=3word=τὸν
Ἐσρώμ,
Hezronlemma=Ἑσρώμstrongs=2074sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=6formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.127monad=42nodeID=n40001003016normalized=Ἐσρώμnu=Singularnumber=Singularorig_order=42phrase=22sentence=2sp_full=nountype=Properverse=3word=Ἐσρώμ,
clause #7
clause=7clauserule=Conj13CL
phrase #23
phrase=23phrasefunction=Ophrasefunction_long=Object functionphrasetype=N2NP
δὲ
thenlemma=δέstrongs=1161sp=conjbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=7formaltag=CONJfunctionaltag=CONJlex_dom=089015ln=89.87monad=43nodeID=n40001003018normalized=δέorig_order=43phrase=23sentence=2sp_full=conjunctionverse=3word=δὲ
phrase #24
phrase=24phrasefunction=Sphrasefunction_long=Subject functionphrasetype=N2NP
Ἐσρὼμ
Hezronlemma=Ἑσρώμstrongs=2074sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Nominativechapter=1clause=7formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.127monad=44nodeID=n40001003017normalized=Ἐσρώμnu=Singularnumber=Singularorig_order=44phrase=24sentence=2sp_full=nountype=Properverse=3word=Ἐσρὼμ
phrase #25
phrase=25phrasefunction=Vphrasefunction_long=Verbal functionphrasetype=N2NP
ἐγέννησεν
begatlemma=γεννάωstrongs=1080sp=verbbook_long=Matthewbook_short=Mattbooknum=1chapter=1clause=7formaltag=V-AAI-3Sfunctionaltag=V-AAI-3Slex_dom=023003ln=23.58monad=45mood=IndicativenodeID=n40001003019normalized=ἐγέννησενnu=Singularnumber=Singularorig_order=45person=Thirdphrase=25sentence=2sp_full=verbtense=Aoristverse=3voice=Activeword=ἐγέννησεν
phrase #26
phrase=26phrasefunction=Ophrasefunction_long=Object functionphrasetype=N2NP
τὸν
-lemma=ὁstrongs=3588sp=detbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=7formaltag=T-ASMfunctionaltag=T-ASMgn=Masculinelex_dom=092004ln=92.24monad=46nodeID=n40001003020normalized=τόνnu=Singularnumber=Singularorig_order=46phrase=26sentence=2sp_full=determinerverse=3word=τὸν
Ἀράμ,
Ramlemma=Ἀράμstrongs=689sp=nounbook_long=Matthewbook_short=Mattbooknum=1case=Accusativechapter=1clause=7formaltag=N-PRIfunctionaltag=N-PRIgn=Masculinelex_dom=093001ln=93.35monad=47nodeID=n40001003021normalized=Ἀράμnu=Singularnumber=Singularorig_order=47phrase=26sentence=2sp_full=nountype=Properverse=3word=Ἀράμ,
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"Search0 = '''\n",
"book book=Matthew\n",
" phrase phrasefunction=O\n",
"'''\n",
"Search0 = NA.search(Search0)\n",
"N1904GBI.show(Search0, start=1, end=2, condensed=True, extraFeatures={'sp', 'clausetype'}, multiFeatures=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "67c0b9e1",
"metadata": {},
"outputs": [],
"source": []
}
],
"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.9.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}