W3C home > Mailing lists > Public > semantic-web@w3.org > July 2007

Re: RDF property templating

From: Jérôme Mainka <mainka@antidot.net>
Date: Thu, 19 Jul 2007 12:50:48 +0200
To: semantic-web@w3.org
Cc: Renato Golin <renato@ebi.ac.uk>
Message-Id: <200707191250.48833.mainka@antidot.net>

Le jeudi 19 juillet 2007 12:20, Renato Golin a écrit :
> I might be missing the point but this is the classic OUTER JOIN case and
> OPTIONAL should work and give you correct results.
If I write 
CONSTRUCT
{
        ?obj :result ( "A prefix" ?value1 ?value2 ?value3 ) .
}
WHERE
{
        OPTIONAL ( ?obj :prop1 ?value1 ).
        OPTIONAL ( ?obj :prop2 ?value2 ).
        OPTIONAL ( ?obj :prop3 ?value3 ).
} .
the conclusion is never asserted when one of the variables is not bound. The 
SPARQL doesn't say anything about that, but I tested this behaviour with 
Redland and cwm.

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 Thursday, 19 July 2007 10:50:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:47:25 UTC