W3C home > Mailing lists > Public > www-rdf-interest@w3.org > November 2001

Re: DAML+OIL and the nested element conundrum

From: Thomas B. Passin <tpassin@home.com>
Date: Wed, 21 Nov 2001 00:03:50 -0500
Message-ID: <002b01c17249$e8dab170$7cac1218@cj64132b>
To: <www-rdf-interest@w3.org>
[Uche Ogbuji]

> The DAML+OIL reference, as an illustration of the representation of lists
as
> cons pairs, uses the following RDF snippet:
>
> <List>
>  <first>
>   <Thing rdf:resource="#red">
>  </first>
>  <rest>
>   <List>
>    <first>
>     <Thing rdf:resource="#white">
> [...]
>
> The first bit of bad news is that this is not well formed XML.
>
> But even once amended, it probably doesn't mean what the DAML authors
think it
> might.  It seems to me that the following makes more sense:
>
> <List>
>  <first>
>   <Thing rdf:about="#red">
>  </first>
>  <rest>
>   <List>
>    <first>
>     <Thing rdf:about="#white">
> [...]

Anyway, how are we supposed to know what a "List","first", or "rest" is
without some rdf: or DAML: namespace to tell us?  Or is the processor
supposed to infer that anything with this structure is intended to be a list
regardless of the element names?

Cheers,

Tom P
Received on Tuesday, 20 November 2001 23:56:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:52 GMT