Re: Comments on the data model

New Message Reply About this list Date view Thread view Subject view Author view

From: Richard Knapp (richfk_at_attglobal.net)
Date: Thu Jul 18 2002 - 12:49:14 CEST


Return-Path: <owner-cavexml-outgoing_at_ethz.ch>
Delivered-To: cavexml-archive_at_cartography.ch
Received: from localhost (localhost [127.0.0.1]) by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0) with ESMTP id 5949315915 for <cavexml-outgoing_at_ethz.ch>; Thu, 18 Jul 2002 13:57:05 +0200 (CEST)
Received: by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0, from userid 28) id EF6CC15902; Thu, 18 Jul 2002 13:57:01 +0200 (CEST)
Delivered-To: cavexml-loopcheck_at_ethz.ch
Received: from localhost (localhost [127.0.0.1]) by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0) with ESMTP id 7F37115925 for <cavexml-loopcheck_at_ethz.ch>; Thu, 18 Jul 2002 13:57:00 +0200 (CEST)
Received: by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0, from userid 96) id 4F03414BA0; Thu, 18 Jul 2002 13:56:57 +0200 (CEST)
Delivered-To: cavexml_at_cartography.ch
Received: from localhost (localhost [127.0.0.1]) by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0) with ESMTP id D3C5B15915 for <cavexml_at_cartography.ch>; Thu, 18 Jul 2002 13:56:56 +0200 (CEST)
Received: from prserv.net (out4.prserv.net [32.97.166.34]) by karmail.ethz.ch (Postfix on SuSE eMail Server 2.0) with ESMTP id C895E8B22 for <cavexml_at_cartography.ch>; Thu, 18 Jul 2002 13:56:52 +0200 (CEST)
Received: from Muphin (slip-12-65-79-156.mis.prserv.net[12.65.79.156]) by prserv.net (out4) with SMTP id <2002071811410120403p4ccse>; Thu, 18 Jul 2002 11:41:01 +0000
From: "Richard Knapp" <richfk_at_attglobal.net>
To: "cavexml_at_cartography.ch" <cavexml_at_cartography.ch>
Date: Thu, 18 Jul 2002 06:49:14 -0400 (EDT)
X-Mailer: PMMail 2.20.2380 for OS/2 Warp 4.5
In-Reply-To: <5.1.0.14.1.20020717170732.01d58d00_at_popa.melbpc.org.au>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Subject: Re: Comments on the data model
Message-Id: <20020718115652.C895E8B22@karmail.ethz.ch>
X-Loop: cavexml
Sender: owner-cavexml_at_karmail.ethz.ch
Precedence: bulk
Reply-To: cavexml_at_cartography.ch
X-Virus-Scanned: by AMaViS perl-11

On Thu, 18 Jul 2002 17:44:22 +1000, Peter MATTHEWS wrote:

> At 18:27 10-07-02 -0400, Richard Knapp wrote:
> [snip]
> >Under Branch, there is a field of Node type however, Node is an Element not
> >an attribute.
>
> The fields shown under Branch are actually called "node names", i.e. the
> names of the Nodes which terminate/define each end of the Branch. These
> names are therefore properties of the Branch.

Are the names unique to the system? How will that be ensured? If IDs
are used, how will their uniqueness be ensured? If multiple files are
joined - a previously unrelated cave was connected - how will the
uniqueness transfer into the newly joined files?

> >The diagram shows a many-to-many relationship. How is this going to work?
>
> To be honest, as a "beginner" XML person I am not sure of the details. Can
> anyone else give an XML example? However, if two real-world things actually
> are related many-many, then XML needs to be able to handle it, somehow.

Only if they turn out to be true relationships. We are in the process
of discovering "entities", "fields", and "relationships". And there
is no guarantee that implementation will match design.

> Like with databases, I suspect you would just show or record one direction
> at a time, depending on what was the context of the file/document you were
> creating.

In XML, you can use IDREFS to indicate a list of IDs in an attribute.
However, attempting to work with IDs in a more basic circumstance
(Stations) proved very difficult. And again the requirement that IDs
are unique (document wide) is limiting, especially when you consider
joining files.

> For example, taking the case of say the two entities, People and
> Organisations, which have a many-many relationship: one Person can belong
> to many Organisations, and one Organisation can have many People as ...

These are model and design decisions. I could just as easily say
Organizations are made up of People and leave it at that. If I want
to find what organizations someone is in, I could scan the
Organizations for that person. Not efficient but it would work... Or
the other way around.

> In the diagram, I have shown [cavesystem] as the top of the hierarchy -
> [caves] are within [cavesystem], and [projects] are within [cavesystem].

So Cave and Project are at the same level, or can there be a project
within a cave as well? What if there is no cavesystem, I'm just
working on a cave (most likely scenario)? Wouldn't the highest level
be the document? (in XML, the root element - CaveXML; in RDBBS, the
database). From that can spawn a Project consisting of multiple caves
or a cave system with multiple caves and projects or a cave with
multiple projects or....


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Wed Jul 31 2002 - 23:00:00 CEST