On Wed, 2008-10-22 at 11:01 +0700, Ivan Mikhailov wrote:
> Hello Sergio,

Hi Ivan,

> I'd add a newline to read the query as the parser reads it:
> 
> SELECT DISTINCT
> (?name) ?person ?mail
> WHERE {
>   ?person rdf:type foaf:Person .
>   ?person foaf:name ?name .
>   ?person foaf:mbox_sha1sum ?mail
> }
> 
> SELECT DISTINCT is as in plain SPARQL, return values are expression ?name and 
> two variables ?person and ?mail.
> Unfortunately, there's no such thing as DISTINCT for a part of the result set 
> row.

That was that I thought, but the syntax with (?var) confused me.

> If duplicates are seldom and there's no requirement that ?person
> should correspond to ?mail (so the result should contains some person
> node and some mail but they don't have to be connected by
> foaf:mbox_sha1sum, then MIN aggregate will work:

That's the thing I was searching. Thanks!

Cheers,

-- 
Sergio Fernández - sergio.fernan...@fundacionctic.org
R&D Deparment
CTIC Foundation - www.fundacionctic.org
Phone: +34 984 29 12 12
Fax:  +34 984 39 06 12
Edificio Centros Tecnológicos
Parque Científico Tecnológico
33203 Cabueñes - Gijón - Asturias - Spain


Reply via email to