- From: <jos.deroo@agfa.com>
- Date: Wed, 15 Dec 2004 01:21:38 +0100
- To: jos.deroo@agfa.com
- Cc: connolly@w3.org, RDF Data Access Working Group <public-rdf-dawg@w3.org>
whoops.. should have been query
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?mbox ?age ?ppd
WHERE ( ?alice foaf:mbox <mailto:alice@work.example> )
( ?alice foaf:knows ?whom )
( ?whom foaf:mbox ?mbox )
( ?whom2 foaf:mbox ?mbox )
( ?whom2 foaf:PersonalProfileDocument ?ppd )
SOURCE ?ppd ( ?whom2 foaf:age ?age )
--
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/
Jos De_Roo/AMDUS/MOR/Agfa-NV/BE/BAYER@AGFA
Sent by: public-rdf-dawg-request@w3.org
15/12/2004 01:09
To: connolly@w3.org
cc: RDF Data Access Working Group <public-rdf-dawg@w3.org>, (bcc: Jos
De_Roo/AMDUS/MOR/Agfa-NV/BE/BAYER)
Subject: Re: SOURCE test case sketches from users, please?
this is not a real response to your call..
btw, at my parents farm we used to have 900 pigs :)
> [...]
>
> I suppose responses of the form...
> The pigfarmer supply chain consortium's usage of SOURCE
> is covered by an existing test
> http://www.w3.org/2001/sw/DataAccess/tests/data/source-named/query-9.1.rq
whatever I try, I can't run that query..
what we can run is, well an N3QL translation (*) of
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?mbox ?age ?ppd
WHERE ( ?alice foaf:mbox <mailto:alice@work.example> )
( ?alice foaf:knows ?whom )
( ?whom2 foaf:mbox ?mbox )
( ?whom2 foaf:PersonalProfileDocument ?ppd )
SOURCE ?ppd ( ?whom2 foaf:age ?age )
i.e. with ?whom2 variable
--
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/
(*)
[] q:select {<> q:answer (?mbox ?age ?ppd)};
q:where {?a foaf:mbox <mailto:alice@work.example>.
?a foaf:knows ?whom.
?whom foaf:mbox ?mbox.
?whom2 foaf:mbox ?mbox.
?whom2 foaf:PersonalProfileDocument ?ppd.
{?whom2 foaf:age ?age} q:source ?ppd}.
and then we get
<file:/temp/testC.n3> q:answer (<mailto:bob@work.example> 35
<file:/temp/bobFoaf.n3>).
Received on Wednesday, 15 December 2004 00:22:14 UTC