Re: MultiValue Databases

From: Neo <neo55592_at_hotmail.com>
Date: 8 Jun 2005 09:36:14 -0700
Message-ID: <1118248574.053555.276260_at_g44g2000cwa.googlegroups.com>


Also, how can I implement the following xrdb queries in the new RM schema:

// Find John's type or classification.
// Note: "inst" is an abbreviation for "instance".
(SELECT * inst john) // returns person.

// Find 222-2222's type.

(SELECT * inst 222-2222) // returns phone#.

// Find like's type.

(SELECT * inst like) // returns verb.

// Find a person who likes a person whose phone# is 222-2222.
(SELECT * like (* phone# 222-2222 ) ) // returns johns.

// Find type of thing
// which is liked by a person
// whose ph# are 111-1111 and 222-2222.
// Returns person.

(SELECT
* inst ((person inst * & * phone# 111-1111 & * phone# 222-2222) like *)) Received on Wed Jun 08 2005 - 18:36:14 CEST

Original text of this message