Re: Storing data and code in a Db with LISP-like interface
Date: 2 May 2006 15:40:51 -0700
Message-ID: <1146609651.801033.46930_at_v46g2000cwv.googlegroups.com>
For one thing, I now understand why it appear I am re-inventing Prolog. Having seen Prolog, I hope to distill its most basic features and integrate them when I start focusing on data processing rather than just representing.
I will state it again and demo it with examples: dbd's method of
representing things is more general/flexible/systematic than Prolog in
a few areas.:
below you needed to restructure your orignal script).
> You might read it as just: Please be specific when stating what you want to know. See below
Sometimes the actual examples conveys my thoughts more accurately :)
> You had demos of dbd's previous incarnation at a site, but it seems down.
thing(john). % John is a thing to represent. thing(mary). % Mary is a thing to represent. thing(like). % Like is a thing to represent. thing(relationship(john, like, mary)). % The relationship "john like mary" % is a thing to represent.
?- thing(relationship(john, Relator_Verb, mary)). Relator_Verb = like ;
Sometimes the best way is to look at the dbd script which shows the above is similar but not equivalent. For example, john and mary are persons, and person is a thing. Also it does not represent relationship which now appears in the prolog code.
Ok, so now you have restructured your original data to determine the relator between john and mary, but now how do I access the relator/relationship between john and thing. mary and thing, like and thing. What is the relationship/relator between "john, verb, mary" and relationship. What is the relator/relationship between thing and (relationship(john, like, mary)). At first you will immediately say those are obvious. Try replacing them with letters. Also why are various things and relationships being reprsented with different methods. It is unsystematic and difficult for an AI or driod-like app to figure out. Can it use the same rules here on new data? See prior post on this very same topic.
>> Enter the following relationships in prolog: >> class (john, person). meaning one of john's class is person >> instance (person, john). meaning one of person's instance is john
> Are you stating the same fact in two ways or are these two facts?
Your question is difficult to answer as the word "fact" has no meaning in dbd's method of representing things. Received on Wed May 03 2006 - 00:40:51 CEST
