forked from bitsgalore/jprofile
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added minimalistic test profile and schema
- Loading branch information
1 parent
a46b612
commit 07c3c33
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
|
||
<profile> | ||
|
||
<!-- Test | ||
--> | ||
|
||
<!-- Names of Schematron schemas for master, access and target images | ||
NOTE: names only, not full paths (default location! --> | ||
|
||
<schemaMaster>test.sch</schemaMaster> | ||
<schemaAccess>test.sch</schemaAccess> | ||
<schemaTargetRGB>test.sch</schemaTargetRGB> | ||
<schemaTargetGray>test.sch</schemaTargetGray> | ||
<schemaTargetAccessRGB>test.sch</schemaTargetAccessRGB> | ||
<schemaTargetAccessGray>test.sch</schemaTargetAccessGray> | ||
|
||
</profile> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Schematron jpylyzer schema: verify if JP2 conforms to | ||
KB's profile for access copies (A.K.A. KB_ACCESS_LOSSY_01/01/2015) | ||
Johan van der Knijff, KB / National Library of the Netherlands , 13 October 2017. | ||
Additional checks for ICC profile and resolution | ||
--> | ||
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron"> | ||
<s:ns uri="http://openpreservation.org/ns/jpylyzer/v2/" prefix="j"/> | ||
|
||
<s:pattern> | ||
<s:title>KB access JP2 2015, generic (no colour/resolution requirements)</s:title> | ||
|
||
<!-- check that the file element exists --> | ||
<s:rule context="/"> | ||
<s:assert test="j:file">no file element found</s:assert> | ||
</s:rule> | ||
|
||
<!-- top-level checks --> | ||
<s:rule context="/j:file"> | ||
|
||
<!-- check that success value equals 'True' --> | ||
<s:assert test="j:statusInfo/j:success = 'True'">jpylyzer did not run successfully</s:assert> | ||
|
||
<!-- check that isValid element exists with the text 'True' --> | ||
<s:assert test="j:isValid = 'True'">not valid JP2</s:assert> | ||
</s:rule> | ||
|
||
</s:pattern> | ||
</s:schema> | ||
|