Re: Mixing OO and DB
Date: Thu, 7 Feb 2008 13:00:15 -0800 (PST)
Message-ID: <e9678e2e-9a01-4dbc-8cc2-4238e1c9be4e_at_s8g2000prg.googlegroups.com>
On Feb 7, 12:35 pm, Victor Porton <por..._at_narod.ru> wrote:
> I know both object oriented programming and DB (SQL). But it seems
> that these are incompatible.
Here is an example -- a hierarchy of living things, restricted to the set {Lamprey, Trout, Lungfish, ..., Human}. FCA starts with feature matrix like this:
Jaws Limbs Hair Lungs Tail Shell Lamprey 0 0 0 0 1 0 Trout 1 0 0 0 1 0 Lungfish 1 0 0 1 1 0 Turtle 1 1 0 1 1 1 Cat 1 1 1 1 1 0 Gorilla 1 1 1 1 0 0 Human 1 1 1 1 0 0
Then, the objects and the attributes (aka concepts) organize themselves into a lattice like this
Lamprey -> Trout -> Lungfish -> Cat -> Gorilla
| | | ---> Human | ----> Turtle
which is more powerful concept than OO hierarchy of classes. Each FCA concept is essentially a limited form of a relation.
There are some reasons why FCA methods never enjoyed a success comparable to OO and Relational Model. They are simply more restrictive sets of relations which obey distributive property, why relations in general don't. Received on Thu Feb 07 2008 - 22:00:15 CET