W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2000

Re: M&S/Parser question

From: Jan Wielemaker <jan@swi.psy.uva.nl>
Date: Tue, 29 Aug 2000 14:39:04 +0200
To: Stefan Kokkelink <skokkeli@mathematik.uni-osnabrueck.de>, RDF interest group <www-rdf-interest@w3.org>
Message-Id: <00082914450102.13688@gollem>
On Tue, 29 Aug 2000, Stefan Kokkelink wrote:
>Hi,
>
>how is the following XML/RDF expected to
>be parsed:
>
><?xml version="1.0"?>
><RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:DC="http://purl.org/metadata/dublin_core/">
> <Bag ID="pages">
>   <li resource="http://foo.org/foo.html" />
>   <li resource="http://bar.org/bar.html" />
> </Bag>
> <Description about="URL1">
>   <DC:Prop>
>     <Description aboutEach="#pages">
>       <DC:Creator>Ora Lassila</DC:Creator>
>     </Description>
>   </DC:Prop>
>  </Description>
></RDF>
>
>What's the object/target of the DC:Prop property?
>SiRPAC and the pro-solutions parser create
>only one statement.
>
>pro_solutions:
>
>(resource('URL1')
>predicate('http://purl.org/metadata/dublin_core/Prop')                                              
>literal('')
>
>SiRPAC:
>triple('http://purl.org/metadata/dublin_core/Prop',
>       'online#URL1',
>       '-').
>
>(Whatever '-' means ;-)
>
>Is this correct? Im my opinion
>there should be the following
>two statements:
>
>(URL1,
>http://purl.org/metadata/dublin_core/Prop,
>http://foo.org/foo.html)
>(URL1,
>http://purl.org/metadata/dublin_core/Prop,
>http://bar.org/bar.html)

Throwing it at the SWI-Prolog parser suggests what you say:

'URL1'  http://purl.org/metadata/dublin_core/:Prop   each(pages)

(It does not expand bags into separate tripples, but rather returns
 a term each(BagId))

But looking at it, I wonder whether is correct.  Shouldn't it reify
the inlined description and generate a (URI, DC:Prop, <BagIdOfReified>)
tripple?

I.e. if a description is the value of an attribute, reify the
description and make the value the reified bag?

	Regards --- Jan
Received on Tuesday, 29 August 2000 08:45:03 GMT

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