W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > September 2002

Re: daml:collection is just Literal test: need help with details [was: current action list]

From: Jeremy Carroll <jjc@hpl.hp.com>
Date: Tue, 17 Sep 2002 21:49:15 +0200
To: w3c-rdfcore-wg@w3.org
Message-Id: <200209172149.15403.jjc@hpl.hp.com>


Another test that I haven't implemented.

Again doesn't seem to be in the repository.

Dan suggested

   <rdf:Description>
          <ex:brothers rdf:parseType="daml:collection">
            <rdf:Description rdf:about="http://example/#Fred"/>
            <rdf:Description rdf:about="http://example/#Bob"/>
          </ex:brothers>
        </rdf:Description>

my parser (with rdf:parseType="d" not "daml:collection") gives:


_:jARP0 <http://example.org/eg#brothers> xml"\n            <rdf:Description xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" rdf:about=\"http://example/#Fred\"></rdf:Description>\n            <rdf:Description xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" rdf:about=\"http://example/#Bob\"></rdf:Description>\n          " .


Getting the spaces right in the test cases will be bothersome, why not use a flush-left test:

<rdf:Description>
<ex:brothers rdf:parseType="daml:collection">
<rdf:Description rdf:about="http://example/#Fred"/>
<rdf:Description rdf:about="http://example/#Bob"/>
</ex:brothers>
</rdf:Description>

which should go to

_:jARP0 <http://example.org/eg#brothers> xml"\n<rdf:Description xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" rdf:about=\"http://example/#Fred\"></rdf:Description>\n<rdf:Description xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" rdf:about=\"http://example/#Bob\"></rdf:Description>\n" .


note the rule about visibly used namespaces (this case rdf).

This is going to be a right pain to implement.
Currently strict mode in ARP just turns various warnings into errors. 
This one doesn't generate any warnings but invokes a different behaviour.

Jeremy
Received on Tuesday, 17 September 2002 15:50:44 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:51:00 EDT