W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2004

Re: SOURCE test case sketches from users, please?

From: <jos.deroo@agfa.com>
Date: Wed, 15 Dec 2004 01:09:33 +0100
To: connolly@w3.org
Cc: RDF Data Access Working Group <public-rdf-dawg@w3.org>
Message-ID: <OF0233C2AE.1C79DDAE-ONC1256F6A.0083B8EA-C1256F6B.0000DF8D@agfa.com>

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 
Received on Wednesday, 15 December 2004 00:11:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:45 UTC