Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7DD56200D3C for ; Tue, 31 Oct 2017 03:38:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7C710160BF9; Tue, 31 Oct 2017 02:38:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C18E8160BE4 for ; Tue, 31 Oct 2017 03:38:07 +0100 (CET) Received: (qmail 33666 invoked by uid 500); 31 Oct 2017 02:38:06 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33655 invoked by uid 99); 31 Oct 2017 02:38:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2017 02:38:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 14CBE18077F for ; Tue, 31 Oct 2017 02:38:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id OwQWUXBKBY6T for ; Tue, 31 Oct 2017 02:38:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 85C7E60F18 for ; Tue, 31 Oct 2017 02:38:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CCEBFE0B20 for ; Tue, 31 Oct 2017 02:38:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id BE78A212F7 for ; Tue, 31 Oct 2017 02:38:02 +0000 (UTC) Date: Tue, 31 Oct 2017 02:38:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COMMONSRDF-66) JenaDatasetImpl.toString() throws RIOT exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 31 Oct 2017 02:38:08 -0000 [ https://issues.apache.org/jira/browse/COMMONSRDF-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226140#comment-16226140 ] ASF GitHub Bot commented on COMMONSRDF-66: ------------------------------------------ Github user wikier commented on a diff in the pull request: https://github.com/apache/commons-rdf/pull/42#discussion_r147883486 --- Diff: jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java --- @@ -149,7 +149,7 @@ public long size() { @Override public String toString() { final StringWriter sw = new StringWriter(); - RDFDataMgr.write(sw, graph, Lang.NT); --- End diff -- I'd keep both, parameter and attribute, as `datasetGraph`. > JenaDatasetImpl.toString() throws RIOT exception > ------------------------------------------------ > > Key: COMMONSRDF-66 > URL: https://issues.apache.org/jira/browse/COMMONSRDF-66 > Project: Apache Commons RDF > Issue Type: Bug > Components: jena > Affects Versions: 0.3.0 > Reporter: Christopher Johnson > > Occurs from this method [https://github.com/apache/commons-rdf/blob/master/jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java#L152] on instantiation: > The exception message is "No dataset writer for N-Triples/utf-8". > The source is RDFWriterRegistry that builds a registryDataset HashMap of 17 +Dataset+ RDFFormats that does not include this serialization. The registryGraph HashMap has 25 RDFFormats that does include "N-Triples/utf-8". > No exception is thrown if Lang.NQUADS is set in the toString() method. -- This message was sent by Atlassian JIRA (v6.4.14#64029)