W3C home > Mailing lists > Public > www-rdf-rules@w3.org > March 2003

Re: Vocabulary for RDF Query Test Cases

From: Jos De_Roo <jos.deroo@agfa.com>
Date: Sat, 29 Mar 2003 22:13:21 +0100
To: "Alberto Reggiori <alberto" <alberto@asemantics.com>
Cc: www-rdf-rules@w3.org
Message-ID: <OF3BEE78C1.CC96DF63-ONC1256CF8.006BDEEE@agfa.be>


> As a follow up of the IRC meetings [1][2] and the RDF query testcases
> vocabularies announcement [3] , I have written up details of those
> vocabularies  into a document and put  it (thanks to DanBri) on the
> "RDF Query (and Rules) Testcases" site [4]:
>
> http://www.w3.org/2003/03/rdfqr-tests/rdf-query-testcases.html
>
> This is work in progress; the document is a working document for people
> to comment on by emailing this list. The above work is also related to
> the other working document written by Andy Seaborne about "Recording
> Query Results" [5]
>
> Alberto
>
> [1] http://lists.w3.org/Archives/Public/www-rdf-rules/2003Feb/0014.html
> [2] http://lists.w3.org/Archives/Public/www-rdf-rules/2003Mar/0015.html
> [3] http://lists.w3.org/Archives/Public/www-rdf-rules/2003Mar/0013.html
> [4] http://www.w3.org/2003/03/rdfqr-tests/
> [5] http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html

Looks like good progress!
(sorry I missed the IRC meeting but I had no free time)

In http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html
reification is mentioned which is indeed maybe
*not* the way to go...
On the other hand I very much like the N3
way of writing subgraphs using {} notation.
For instance given the facts in
http://www.agfa.com/w3c/euler/ziv.n3
we can query those facts with
http://www.agfa.com/w3c/euler/ziv-query.n3
and that is then resulting in
http://www.agfa.com/w3c/euler/ziv-result.n3

so the query looks like

?r :year 2001;
   :month "May";
   :city ?c;
   :film ?f;
   :cinema "Globus".

and a particular result looks like

{?r = :rec010. ?r :year 2001} => {:rec010 :year 2001}.
{?r = :rec010. ?r :month "May"} => {:rec010 :month "May"}.
{?r = :rec010. ?c = "Tel Aviv". ?r :city ?c} => {:rec010 :city "Tel Aviv"}.
{?r = :rec010. ?f = "Pokemon 2". ?r :film ?f} => {:rec010 :film "Pokemon
2"}.
{?r = :rec010. ?r :cinema "Globus"} => {:rec010 :cinema "Globus"}.

but that can be further improved
(just wanted to show the braces)

-- ,
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

PS I also had a look to Andy's Joseki and like/follow
   it's very nifty combination of HTTP and N3 Triples
Received on Saturday, 29 March 2003 16:13:37 GMT

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