Return-Path: X-Original-To: apmail-incubator-any23-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-any23-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7F36933F for ; Fri, 17 Feb 2012 16:10:23 +0000 (UTC) Received: (qmail 16210 invoked by uid 500); 17 Feb 2012 16:10:23 -0000 Delivered-To: apmail-incubator-any23-dev-archive@incubator.apache.org Received: (qmail 16133 invoked by uid 500); 17 Feb 2012 16:10:23 -0000 Mailing-List: contact any23-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: any23-dev@incubator.apache.org Delivered-To: mailing list any23-dev@incubator.apache.org Received: (qmail 16116 invoked by uid 99); 17 Feb 2012 16:10:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 16:10:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 16:10:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D4F5D1BC19D for ; Fri, 17 Feb 2012 16:09:59 +0000 (UTC) Date: Fri, 17 Feb 2012 16:09:59 +0000 (UTC) From: "Lewis John McGibbney (Updated) (JIRA)" To: any23-dev@incubator.apache.org Message-ID: <1379348139.51022.1329494999873.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <553687244.6228.1318447271972.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (ANY23-17) problem detecting media type for turtle content with comment at the top MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ANY23-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lewis John McGibbney updated ANY23-17: -------------------------------------- Affects Version/s: 0.7.0 Fix Version/s: 0.8.0 > 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 > Affects Versions: 0.7.0 > Reporter: Lewis John McGibbney > Fix For: 0.8.0 > > 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