From: Hull, R. E <Rya...@pn...> - 2011-01-25 00:14:16
|
I am doing some work that requires me to get all distinct values for a given property across all wiki pages. I see in the API that we have access to SMWSQLStore2::getPropertyValues but this only returns unique property values. If a property is listed with a given value more than once, I want to know that. The only method we've found to do something like this is to use getAllPropertySubjects() to find the wiki pages that use a given property, then iterate over the text of each wiki page to find each property value. I don't like this solution. Is there anything cleaner that we've missed? Thanks, Ryan |