[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Grooves: why are "data" designed as properties and not nodes ?

  • From: "Anders W. Tell" <anderst@t...>
  • To: xml-dev@i...
  • Date: Sat, 25 Sep 1999 17:00:53 +0200

Re: Grooves: why are "data" designed as properties and not nodes ?
"Steven R. Newcomb" wrote:

> [Anders W. Tell:]
> * 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).

Yes almost, however the nodes are values, simple or constructed.

> > 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.

So if I understand it correctly, when Propertys have values then Nodes are *multi-valued*
which differes from the case when nodes are values themselfs.

An example how this design might be used:
Serialization of a programming language "Object"

Freeform PropertySet: "Objects"
----------------------------------
NodeClass: "ProgObject"
  Properties:
     "Members": NodeList , restricted to Nodes of class "ProgMember"

NodeClass: "ProgMember"
   Properties:
      "c++-type" : string
      "c++-value" : any property type, restricted to the "c++-type" types of values
      "visualbasic-type" : string
      "visualbasic-value" : any property type, restricted to the "visualbasic+-type" types of
values

And if I want to treat this Grove as C++ Object then I apply a Grove-plan which
"filters" out all "visualbasic-x" properties or keeps the "c++-X" 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.

Ok, but what about algorithms that uses the Grove?
(how Information is organized does affect algorithms
even if the "organization" is generic.)

/anders
--
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/  Financial Toolsmiths AB  /
/  Anders W. Tell           /
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
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@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.