You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by Apache Wiki <wi...@apache.org> on 2015/05/05 02:36:42 UTC

[Tika Wiki] Update of "TikaJAXRS" by ChrisMattmann

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tika Wiki" for change notification.

The "TikaJAXRS" page has been changed by ChrisMattmann:
https://wiki.apache.org/tika/TikaJAXRS?action=diff&rev1=33&rev2=34

Comment:
- add LanguageResource

  $ curl -X PUT -H "Content-Disposition: attachment; filename=foo.csv" --upload-file foo.csv http://localhost:9998/detect/stream
  }}}
  
+ == Language Resource ==
+ {{{
+ /language/stream
+ }}}
+ HTTP PUTs or POSTs a document to the LanguageIdentifier to identify its language. 
+ 
+ Default return is a string of the 2 character identified language.
+ 
+ Some Example calls with cURL:
+ 
+ === PUT a TXT file with English ```This is English!``` and get back en ==
+ {{{
+ $ curl -X PUT --data-binary @foo.txt http://localhost:9998/language/stream
+ en
+ }}}
+ 
+ == PUT a TXT file with French ```comme çi comme ça```and get back fr ==
+ {{{
+ curl -X PUT --data-binary @foo.txt http://localhost:9998/language/stream
+ }}}
  == Recursive Metadata and Content ==
  {{{
  /rmeta