Return-Path: X-Original-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-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 3F51C62E8 for ; Thu, 16 Jun 2011 21:29:34 +0000 (UTC) Received: (qmail 78412 invoked by uid 500); 16 Jun 2011 21:28:39 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 78026 invoked by uid 500); 16 Jun 2011 21:28:38 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 77690 invoked by uid 99); 16 Jun 2011 21:18:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 21:18:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.222.232.117] (HELO echo.justhostme.co.uk) (83.222.232.117) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 21:18:22 +0000 Received: from cpc2-aztw23-2-0-cust840.aztw.cable.virginmedia.com ([94.171.235.73] helo=[192.168.1.10]) by echo.justhostme.co.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QXJwu-0000Ka-Vu for jena-dev@incubator.apache.org; Thu, 16 Jun 2011 22:18:01 +0100 Message-ID: <4DFA7306.2060108@epimorphics.com> Date: Thu, 16 Jun 2011 22:17:58 +0100 From: Andy Seaborne User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: jena-dev@incubator.apache.org Subject: Re: riotcmd.infer: from N-Triples to N-Quads References: <4DF8D909.6030108@googlemail.com> In-Reply-To: <4DF8D909.6030108@googlemail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - echo.justhostme.co.uk X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - epimorphics.com X-Virus-Checked: Checked by ClamAV on apache.org On 15/06/11 17:08, Paolo Castagna wrote: > Hi, > today, I needed to use RIOT infer command with an N-Quads file. > > This is what I did to being able to use an N-Quads instead of > an N-Triples file: > > - Sink sink = new SinkTripleOutput(System.out) ; > - sink = InfFactory.infTriples(sink, vocab) ; > - LangRIOT parser = RiotReader.createParserNTriples(System.in, sink) ; > + Sink sink = new SinkQuadOutput(System.out) ; > + sink = InfFactory.infQuads(sink, vocab) ; > + LangRIOT parser = RiotReader.createParserNQuads(System.in, sink) ; > > Everything was already there, thank you Andy. > > Could we do this and support N-Quads with RIOT infer command? Sure - file a JIRA so it doesn't get lost. NQ is a superset of NT. (Actually, infQuads is a post inf expansion engine addition) Andy > > Paolo