-
Notifications
You must be signed in to change notification settings - Fork 1
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
DataFormatInfo no longer has mime type - where did it go? #32
Comments
data formats in the ontology have a property "hasMimetype" which links a format to the corresponding mimetype. Obviously only for those that have a mimetype - broad concepts such as "corpus format" do not have a mimetype. Same thing for file extension and documentation url. |
Ok, then I'll remove the code regarding mimetypes from the OMTD Maven Plugin. |
Does this mean that data format will have to be entered manually? |
Rather... well... what about data formats which are not in the ontology (i.e. otherFormat). Shouldn't in be possible to specify such information as mimetype and file extension at least for these? |
hmm, I'm confused as I thought when I migrated the maven plugin code to the latest model version I updated some things around mimetypes, although I guess I don't know if the info is used in any of the examples I've tested on so far, and hence if it ends up in the right place |
@greenwoodma as far as I can see, you just commented out the stuff and in some cases added a "todo" comment. |
@reckart was just looking at the code and certainly UimaDescriptorAnalyzer adds mimetype info, see line 263 onwards |
I find it a pity not to have already some mapping from mimetype to data format when it's known - so, if the googlesheet can be used for the mappings, pls let's do; just tell me how I can help. |
@greenwoodma no, it doesn't - that code is ineffective. It tries to look up the data format in the controlled vocabulary using the mime type. Data format identifier example: "http://w3id.org/meta-share/omtd-share/Conll2000" Mime type example: "text/tab-separated-values" It will obviously never match. |
@pennyl67 the new format could however, have a different mime type and file extension... |
@pennyl67 @greenwoodma I am presently working on the code, seeing how I can add a UIMA-type -> OMTD-SHARE type mapping. Once I worked that out, I might also add something like this for mime types. |
@reckart ah, sorry. I clearly misunderstood how things had changed between the two model versions |
@reckart yes, indeed for new data formats we need more info than just a name (a documentation url, at least! to me that's more important than just a mimetype, if it's not a standard mimetype). |
MIME type mapping has been added: #34 |
DataFormatInfo no longer has a mime type info (and file extension) in OMTD-SHARE 3.0.2.
@pennyl67 where did they go?
The text was updated successfully, but these errors were encountered: