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

added MIME-Types for a selection of formats #261

Merged
merged 1 commit into from Jan 9, 2017
Merged

added MIME-Types for a selection of formats #261

merged 1 commit into from Jan 9, 2017

Conversation

ostueker
Copy link
Contributor

@ostueker ostueker commented Jan 9, 2017

For my own project I need to detect MIME types of chemical file types.
I found CDK filetype detection to work much better than a combination of Apache Tika + custom MIME types taken from the (Chemical MIME project)[1], however the CDK doesn't know the MIME types of many formats.

I've added the MIME types for all the filetypes that I expect to encounter in this PR. I would be willing to add MIME types (from Chemical MIME) for further formats, as well.

Most of these MIME types originate from the (Chemical MIME project)[1].
MIME type chemical/x-nwchem-output for NWChem output files was taken
from [2] (slide 12).

[1] http://chemical-mime.sourceforge.net/chemical-mime-data.html
[2] http://ecce.emsl.pnl.gov/docs/code_reg_slides.pdf

Most of these MIME types originate from the (Chemical MIME project)[1].
MIME type `chemical/x-nwchem-output` for NWChem output files was taken
from [2] (slide 12).

[1] http://chemical-mime.sourceforge.net/chemical-mime-data.html
[2] http://ecce.emsl.pnl.gov/docs/code_reg_slides.pdf
@johnmay
Copy link
Member

johnmay commented Jan 9, 2017

I heard recently the canonical list will now be wikipedia/data: https://en.wikipedia.org/wiki/Chemical_file_format#The_Chemical_MIME_Project

Anyways looks good just check then will merge

@johnmay johnmay merged commit 44cbd24 into cdk:master Jan 9, 2017
@johnmay
Copy link
Member

johnmay commented Jan 9, 2017

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants