[ 
https://issues.apache.org/jira/browse/TIKA-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12779798#action_12779798
 ] 

Chris A. Mattmann commented on TIKA-309:
----------------------------------------

Yuan-Fang,

There is a unit test that should correctly determine if this is working on your 
system or not. Does: 
/lucene/tika/trunk/tika-core/src/test/java/org/apache/tika/mime/MimeDetectionTest.java
  

Pass on your system?

Regarding #1 and #2 above, I was assuming you could pass in a regex 
pattern->MediaType map to NameDetector. If you didn't want to pass that in, you 
may want to take a look at the other Detectors in the o.a.t.detect package. For 
#2, if the test above passes, it should prove that InputStream detection 
properly works?

Cheers,
Chris


> Mime type application/rdf+xml not correctly detected
> ----------------------------------------------------
>
>                 Key: TIKA-309
>                 URL: https://issues.apache.org/jira/browse/TIKA-309
>             Project: Tika
>          Issue Type: Bug
>          Components: mime
>    Affects Versions: 0.5
>            Reporter: Yuan-Fang Li
>            Assignee: Chris A. Mattmann
>            Priority: Minor
>             Fix For: 0.5
>
>
> Mime type detector using AutoDetectParser and Metadata returns 
> "application/xml" for the URL http://www.w3.org/2002/07/owl#, where it should 
> be "application/rdf+xml". The correct mime type is also suggested here: 
> http://www.w3.org/TR/owl-ref/#MIMEType.
> P.S., Tika was downloaded from svn and built with Maven last week.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to