Tell me more ×
Libraries & Information Science Stack Exchange is a question and answer site for librarians and library professionals. It's 100% free, no registration required.

I am looking a tool that given a WARC file produces and presents a characterization of the contents included in this archive.

The goal is to have a quick broad characterization of a collection of web resources.

share|improve this question
As this question is about characterisation (and by association, digital preservation) as much as web archiving, could you add a digital-preservation tag? – mopennock Nov 27 '12 at 16:45

4 Answers

up vote 8 down vote accepted

You might want to take a look at some of the UK Web Archive code. There are examples of converting a WARC to a ZIP and also mounting as a file system using FUSE-J, but these are not used at the moment (the former because the warc-to-zip conversion is not finished, the latter because it is too slow for our purposes). Our current preference is for running the WARC characterisation on Hadoop, and so we use code specific to that platform to dissect the WARC. We also started writing extensions to Apache Tika to make it able to parse WARC files, but these have not yet been polished up and made easily available.

However, if you can unpack the WARC, you can use any characterisation tool to investigate the content of your WARC such as C3PO, one of the Tika wrappers from SPRUCE, or roll your own using FITS or Apache Tika stand-alone.

share|improve this answer
1  
I just want to make sure, it is clear. c3po is not a characterisation tool. It is a profiler tool that gives you an overview of the content and allows you to analyse it a bit – peshkira Dec 1 '12 at 14:06

Those 2 links to sbforge.org are not exactly up to date yet (unfortunately).

The JHove2 WARC(/ARC/GZip) modules were part of a one year project funded by the IIPC.

The WARC module which Andy linked to should be production ready. There only remains the minor details of adding some unittests and merging with the main JHove2 repository.

The latest binary is available from here https://bitbucket.org/nclarkekb/jhove2-iipc/downloads

The following link should include some documentation on configuring jhove2 with WARC on your system. https://sbforge.org/display/NAS/JHove2+modules+-+configuration

To be clear, the JHove2 WARC modules offer the characterization you are looking for but only to the extent that there are JHove2 modules to cover the formats. So JHove2 will identify and characterization your WARC files and the content of your WARC files but only for the formats which are supported.

Regards JWAT-Tools, those are more lightweight tools for validating only the WARC(ARC/GZip) files but not their content. The payload is only validated so far as to check digests and other headers which are present in the WARC header.

If you have any other questions I will be happy to clarify the WARC work I have done for the IIPC.

share|improve this answer
Thanks for lending us your expertise! :) – jonsca Nov 30 '12 at 0:50

I bookmarked these some months ago, but I've not checked recent updates on their development:

share|improve this answer
I think you may be able to build the current version from here: bitbucket.org/nclarkekb/jhove2-iipc – Andy Jackson Nov 27 '12 at 13:01
1  
Actually, the closely related JWAT-tools might be your best bet: sbforge.org/display/JWAT/Running+JWAT-Tools – Andy Jackson Nov 27 '12 at 20:10

how malsane could be the idea to characterize the content payload while being downloaded?

sure it'll be a slow process, but using wget-lua should not be difficult to write some rules to spawn an external process (fits, jhove, whatever) and save back the result inside the warc.

the output should be saved under a resource record, with a namespace or a selfdefined uri

share|improve this answer
That would be quite neat. Doesn't WARC keep a log of mimetypes of files grabbed? Would that be enough for a rough look? – Peter Cliff Nov 28 '12 at 11:07
1  
The MIME types in the usual WARC records are those declared by the server. It's useful, but it's reliability is very variable. – Andy Jackson Nov 29 '12 at 16:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.