Uniqueness of Query Results

From semantic-mediawiki.org

Playing with the Array SRF I found that if a query result returns a list of values from a page that contains a multi-valued property, then the entire string is returned as a single value instead of a list of values that get merged into the named array.

To overcome this I return query results as a list and put the query inside the array definition, as the list of array values.

You can see an example of the difference on stratchpad.Referata, here.

15:56, 20 August 2012

I am not quite sure I understand what you mean. If there are multi-valued property results in the array, they have to share one array element, yes. But within that element, they are separated by the manysep. So if you set manysep=,, print the result array into a new array definition which uses "," as separator + unique option, then you should get your desired array. Anyhow, please take a look at http://scratchpad.referata.com/wiki/Front-wheel_drive again and tell me wether that solution is sufficent now :) I use <SEP> as separator there because it will allow you to have "," within the property values.

23:07, 19 October 2012