bagit-profiles / bagit-profiles-specification

https://bagit-profiles.github.io/bagit-profiles-specification/
Other
35 stars 11 forks source link

Profile validation #9

Open awead opened 8 years ago

awead commented 8 years ago

How should profiles be validated? There should be a way to check if your bag conforms to a given profile, which also implies that it's also conforming to the BagIt structure in general, but that process should be separate from validation which includes verifying checksums.

So in other words, tell me if I have a bag that matches a given profile, but don't do the checksums because that might take longer, and I'd do that with a separate process.

This relate to work ongoing in Fedora for exporting and importing bags.

ruebot commented 8 years ago

@awead we have a BagIt Profile Validator here: https://github.com/ruebot/bagit-profiles-validator

It's been a while since I used it, and I can't honestly remember if the validator just validates conformance to the profile, or conformance to the profile + a valid bag.

awead commented 8 years ago

I think after earlier discussion today, it only tests conformity of the profile. In other words, is my defined json profile file expressing a valid BagIt profile. So we're looking at building checks into the Fedora component that would verify if the bag itself conforms to the profile. Although, I'd be nice if this did too! 😄

jscancella commented 4 years ago

I know this is an old issue, but you could use https://github.com/jscancella/bagging/blob/master/README.md#how-to-verify-against-a-profile