AnantLabs / xerial

Automatically exported from code.google.com/p/xerial
0 stars 0 forks source link

Nested element mapping of Lens wrongly binds deepest nodes, instead of the first one #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For example, consider the following Silk data:

-project(version:1)
 -dependency(version:2)

When retrieving (project, version) pair, we expect version=1, however,
version=2 data will be retrieved. This is because without the knowledge
that the dependency node limits the scope of the project node, we cannot
detect the difference of (project, version) and (project,
dependency/version) pair. If you doubt it, consider the another example:

-project
 -info(version:1)

In this case, returning (project, info/version:1) might have no problem. 

Even so, returning the farthest node pair as a query result is problematic. 

Original issue reported on code.google.com by taroleo on 21 Aug 2009 at 6:48

GoogleCodeExporter commented 9 years ago

Original comment by taroleo on 10 Sep 2009 at 5:57