Re: [greenstone-users] Browsing Classifiers Help - Special Case

From Katherine Don
DateTue, 26 Apr 2005 15:54:51 +1200
Subject Re: [greenstone-users] Browsing Classifiers Help - Special Case
In-Reply-To (00ed01c54828$e7c77f30$ccaffea9-IOTRemote2)
Hi Nathan,

Without knowing what your data looks like, here are a couple of
suggestions. I am assuming that in order to get your metadata into
Greenstone, you will either create metadata.xml files or write a plugin
to process your log files. This means that you have some leeway to
create metadata that is useful for greenstone.

Note that I haven't tried these suggestions, but hopefully they will
work enough to get you started.

1. Create an IP metadata that looks like
Title|Authorized Communication|address
Title|Unauthorized Communication|address.
Each document will have multiple values for IP: the Title part will be
the same within a document, but the addresses will be different.
Then use Hierarchy classifier:
classify Hierarchy -metadata IP
Hierarchy splits a metadata value on the | symbol to create a hierarchy.

2. Assuming you have metadata Title, UnauthIP, AuthIP
AZList -metadata UnauthIP -sort Title -buttonname "Unauthorized
Communication"

Then in the format statement use eg. [Title]<br>[sibling:UnauthIP]
And the same for authorised IPs.
This gives you one entry per document, with all the IPs displayed.

Alternatively you could try Michael's GenericList classifier.

(http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/GenericList.pm.zip
Unzip this into your Greenstone perllib/classify directory, then delete
the C:Documents and Settings<Username>Application
DataGreenstoneGLIclassifiers.dat file (windows) or
<homedir>/.gli/classifiers.dat file (linux). )

classify GenericList -metadata Title/UnauthIP -buttonname "Unauthorized
Communication"

and in the format statement, display {If}{[numleafdocs],[Title],[UnauthIP]}.

this gives you one entry per IP.

see
http://www.greenstone.org/cgi-bin/library?e=p-en-faq-utfZz-8&a=p&p=faqcustomize#customizeformat
for more formatting details.

Regards,
Katherine Don

Nathan Einwechter wrote:
> I’ve used Greenstone in the past for digital library creation and am now
> trying to adapt it to take metadata about computer log files and display
> certain kinds of groupings etc. together. The main idea is that I have
> separated different types of network traffic into different files. Each
> file has attributed metadata covering a title, and then some other
> information such as certain IP addresses that occur that aren’t supposed
> to be there and another set of metadata values show the ones that ARE
> allowed.
>
>
>
> What I want to do is allow Greenstone to take this metadata and place it
> into browsing classifiers that are hierarchical in the fashion of
>
>
>
> Title -> Authorized Communication
>
> -> List of IP Addresses within this metadata
>
> -> Unauthorized Communication
>
> -> list of IP addresses within this metadata
>
>
>
> And then also another in the form of
>
>
>
> Unauthorized Communication
>
> -> Titles which contain a value for unauthorized communication
>
> -> IP Addresses within this metadata for a specific title
>
>
>
> And one similar for Authorized Communication as well.
>
>
>
> Anyone have any idea how I could do this? If no one is able to help me
> on this, I may end up just having to scrap the idea of using Greenstone
> and create my own html files, which I’d rather not do as we’re going to
> be cross-referencing these various communications with written incident
> reports etc.
>
>
>
> Thanks ahead of time for any help this group can provide.
>
>
>
> Yours truly,
>
> Nathan Einwechter
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users