N1904-TF

Text-Fabric dataset of the Greek New Testament, based on the Nestle 1904 (7th printing) edition.

About this dataset
Transcription
Featureset
Optional features
Viewtypes
Textformats
Syntaxtrees
Tutorial
Latest release

Nestle 1904 GNT - Feature: parent

Feature group Feature type Data type Available for node types Used by viewtypes
Relational Edge String word wg Sentence verse chapter Book phrase subphrase syntax-view wg-view

Feature description

The parent feature indicates the edge between a node and its parent node. It can be used to query upon hierarchical relationships within the syntactic structure.

Feature value

Any of the following:

Notes

Usually, any node would have just one parent. However, in our implementation, word nodes have two parents due to the partial data duplication required to support the ‘wg-view’ and the ‘syntax-view’ within a single database.

Example Query

The following query demonstrates a typical use of the parent feature. The following query selects only instances where wg2 is a child of wg1 and w1 is a child of wg1:

Query = '''
wg1:wg type=modifier-scope
  w1:word lemma=ἐλπίς
  wg2:wg rule=DetNP
wg2 -parent> wg1
w1 -parent> wg1
'''
Results = A.search(Query)
 0.24s 6 results

Part of the results is shown below in the (default) syntax-view:

The same section is shown in the wg-view:

The parent-child relation can be checked using the functions E.parent.f(). For example the parent nodes for word node 82843:

 E.parent.f(82843)
   (454458, 246648)
 F.otype.v(246648)
   'phrase'
 F.otype.v(454458)
   'wg'

This output shows the word node has two parents: a phrase and a wg node. This dual parent relation is a consequence of implementing two view types:

The following image shows how the parent feature operates on various node types. The node type ‘subphrase’ is not part of this parent-child relation schema.

Feature parent can also be used to identify the child node(s) by calling function E.parent.t(…):

E.parent.f(246649)
  (246648,)

See also the related feature sibling.

Source description

This feature is calculated during dataset creation.


Browse all features by name, node type, data type, feature group or feature type.