Skip to content

How can one validate EML documents in python? #23

Answered by mbjones
mbjones asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Suzanne --

The emlparser is a Java-based validation tool for which we created both a command line binding (in bash) and a web-service frontend. There is also an independent EML validator implemented in the R EML package. You should be able to automate the process through python through one of the following mechanisms:

  1. call a system process to launch the commandline validator (shipped with the EML release on github)
  2. call the web-service from within python (hosted on the KNB, or you can easily host your own copy from source)
  3. use Python-Java language bindings to call the Java classes directly
  4. Reimplement the validator in native python (it's not too complicated, and the R and Java languag…

Replies: 2 comments 7 replies

Comment options

mbjones
Jun 3, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by mbjones
Comment options

You must be logged in to vote
7 replies
@jusana
Comment options

@laurenwalker
Comment options

@jusana
Comment options

@servilla
Comment options

@jusana
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
metadata issues concerning metadata and standards python issues on python libraries and tools
4 participants