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

Re: Test cases: source of a triple

From: Steve Harris <S.W.Harris@ecs.soton.ac.uk>
Date: Thu, 26 Aug 2004 11:47:26 +0100
To: RDF Data Access Working Group <public-rdf-dawg@w3.org>
Message-ID: <20040826104726.GD1248@login.ecs.soton.ac.uk>

On Thu, Aug 26, 2004 at 09:47:46 +0100, Andy Seaborne wrote:
> == Test case 1 : union case:
> 
>   a.rdf:
>   :r :p :v .
> 
>   b.rdf:
>   :r :p :v .
> 
> 
> This has one result:
>     SELECT * WHERE { ?x ?y ?z }

Possibly, depending on how you define union.

    SELECT DISTINCT * WHERE { ?x ?y ?z }

has one result, certainly.
 
> == Test case 2: inference
> 
> Data:
>   a1.rdf:
>   :x rdf:type :C1 .
>   :C1 rdfs:subClassOf :C2 .
> 
> Query:
>     SELECT * WHERE { ?x rdf:type :C2 }
> 
> ?x = :x
> ?src = <a.rdf> maybe.

Assuming you missed the SOURCE ?src bit, then I dont think ?src should
bind to <a.rdf>, the triple (? rdf:type :C2) does not appear in a.rdf.
Same applies to the following examples. 

- Steve
Received on Thursday, 26 August 2004 10:47:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:20 GMT