Aldo Bucchi wrote:
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.
No, I think we need to actually make a SPASQL guide, something we've sort of overlooked. Ironically, the most powerful aspect of Virtuoso is SPASQL since this is the key to the best of SQL and SPARQL :-)

Rumi: We should add a SPASQL guide to the current SPARQL guide for the SIOC based Linked Data Web that I am currently reviewing.

Kingsley
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








--


Regards,

Kingsley Idehen       Weblog: http://www.openlinksw.com/blog/~kidehen
President & CEO OpenLink Software Web: http://www.openlinksw.com





Reply via email to