Re: Nearest Common Ancestor Report (XDb1's $1000 Challenge)
Date: 6 Jun 2004 13:34:00 -0700
Message-ID: <4b45d3ad.0406061234.ff6d8c6_at_posting.google.com>
> > 1. "Any hierarchy" means if XDb1 can generate a report for it, then
> > RM's should also. "Any hierarchy" includes the class/type hierarchy.
>
> You implemented the ability to generate a report for the class/type
> hierarchy in a later version, after posting the challenge and after I
> posted my entry to your challenge. I downloaded "XDb1 beta v4.4.7" from
> your website on May 20, 6 days after you posted your challenge. That
> version is unable to generate the ANC report for the class/type hierarchy:
>
> Common Ancestor Report for 'thing'
> ThingX ThingY CmnAnc Dist
> Time elapsed: 0 msec
As I indicated in prior posts, "XDb1 beta v4.4.7" did have an error passing the parameters correctly to the report generator (because the root doesn't have any thing higher than it). But "XDb1 beta v4.4.7" did have the ability to generate a report for the class hierarchy and was not added at a later time. To verify this, open Ex076.xdb and type the following statement into the NLI:
query is thing.
This (luckily) satisfies the report generator to which query looks "higher" than thing. Right-clicking the root node labeled 'thing', and selecting 'Generate Anc Report" produces the following 317 KB Report:
Common Ancestor Report for 'thing'
ThingX ThingY CmnAnc Dist
god force thing 2
god army thing 3
god church thing 2
god trinity thing 3
god person thing 2
god john thing 3
god mary thing 3
god luke thing 3
god age thing 2
god 35 thing 3
god weight thing 2
god 130 thing 3
god color thing 2
god red thing 3
god dog thing 2
god fido thing 3
god computer thing 2
god laptop1 thing 3
god symbol thing 2
god thing 3
god ! thing 3
god " thing 3
god # thing 3
god $ thing 3
god % thing 3
god & thing 3
god ' thing 3
god ( thing 3
god ) thing 3
god * thing 3
god + thing 3
god , thing 3
god - thing 3
god . thing 3
god / thing 3
god 0 thing 3
god 1 thing 3
god 2 thing 3
god 3 thing 3
god 4 thing 3
god 5 thing 3
god 6 thing 3
god 7 thing 3
god 8 thing 3
god 9 thing 3
god : thing 3
god ; thing 3
god < thing 3
god = thing 3
god > thing 3
god ? thing 3
god _at_ thing 3
god A thing 3
god B thing 3
god C thing 3
god D thing 3
god E thing 3
god F thing 3
god G thing 3
god H thing 3
god I thing 3
god J thing 3
god K thing 3
god L thing 3
god M thing 3
god N thing 3
god O thing 3
god P thing 3
god Q thing 3
god R thing 3
god S thing 3
god T thing 3
god U thing 3
god V thing 3
god W thing 3
god X thing 3
god Y thing 3
god Z thing 3
god [ thing 3
god \ thing 3
god ] thing 3
god ^ thing 3
god _ thing 3
god ` thing 3
god a thing 3
god b thing 3
god c thing 3
god d thing 3
god e thing 3
god f thing 3
god g thing 3
god h thing 3
god i thing 3
god j thing 3
god k thing 3
god l thing 3
god m thing 3
god n thing 3
god o thing 3
god p thing 3
god q thing 3
god r thing 3
god s thing 3
god t thing 3
god u thing 3
god v thing 3
god w thing 3
god x thing 3
god y thing 3
god z thing 3
god { thing 3
god | thing 3
god } thing 3
god ~ thing 3
....
Time elapsed: 1750 msec
As one can see, not only is "XDb1 beta v4.4.7" capable of generating the class hierarchy report, the db has an entry for each symbol. Each symbol was entered by XDb1 into the db when it was first created. All data (ie 'john' or 'god') enter by the user subsequently are normalized to the one and only symbols in the db.
Also note that the "XDb1 beta v4.4.7" that was available at the website was compiled in debug mode. The above report is generated by the same version except it was compiled in release mode, thus your "time elapsed" will be different. Received on Sun Jun 06 2004 - 22:34:00 CEST
