Grooves: why are "data" designed as properties and not nodes ?
Steven R. Newcomb
srn at techno.com
Fri Sep 24 21:28:23 BST 1999
[Anders W. Tell:]
> Like many others have I started to look at the Grooves model once
> more and this time at little closer. Im especially interested in how
> my current "DOM-compliant" model matches the Groove.
A couple of remarks:
* It's "grove", not "groove". It's (kind of) an acronym: Graph
Representation Of property ValuEs.
* The SGML Property Set, which is an instance of a property set as
defined by the grove paradigm, is somewhat comparable to the DOM.
The DOM is not directly comparable to the grove paradigm. Maybe
your current "DOM-compliant" model is comparable to the grove
paradigm, though (depending on what it is).
> One aspect got my attention and it was that properties and not nodes
> contains "data" such as strings,integer,etc.
> Could somone explain the design rationale why properties and not node
> carries data ?
Properties do not "contain" data. Properties are like variables: they
can "have" values.
A node *consists* of a set of named properties and their values, if
any. A node (an instance of a class of nodes) can have many
properties. Some properties are "data" properties; this means that,
unlike "nodal" properties, their values must be data, and cannot be
nodes. If nodes were the same thing as data, or if nodes could be
treated as data, then they would have only one property, whose value
would be the data. That would not be as useful as having nodes
consisting of any number of named properties, any number of which can
be data properties.
> Does this design imply that tree-algorithms are easier to implement ?
The design of the grove paradigm is explicitly intended not to imply
anything at all about implementation.
Steven R. Newcomb, President, TechnoTeacher, Inc.
srn at techno.com http://www.techno.com ftp.techno.com
voice: +1 972 231 4098
fax +1 972 994 0087
pager (150 characters max): srn-page at techno.com
3615 Tanner Lane
Richardson, Texas 75082-2618 USA
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev