Skip to content
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

Create a validation file to check if record meets GBL community standards #47

Open
rmseifried opened this issue Feb 27, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@rmseifried
Copy link
Member

To be done once #24 is completed

Issue

There are JSON schema files in the geoblacklight repo that are used to validate individual metadata records and ensure that the data types are correct. It would be helpful for users to also be able to validate the presence of required fields and community standard fields (as determined based on the review in #24).

Suggested solution

See if the JSON schema offers a way to flag fields as required.

  • If yes, update the existing schema files
  • If not, create new schema files for the required and community standard lists
@rmseifried rmseifried added the enhancement New feature or request label Feb 27, 2023
@kgjenkins
Copy link
Collaborator

kgjenkins commented Feb 27, 2023

Yes, JSON Schema lets you specify which properties are required, and in fact we already have that set up in geoblacklight-schema-aardvark.json:

"required": ["id", "dct_title_s", "gbl_resourceClass_sm", "dct_accessRights_s", "gbl_mdVersion_s"]

@kgjenkins
Copy link
Collaborator

To check that an Aardvark record complies with a community-level minimum (beyond the absolute minimum), I think we'll want to set up a 2nd JSON Schema that requires the additional properties, and perhaps also applies further checks on the property values (like dates, etc.)

@rmseifried
Copy link
Member Author

Yes, JSON Schema lets you specify which properties are required, and in fact we already have that set up in geoblacklight-schema-aardvark.json:

"required": ["id", "dct_title_s", "gbl_resourceClass_sm", "dct_accessRights_s", "gbl_mdVersion_s"]

Just noticed the "required" list is missing gbl_mdModified_dt, which is now listed as a required field in the OGM documntation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Priority To Do
Development

No branches or pull requests

2 participants