spt2centroid.pl - Munge an SPT export into a WHOIS++ centroid
spt2centroid.pl <spt.txt >centroid.txt
The spt2centroid.pl program takes a bulk export produced by the Scout Portal Toolkit (SPT) software, and uses it to generate an RFC 1913 style WHOIS++ ``centroid''. Centroids are the WHOIS++ forward knowledge summary mechanism, and are supported by default in the ROADS software's cross-searching subsystem.
Note that the centroids produced by this program are based on the DUBLINCORESIMPLE ROADS template type, which encapsulates unqualified Dublin Core elements.
$ tail -1 bar.spt
Cities of the Red Night Burroughs is an awe-inspiring
poetic magician. I believe Cities of the Red Night is his
masterpiece - Christopher Isherwood
http://www.hyperreal.com/wsb/
1981 1981 1981 1981 0
(SPT records use the tab character as a delimiter - but the above has been word wrapped for readability)
$ tail -1 bar.spt | spt2centroid.pl # CENTROID-CHANGES Version-number: 1.0 Start-time: 1033386070 End-time: 1033386070 Case-Sensitive: FALSE Server-handle: # BEGIN TEMPLATE Template: DUBLINCORESIMPLE Any-Field: FALSE # BEGIN FIELD Field: Description Data: Isherwood -believe -poetic -masterpiece -his -of -is -I -Red -Night -an -magician -inspiring -Burroughs -Cities -Christopher -the -awe # END FIELD # BEGIN FIELD Field: Title Data: Night -of -Cities -the -Red # END FIELD # END TEMPLATE # END CENTROID-CHANGES
spt2iafa.pl, iafa2spt.pl, spt2cip.pl
Copyright (c) 2002, Martin Hamilton <imeshtk-utils@martinh.net> All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
It was developed at the Department of Computer Science at Loughborough University, as part of the joint JISC/NSF IMesh Toolkit project.
Martin Hamilton <imeshtk-utils@martinh.net>