Closed sodre closed 3 years ago
Gate uses a plugin system to detect Document formats. We use the Content-Type passed by the browser/client to the document class. Here are the ones that are pre-installed:
mime-type | Documentation |
---|---|
text/plain | |
text/html | HTML |
text/xml | XML |
text/json | GateJSON |
application/fastinfoset | FastInfoset |
text/x-cochrane | Cochrane |
text/x-pubmed | PubMed |
text/x-mediawiki | MediaWiki |
text/x-json-twitter | |
text/x-json-datasift | DataSift |
According to GATE documentation:
This change entails adding the plugin dependencies to
build.gradle
, and finding a way to add the mime-type before we open the document.