On Tue 27 Mar 2012, Janet McKnight janetmck@chiark.greenend.org.uk wrote:
Would it be possible to run some sort of script to automatically add the extra superset categories where there is a pure subset (rather than relying on people remembering to do it manually)?
I've written a command line script to check this manually, but it does require me to have a list of the supersets and subsets. I experimented with a version that would automatically look for categories that were members of other categories, but it was very very slow due to needing lots of separate database accesses. So for now the list needs to be manually created. The script produces output like this:
CATEGORIES: Things in Post Offices but not in Postal Services: nothing! Things in Wetherspoons Pubs but not in Pubs: nothing! Things in Colleges but not in The University: St. Catherine's College
LOCALES: Things in Broad Street but not in Central: nothing! Things in Carfax but not in Central: nothing! Things in Cornmarket but not in Central: nothing! Things in George Street but not in Central: nothing! Things in High Street but not in Central: nothing! Things in Merton Street but not in Central: nothing! Things in Turl Street but not in Central: nothing!
Does that look useful? If so then perhaps Dom would be OK with me running it as a (nightly?) cron job and having the output go to somewhere world-visible? The script is subsets.pl in my home directory on urchin.
Kake