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

action item "to send pointers to test cases to the list"

From: Jos De_Roo <jos.deroo@agfa.com>
Date: Wed, 7 Jul 2004 01:35:15 +0200
To: public-rdf-dawg@w3.org
Message-ID: <OF7B597270.092879B6-ONC1256EC9.007D7EEE-C1256EC9.00818298@agfa.com>

Rather than waiting for more completeness, I wanted to start with
some test cases that we recently tested ...

1/ given http://eulersharp.sourceforge.net/2004/04test/librarianP.n3
the query http://eulersharp.sourceforge.net/2004/04test/librarianQ.n3
[] q:select { q:result q:is (?x ?y) };
   q:where { ?x a :Librarian; :hairColor ?y }.

results in
q:result q:is (:Joe "black"). 
q:result q:is (:Mary "red"). 

2/ given http://eulersharp.sourceforge.net/2004/04test/vcardP.n3
the query http://eulersharp.sourceforge.net/2004/04test/vcardQ.n3
[] q:select {?S ?P ?O};
   q:where {?S :employeeId "1234". ?P a rdf:Property. ?S ?P ?O}.
[] q:select {?O ?Q ?X};
   q:where {?S :employeeId "1234". ?P a rdf:Property. ?S ?P ?O. ?Q a 
rdf:Property. ?O ?Q ?X}.

results in
<http://qqqfoo.com/staff/corky> ns0:N _:59_1_5. 
<http://qqqfoo.com/staff/corky> ns0:FN " Corky Crystal ". 
<http://qqqfoo.com/staff/corky> ns0:ROLE " Programmer ". 
<http://qqqfoo.com/staff/corky> ns0:BDAY " 1980-01-01 ". 
<http://qqqfoo.com/staff/corky> ns0:TEL _:68_1_5. 
<http://qqqfoo.com/staff/corky> ns0:ADR _:45_1_5. 
<http://qqqfoo.com/staff/corky> ns0:EMAIL _:54_1_5. 
<http://qqqfoo.com/staff/corky> ns0:TITLE " Computer Officer Class 3 ". 
_:59_1_5 ns0:Given "  Corky ". 
_:59_1_5 ns0:Family " Crystal ". 
_:59_1_5 ns0:Prefix " Dr ". 
_:59_1_5 ns0:Other "  Jacky ". 
_:68_1_5 rdf:value " +61 7 555 5555 ". 
_:45_1_5 ns0:Country "  Australia ". 
_:45_1_5 ns0:Pcode "    5555 ". 
_:45_1_5 ns0:Street "   111 Lake Drive ". 
_:45_1_5 ns0:Locality " WonderCity ". 
_:54_1_5 rdf:value " corky@qqqfoo.com ". 

3/ given http://eulersharp.sourceforge.net/2004/04test/sampleP.n3
the query http://eulersharp.sourceforge.net/2004/04test/sampleQ.n3
[] q:select {q:result q:is (?P ?M ?N ?E)};
   q:where {?P :author ?S. ?S rdfs:member ?M. ?M :name ?N}.
[] q:select {q:result q:is (?P ?M ?N ?E)};
   q:where {?P :author ?S. ?S rdfs:member ?M. ?M :name ?N. ?M :email ?E}.

results in
q:result q:is (:Paper <http://www.aifb.uni-karlsruhe.de/WBS/aeb> "Andreas 
Eberhart" ?E). 
q:result q:is (:Paper <http://www.aifb.uni-karlsruhe.de/WBS/pha> "Peter 
Haase" ?E). 
q:result q:is (:Paper <http://www.aifb.uni-karlsruhe.de/WBS/rvo> "Raphael 
Volz" ?E). 
q:result q:is (:Paper <http://www.cs.vu.nl/~jbroeks/> "Jeen Broekstra" 

4/ given http://eulersharp.sourceforge.net/2004/04test/danP.n3
the query http://eulersharp.sourceforge.net/2004/04test/danQ.n3
[] q:select { q:result q:is (?N ?LA ?LO) };
   q:where { ?C :latitude ?LA; :longitude ?LO; :cityName ?N.
             ((((?LA 42.3).math:difference 2).math:exponentiation ((?LO 
-71.1).math:difference 2).math:exponentiation).math:sum 
0.5).math:exponentiation math:lessThan 0.5}.

results in
q:result q:is ("Cambridge" 42.3 -71.1). 
q:result q:is ("Boston" 42.19 -71.05). 

5/ given http://slashdot.org/slashdot.rss
and http://www.w3.org/2000/08/w3c-synd/home.rss
the query http://eulersharp.sourceforge.net/2004/04test/rtQ.n3
[] q:select {?U rss:title ?T};
   q:where {?U rss:title ?T}.

(at this moment) results in
<http://images.slashdot.org/topics/topicslashdot.gif> rss:title 
<http://slashdot.org/> rss:title "Slashdot". 
<http://slashdot.org/search.pl> rss:title "Search Slashdot". 
<http://slashdot.org/article.pl?sid=04/07/06/1814202> rss:title "Hacking 
<http://slashdot.org/article.pl?sid=04/07/06/1828221> rss:title "Besieged 
Movie Industry Suffers Record Takings". 
<http://slashdot.org/article.pl?sid=04/07/06/2248208> rss:title "World 
Computer Chess Championships Underway". 
<http://slashdot.org/article.pl?sid=04/07/06/1718239> rss:title "Who Wrote 
<http://slashdot.org/article.pl?sid=04/07/06/1344200> rss:title "First 
Doom3 Tourney @ QuakeCon". 
<http://slashdot.org/article.pl?sid=04/07/06/1910231> rss:title "Linux 
Laptop w/ 3.5\" Disk, USB, and No Hard Drive?". 
<http://slashdot.org/article.pl?sid=04/07/06/1636241> rss:title "Dell to 
Ship Linux Desktops in Europe". 
<http://slashdot.org/article.pl?sid=04/07/06/217238> rss:title "Robots in 
<http://slashdot.org/article.pl?sid=04/07/06/1628220> rss:title "NIST 
Issues Windows XP Security Guide". 
<http://slashdot.org/article.pl?sid=04/07/06/1558259> rss:title "Broadband 
<http://www.w3.org/News/2004#item98> rss:title "RDF and OWL Working Groups 
Complete Deliverables, Close". 
<http://www.w3.org/News/2004#item97> rss:title "Call for Participation: 
Workshop on Constraints and Capabilities for Web Services". 
<http://www.w3.org/News/2004#item96> rss:title "Upcoming W3C Talks". 
<http://www.w3.org/News/2004#item95> rss:title "Working Draft: Mobile SVG 
Profiles Version 1.2". 
<http://www.w3.org/News/2004#item94> rss:title "W3C Workshop on Web 
Applications and Compound Documents: Summary and Papers". 
<http://www.w3.org/News/2004#item93> rss:title "Tim Berners-Lee Receives 
Millennium Technology Prize in Helsinki". 
<http://www.w3.org/News/2004#item92> rss:title "Working Draft: Content 
Selection for Device Independence (DISelect) 1.0". 
<http://www.w3.org/2000/08/w3c-synd/home.rss> rss:title "World Wide Web 

Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/
Received on Tuesday, 6 July 2004 19:35:52 UTC

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