Re: Storing data and code in a Db with LISP-like interface

From: Neo <neo55592_at_hotmail.com>
Date: 28 Apr 2006 18:39:26 -0700
Message-ID: <1146274766.186852.149020_at_g10g2000cwb.googlegroups.com>


Now as I extend the tiny example once again, notice how dbd's methodology remains systematic vs how it impact Prolog's prior solution.

Find the thing with which john's relationship is similar to reverse that of with mary. Below is dbd's abridged script:

(create person instance john)
(create person instance mary)
(create person instance bob)

(create verb instance like)
(create verb instance hate)
(create verb instance opposite)
(create verb instance similar)

(create like opposite hate)
(create reverse similar opposite)

(create john like mary)
(create john hate bob)

// This query finds it is bob.
(select john

          (select (select john * mary)
                  (select reverse similar *)
                  *) 
          *)
Received on Sat Apr 29 2006 - 03:39:26 CEST

Original text of this message