RE: Vocabulary for RDF Query Test Cases

Jos,

While N3 formulae could be used, I wanted a vocabulary that is just RDF.  I
quoted variables by using a property to their name.
  
One thing formulae would be good for would be the form of query results
which were a sequence of matching subgraphs:

( 
  {:rec010 :year 2001;
           :month "May";
           :city "Tel Aviv"
           :film "Pokemon 2";
           :cinema "Globus". }

  { :rec017 :year 2001;
            :month "May";
            :city "Jerusalem";
            :cinema "Globus";
            :film "A Hard Day's Night". }
)

The other thought that occurred to me, from you example, is just to have:

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


	Andy

-----Original Message-----
From: Jos De_Roo [mailto:jos.deroo@agfa.com] 
Sent: 29 March 2003 21:13
To: Alberto Reggiori <alberto
Cc: www-rdf-rules@w3.org
Subject: Re: Vocabulary for RDF Query Test Cases




> 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 Monday, 31 March 2003 07:19:12 UTC