import: level for dominance edges might be not set

Bug #870108 reported by Thomas Krause on 2011-10-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ANNIS
Status tracked in 3.0
2.2
Fix Released
High
Thomas Krause
3.0
Fix Committed
High
Thomas Krause

Bug Description

On import first all "real" roots are compuated and the "root" column is set as a result. This "root" column is used as the starting point indicator for the level calculations. This behavior is wrong and inconsistent to previous releases. The right way of doing this is to use the real roots for the "root" column but the level should be set for all nodes that have no parent.

Queries affected:
This can only affect queries of the form >secedge m,n .
Since all primary dominance components have a real root, this affects only corpora with secondary edges. These edges normally do not form complex structures in their self so querying them make no sense.
Pointing relations are not affected since they do not have subcomponents and the real root is identical to the parent is null condition.

Thomas Krause (krause) on 2011-10-07
Changed in annis:
assignee: nobody → Thomas Krause (krause)

Not sure I understand. The original code computes the level node with reference of the node's component. The component's root (that may or may not be a real root) is assigned a level 0 and so on. Does the patch restore this behavior or change it?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers