Attached is a revised set of tests that I have changed to be in be in the current syntax. Andy -------- Original Message -------- > From: Seaborne, Andy <> > Date: 3 September 2004 17:48 > > 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" | > -----------
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 1 October 2009 14:41:58 GMT