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

Additional validation #25

Closed
2 of 3 tasks
cboettig opened this issue Nov 27, 2018 · 2 comments
Closed
2 of 3 tasks

Additional validation #25

cboettig opened this issue Nov 27, 2018 · 2 comments

Comments

@cboettig
Copy link
Member

cboettig commented Nov 27, 2018

EML validation imposes additional constraints beyond the XML schema validation. I believe these can be summarized as follows:

  • combination of id+system attributes on any element should be unique.
  • an element cannot have both child element <references>/<describes> and an attribute called id.
  • semantic annotation needs a subject: either from the id of its parent or as a child <references> of the annotation, but not both!

eml_validate() should enforce both of these conditions as well. (Should be possible as simple xpath?)

Migrated from ropensci/EML#244.

@mbjones
Copy link
Member

mbjones commented Nov 28, 2018

The validation rules in EML are now clearly listed here: https://github.com/NCEAS/eml/blob/BRANCH_EML_2_2/docs/eml-validation-refs.md

That document will be part of the EML 2.2.0 release specification.

@cboettig
Copy link
Member Author

closed by #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants