Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: why hierarchy?

Re: why hierarchy?

From: Neo <neo55592_at_hotmail.com>
Date: 31 Jul 2006 12:34:30 -0700
Message-ID: <1154374470.474209.36770@i42g2000cwa.googlegroups.com>


> how you would represent something like "A person called Bob is friends with a person called Tom" in your system (obviously that's a bidirectional relationship).

(new 'bob 'person)
(new 'tom 'person)
(new 'friend 'verb)
(create bob friend tom)
(create tom friend bob)

OR

(new 'bob 'person)
(new 'tom 'person)
(new 'friend 'verb)
(create friend vbType symmetric)
(createWRR bob friend tom)

OR ...

See old thread titled "Demo: Modelling Cost of Travel Paths Between Towns" and related example www.dbfordummies.com/Example/Ex136.asp Received on Mon Jul 31 2006 - 14:34:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US