-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add additional validate method for tag files * Simplify init of Other-Info values * Use lower-hypen formatting when storing field names for tag files * Replace sections set with metadataFields keyset * Add some generic method for validating from a BagProfile * checkRequiredTagsExist - checks that all tag files in a profile exist * validateTag - validates given fields for a tag file for a profile * Additional coverage for BagProfile#metadataFields * Create method for validating all BagIt tag files * Add a non-BagConfig way of validating conformance to a BagProfile. This requires the user to pass the configuration of the tag files in as a Map<String, Map<String, String>> which is the same data structure which the BagConfig uses. Resolves #18
- Loading branch information
1 parent
68b5158
commit 1cb7e1c
Showing
5 changed files
with
143 additions
and
38 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
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
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
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
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,30 @@ | ||
{ | ||
"BagIt-Profile-Info":{ | ||
"BagIt-Profile-Identifier":"http://fedora.info/profile.json", | ||
"BagIt-Profile-Version":"1.3.0", | ||
"Source-Organization":"Duraspace", | ||
"Contact-Name":"Fedo Radmin", | ||
"Contact-Email":"fedo@example.org", | ||
"External-Description":"Test Bag Profile for Fedora.", | ||
"Version":"0.2" | ||
}, | ||
"Manifests-Required":[ | ||
"md5", "sha1", "sha256", "sha512" | ||
], | ||
"Manifests-Allowed": [], | ||
"Allow-Fetch.txt":false, | ||
"Serialization":"optional", | ||
"Accept-Serialization": [ | ||
"application/tar" | ||
], | ||
"Tag-Manifests-Required":[ | ||
"sha1", "sha256", "sha512" | ||
], | ||
"Tag-Manifests-Allowed": [], | ||
"Tag-Files-Required": [], | ||
"Tag-Files-Allowed": ["*"], | ||
"Accept-BagIt-Version":[ | ||
"0.97", | ||
"1.0" | ||
] | ||
} |