- From: Seaborne, Andy <andy.seaborne@hp.com>
- Date: Fri, 3 Sep 2004 17:48:20 +0100
- To: "RDF Data Access Working Group" <public-rdf-dawg@w3.org>
- Message-ID: <8D5B24B83C6A2E4B9E7EE5FA82627DC968B0@sdcexcea01.emea.cpqcorp.net>
A few simple tests for the simplest triple matching. Test set is attached (Steve - wasn't sure what to do about naming - can we discuss this please?). To get complete coverage, there would need to be more tests than just these for this area but here is something to start the process. Tests below from the attached file: Andy --------------------------- ==== Data: @prefix : <http://example.org/data/> . :x :p :v1 . :x :p :v2 . ==== Query 1: PREFIX : <http://example.org/data/> SELECT * WHERE { :x ?p ?q } ==== Result: ------------ | p | q | ============ | :p | :v1 | | :p | :v2 | ------------ ==== Query 2: PREFIX : <http://example.org/data/> SELECT * WHERE { ?x :p ?q } ==== Result (same data): ------------ | x | q | ============ | :x | :v1 | | :x | :v2 | ------------ --------------------------- ==== Data: @prefix : <http://example.org/data/> . :y :y :x . :x :y :y . :y :x :y . ==== Query 3: SELECT * WHERE { ?a ?a ?b } ==== Result: ----------- | a | b | =========== | :y | :x | ----------- --------------------------- ==== Data: dawg-data-01.n3 (already in test area) ==== Query 4: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name FROM <file:dawg-data-01.n3> WHERE { ?x rdf:type foaf:Person . ?x foaf:name ?name . } ==== Result: ----------- | name | =========== | "Alice" | | "Eve" | | "Bob" | -----------
Attachments
- application/x-zip-compressed attachment: simple-tests.zip
Received on Friday, 3 September 2004 16:48:54 UTC