Path: text.usenetserver.com!out02a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!postnews.google.com!j72g2000cwa.googlegroups.com!not-for-mail
From: "Neo" <neo55592@hotmail.com>
Newsgroups: comp.databases.theory,comp.databases
Subject: Re: Hierarchal vs Non-Hierarchal Interfaces to Biological Taxonomy
Date: 15 Dec 2006 10:01:11 -0800
Organization: http://groups.google.com
Lines: 62
Message-ID: <1166205671.052077.154980@j72g2000cwa.googlegroups.com>
References: <1166126176.587678.119920@t46g2000cwa.googlegroups.com>
   <1166200604.769505.314740@t46g2000cwa.googlegroups.com>
NNTP-Posting-Host: 75.14.4.26
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1166205676 32538 127.0.0.1 (15 Dec 2006 18:01:16 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 15 Dec 2006 18:01:16 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; yie6_SBC),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: j72g2000cwa.googlegroups.com; posting-host=75.14.4.26;
   posting-account=0cgMYwwAAAB-QanOAkBSIgPTzjTIpbMh
Xref: usenetserver.com comp.databases.theory:160490 comp.databases:159528
X-Received-Date: Fri, 15 Dec 2006 13:01:16 EST (text.usenetserver.com)

> here is a Human Cytogenetic Map (i.e., of the bands in human
> chromosomes resulting from a widely-used diagnostic staining agent):
> (HumanCytoMap(1(1p(1p3(1p36(1p36.3...(Xq27.1,Xq27.2,Xq27.3)))),Y))
> This will give you a large example to work with... Can you parse...

Looks interesting, I'll give it a shot. What is each "node"? A gene? A
chromosone? A Band? What would be an appropriate name for the
relationship between 1 and 1p? Can I treat 1p36.3 as one node or does
the decimal encode a relationship between nodes 1p36 and 3?

> ... let me know and I'll send you the file as an email attachment.

Could you email it to neo55592@hotmail.com , just incase? Thx :)

> Can you parse this tree (from one of Celko's examples)?:
> (Albert(Bert,Chuck(Donna,Eddie,Fred)))

Is it equivalent to:

Albert
   Bert
   Chuck
       Donna
       Eddie
       Fred

If so, below I parsed it manually. I have assumed a parent/child
relationship.

(new 'albert 'person)
(new 'bert 'person)
(new 'chuck 'person)
(new 'donna 'person)
(new 'eddie 'person)
(new 'fred 'person)

(; Create hierarchy consisting of alberts chlidren)
(; Note that child is part of system data)
(set albert child bert)
(set albert child chuck)
(set chuck child donna)
(set chuck child eddie)
(set chuck child fred)

(; Get chuck's children)
(; Gets donna, eddie and fred)
(get chuck child *)

(; Get albert's children)
(; Gets bert, chuck, donna, eddie, fred)
(getRel albert child *)

(; Get fred's parent)
(; Gets chuck)
(get * child fred)

(; Get fred's grand parent)
(; Get albert)
(get * child (get * child fred))

The above is similar to example www.dbfordummies.com/example/ex006.asp

