From: Dan B. <dan...@gm...> - 2010-07-09 08:08:38
|
Hi dhivya, The only way I know is by using arrays, as 'documented' here: http://smw.referata.com/wiki/List_the_set_of_unique_values_for_a_property I believe Gu's SemanticQueryFormTool (sask) also allows a query to return the set of unique values: http://www.mediawiki.org/wiki/Extension:SemanticQueryFormTool You can get something close with the facets feature of the exhibit format (unique values are listed in a box on the right), but I don't know if you can restrict the result to just those values. I think this is a big missing feature in #ask:, but it is related to a suite of 'group by' features that are not so easy to implement. HTH, Dan. On 8 July 2010 20:29, dhivya arasappan <dh...@gm...> wrote: > Hi all, > > I'm using a convoluted ask query (with arrays etc) to get some results out. > The problem is because I do an ask for each element in the array, I get > repetitive results. > > So, I was wondering if there was an easy way to have ask pull out only > unique values for a certain field and/or for the whole row? > > thanks > dhivya > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |