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
> 
> 
> 


Reply via email to