You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Lewis John McGibbney (Updated) (JIRA)" <ji...@apache.org> on 2011/10/12 21:21:12 UTC

[jira] [Updated] (ANY23-17) problem detecting media type for turtle content with comment at the top

     [ https://issues.apache.org/jira/browse/ANY23-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lewis John McGibbney updated ANY23-17:
--------------------------------------

    Attachment: sigma.config.turtle
    
> problem detecting media type for turtle content with comment at the top 
> ------------------------------------------------------------------------
>
>                 Key: ANY23-17
>                 URL: https://issues.apache.org/jira/browse/ANY23-17
>             Project: Apache Any23
>          Issue Type: Bug
>            Reporter: Lewis John McGibbney
>         Attachments: sigma.config.turtle
>
>
> What steps will reproduce the problem?
> 1. paste the content of this file into any23.org
> 2. press extract
> What is the expected output? What do you see instead?
> triples 
> but instead you will see
> No suitable extractor found for this media type
> What version of the product are you using?
> 0.6.1
> Please provide any additional information below.
> So the problem is if there is a long comment at the top of the file 
> If you repeat the operation but delete the last word "sections" from the first line then it works fine
> The proposed solution:
> It might be worth to do 
> If no suitable extractor were found at the first  place
> try to remove blank lines and turtle style comments
> from the source
> skip line if it match
> line.matches("^\\s+$")   // remove empty line
> or
> line.matches("^\\s*#.*$")// remove line which starts with # or white space and # 
> and then check for turtle mime type again    

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira