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

Parth commented on TIKA-3104:
-----------------------------

Yeah the distinction does make sense. I don't have any real recommendation 
though. I am bad at naming stuff! :/ Btw I wanted to check for a key if the 
memgraph was of xml type. I guess I can do this pretty easily since there is an 
xml parser in tika?

Can you point me at an example code where a file url (uploaded to web) is used 
to detect the file type and then it's xml keys are examined? I was thinking of 
checking this key for now 
<key>processDescriptionString</key> to ensure that it is a memgraph with xml 
encoding.
 
So far I have:
 
Tika tika = new Tika()
URL url = new URL("my.uploaded.memgraph")
tika.detect(url)
//If application/xml then look for processDescriptionString key <-- need help 
with this bit.
 

> Detection of memgraph files exported from Xcode
> -----------------------------------------------
>
>                 Key: TIKA-3104
>                 URL: https://issues.apache.org/jira/browse/TIKA-3104
>             Project: Tika
>          Issue Type: Wish
>          Components: core
>    Affects Versions: 1.24
>            Reporter: Parth
>            Assignee: Tim Allison
>            Priority: Major
>              Labels: detection, features, new-parser
>             Fix For: 1.25
>
>         Attachments: DeepScroll_Example[4988].memgraph, 
> DeepScroll_Example[6314]_bplist.memgraph, 
> DeepScroll_Example[6314]_xml.memgraph, memgraph.xml, out.memgraph.json, 
> out.memgraph.xhtml
>
>
> I wanted to detect a memgraph file linked by a url. But currently detection 
> of memgraph file is not supported. I tried adding to custom-mimetypes but 
> that did not help.  
> <mime-info>
>  <mime-type type="application/memgraph">
>  <glob pattern="*.memgraph"/>
>  </mime-type>
> </mime-info>
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to