From dev-return-28038-apmail-forrest-dev-archive=forrest.apache.org@forrest.apache.org Fri Jul 06 21:06:33 2007 Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 57566 invoked from network); 6 Jul 2007 21:06:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 21:06:29 -0000 Received: (qmail 80991 invoked by uid 500); 6 Jul 2007 21:06:28 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 80942 invoked by uid 500); 6 Jul 2007 21:06:28 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 80917 invoked by uid 99); 6 Jul 2007 21:06:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 14:06:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 14:06:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 71C2F714168 for ; Fri, 6 Jul 2007 14:06:04 -0700 (PDT) Message-ID: <12874741.1183755964454.JavaMail.jira@brutus> Date: Fri, 6 Jul 2007 14:06:04 -0700 (PDT) From: "SinDoc (JIRA)" To: dev@forrest.apache.org Subject: [jira] Updated: (FOR-1018) Making sourcetypeaction work for RDF files In-Reply-To: <4805931.1183755184629.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FOR-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] SinDoc updated FOR-1018: ------------------------ Attachment: sourcetypeaction-rdf.patch As a workaround, I'd suggest to add handle RDF files a bit differently, that is continue parsing until the namespace of the current element event is different from that of RDF. Note that, this solution has worked so far for the SKOS plugin and it's also likely to work for FOAF and DOAP plugins but it certainly could be extended to cover more special cases. Please feel free to share your thought on this issue. > Making sourcetypeaction work for RDF files > ------------------------------------------ > > Key: FOR-1018 > URL: https://issues.apache.org/jira/browse/FOR-1018 > Project: Forrest > Issue Type: Sub-task > Components: Plugin: input.doap, Plugin: input.foaf, Plugin: input.skos > Affects Versions: 0.9-dev > Reporter: SinDoc > Priority: Minor > Fix For: 0.9-dev > > Attachments: sourcetypeaction-rdf.patch > > > In an effort to use the sourcetypeaction mechanism in the sitemap to intelligently prcess input files, I noticed that RDF/XML formats require extra processing for their action type to be determined. Obviously because neither doctype nor processing instruction events are likely to appear in RDF/XML formats and the only way to choose an action should be base on the namespace. The namespace of the root element doesn't help either in this case, as an RDF file might or not start with the rdf:RDF root element, therefore checking only the root element doesn't necessarily imply the actual format of the file. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.