Hi Ivan,
Hi Ivan,

Thanks, I now see that the query I use works for another reason than I
thought. Time to refresh my SQL, it's been some time.

We are still coding most stuff through abstractions atop Sesame, you
see. But I guess once federation is in place there will be less and
less need to get out of the Virtuoso environment.

Thanks,
A

On Sun, May 17, 2009 at 9:31 AM, Ivan Mikhailov
<imikhai...@openlinksw.com> wrote:
> Hello Aldo,
>
> DISTINCT does not preserve the order, I'm afraid. Place it in subselect,
> then sort in surrounding select.
>
> Best Regards,
>
> Ivan Mikhailov
> OpenLink Software,
> http://openlinksw.com
>
> On Sat, 2009-05-16 at 23:55 -0400, Aldo Bucchi wrote:
>> Hi,
>>
>> I ran the following query in order to get a quick glimpse at the
>> "schema"  a graph.
>>
>> SELECT DISTINCT
>> ?clazz ?property max( ?sampleValue )
>> WHERE
>> {
>>   ?s a ?clazz .
>>   ?s ?property ?sampleValue
>> } ORDER BY ?clazz ?property
>>
>> However, I can't get the ORDER BY clause to do what I need, which is
>> to group results by class and then by predicate.
>> Is this the expected behaviour?
>>
>> Thanks,
>> A
>>
>>
>>
>
>



-- 
Aldo Bucchi
U N I V R Z
Office: +56 2 795 4532
Mobile:+56 9 7623 8653
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is
addressed and may contain information that is privileged and confidential. If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail.
INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
Este mensaje está destinado sólo a la persona u organización al cual está
dirigido y podría contener información privilegiada y confidencial. Si usted no
es el destinatario, por favor no distribuya ni copie esta comunicación, por
email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente
vía e-mail.

Reply via email to