W3C home > Mailing lists > Public > public-cwm-talk@w3.org > July to September 2007

sparql list constructor

From: Jérôme Mainka <mainka@antidot.net>
Date: Tue, 31 Jul 2007 19:52:44 +0200
To: public-cwm-talk@w3.org
Message-Id: <200707311952.44960.mainka@antidot.net>

Hi,

I try to play with the sparql list constructor implemented in cwm.

Given the following assertions:

:example
	:prop1 "value 1" ;
	:prop3 "value 3" .

and the following CONSTRUCT:
CONSTRUCT 
{
	?obj :result ( ?value1 ?value2 ?value3 ) .
}
WHERE
{
	OPTIONAL { ?obj :prop1 ?value1 }.
	OPTIONAL { ?obj :prop2 ?value2 }.
	OPTIONAL { ?obj :prop3 ?value3 }.
}

I would expect the result to be:

:example :result ( "value 1" "value 3" ) .

But cwm (cwm= $Revision: 1.193 $ llyn= $Revision: 1.183 $) doesn't return any 
result... How can I specify a rdf:List with optional values?

J.

-- 
Antidot - solutions de recherche d'information
gsm: +33 6 62 79 09 74
ip : +33 9 50 28 37 46
fax: +33 9 55 28 37 46
Received on Tuesday, 31 July 2007 17:52:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:11:02 GMT