-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does JHOVE need a warning Message type? #638
Comments
|
I think that sounds really useful. In Archivematica we could capture the output in the METS and users could use that information in consideration of long term preservation. |
|
Interesting question Carl. Fairly analogous to logging modules in programming languages.
Do you have examples of warnings DPF manager outputs?
If warnings translate from keywords like SHOULD (this format should do something according to the specification but it’s not) and SHOULD NOT (this format is doing something that according to the specification it shouldn’t) then warning would make a lot of sense to me. IDK does that make sense for others? There may be other cases too others can highlight?
That being said, the one question that the framing of the DPF definition of a warning raises for me, that might be worth pondering, is that it sounds like opinion could/would be part of that, so how is that managed and built for in the long-run and sustainably where opinions differ, are debated, and can change in time?
… On 7 Jul 2020, at 07:55, Carl Wilson ***@***.***> wrote:
Currently, JHOVE supports error and info type messages. The first category is for validation failures while the second category covers everything else in the reports. I'm currently working on a JHOVE module for TIFF files based on DPF manager which supports Error, Info and Warning messages. Warnings are for features that, while valid, are undesirable for long term preservation.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
If Errors are based upon a file format specification, what are the warnings based on, who decides what is undesirable? I agree with Ross, opinions could creep in. |
|
Thanks for the quick answers all. I share some of the misgivings around "opinions" but have one or two real cases that highlight where the concept might be useful. JHOVE currently will issue an info message when processing a font heavy PDF informing the user it effectively gave up on font processing. One DPF Manager warning is for use of deprecated tags in a TIFF, this is currently downgraded to an info message by my tentative DPF manager module. These don't feel as though they belong at the same severity level. If the user could do something to configure the handling of messages, e.g. ignore warnings or even specific warnings might that be of more interest? @ross-spencer the SHOULD / SHOULD NOT cases were specifically what I had in mind when initially pondering this. @thorsted these would still come from specifications. @sromkey I'll take that as a +1 with support :) |
I don't know what other programming languages do this, but in Flake8 Python conformance, you can create an It's definitely effective from a code-perspective but then code can be more opinionated. When something finally chooses not to work it won't. I'd definitely say a +0.5 here for my |
|
The current lack of a WARNING type also caused some problems in EPUBCheck (which optionally uses the JHOVE schema, although it looks by now they want to get rid of it), see below issue: I suppose this will also affect JHOVE's EPUB module (which is based on EPUBCheck). |
|
For the record, the Jhove schema (https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd) HAS a warning level of severity. I requested this addition so that epubcheck can output its information following jhove schema. It can be obtain using the So to add a warning level to Jhove, there is only the need to modify the code to output it : the schema is ready for it. The question of when to generate it remains to be solved... |
2 similar comments
|
For the record, the Jhove schema (https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd) HAS a warning level of severity. I requested this addition so that epubcheck can output its information following jhove schema. It can be obtain using the So to add a warning level to Jhove, there is only the need to modify the code to output it : the schema is ready for it. The question of when to generate it remains to be solved... |
|
For the record, the Jhove schema (https://schema.openpreservation.org/ois/xml/xsd/jhove/jhove.xsd) HAS a warning level of severity. I requested this addition so that epubcheck can output its information following jhove schema. It can be obtain using the So to add a warning level to Jhove, there is only the need to modify the code to output it : the schema is ready for it. The question of when to generate it remains to be solved... |
|
I just noticed @bitsgalore's comment while checking for new EPUB module issues. As it happens the update I just did caused me to look at the messages for EPUBCheck. Indeed, right now warnings are awkwardly funneled into errors in the EPUB JHOVE module, which is less than ideal. Interestingly though, EPUBCheck now uses the latest JHOVE schema and defines them as "warnings"! I basically had to undo this to make it a JHOVE module. I think marking these as warnings would be clearer, though I wonder if the EPUBCheck definition will map exactly to the one applied by JHOVE: http://kb.daisy.org/publishing/docs/epub/validation/epubcheck.html#messages jhove/jhove-ext-modules/src/main/java/org/ithaka/portico/jhove/module/EpubModule.java Lines 578 to 582 in 47f077f
Given that the JHOVE schema already supports it, I think it would be consistent for the JHOVE code to allow it i.e. an extremely belated +1! |
Currently, JHOVE supports error and info type messages. The first category is for validation failures while the second category covers everything else in the reports. I'm currently working on a JHOVE module for TIFF files based on DPF manager which supports Error, Info and Warning messages. Warnings are for features that, while valid, are undesirable for long term preservation.
The text was updated successfully, but these errors were encountered: