On Wed 04 Apr 2012, Kake <kake(a)earth.li> wrote:
On Tue 27 Mar 2012, Janet McKnight
<janetmck(a)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
This looks very useful to me! Thank you! (& I see you've fixed
St Catz :-)
I'm not 100% clear whether your script is just checking or
actually adding the extra category/locale itself. If the
former, it might be even usefuller if the output was a link
to editing the page so you could just click & go straight to
it & add the category/locale, but now I am just being picky. :)
Could the list of subset categories/locales that it uses be
somewhere readable & editable by e.g. me? Could it even be e.g.
a moderated page on the openguide?
Now the wrangling about what counts as 'Central' can begin... :-}
Jx