Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 20608 invoked from network); 23 Feb 2011 13:42:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2011 13:42:06 -0000 Received: (qmail 97657 invoked by uid 500); 23 Feb 2011 13:42:06 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 97593 invoked by uid 500); 23 Feb 2011 13:42:04 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 97558 invoked by uid 99); 23 Feb 2011 13:42:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 13:42:03 +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; Wed, 23 Feb 2011 13:42:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0D2A61B3C73 for ; Wed, 23 Feb 2011 13:41:42 +0000 (UTC) Date: Wed, 23 Feb 2011 13:41:42 +0000 (UTC) From: "Hasan (JIRA)" To: clerezza-dev@incubator.apache.org Message-ID: <438812865.10830.1298468502050.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1572515852.10454.1298456078795.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (CLEREZZA-437) RDF/JSON Serializer incorrectly serializes a bnode object which does not appear elsewhere as a subject MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLEREZZA-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hasan resolved CLEREZZA-437. ---------------------------- Resolution: Fixed > RDF/JSON Serializer incorrectly serializes a bnode object which does not appear elsewhere as a subject > ------------------------------------------------------------------------------------------------------ > > Key: CLEREZZA-437 > URL: https://issues.apache.org/jira/browse/CLEREZZA-437 > Project: Clerezza > Issue Type: Bug > Reporter: Hasan > Assignee: Hasan > > the following test fails: > mGraph = new SimpleMGraph(); > mGraph.add(new TripleImpl(new UriRef("http://example.org/node1"), > new UriRef("http://example.org/prop1"), new BNode())); > SerializingProvider provider = new RdfJsonSerializingProvider(); > ByteArrayOutputStream serializedGraph = new ByteArrayOutputStream(); > provider.serialize(serializedGraph, mGraph, "application/rdf+json"); > Assert.assertTrue(serializedGraph.toString().contains("_:")); > resolving this issue should also fix the incorrect format of bnode id. currently a bnode id resulting from this serializer contains a number after _: which is not allowed as a start character of the id. see http://n2.talis.com/wiki/RDF_JSON_Specification which refers indirectly to http://www.w3.org/TeamSubmission/turtle/ (current version of this spec is "Turtle - Terse RDF Triple Language, W3C Team Submission 14 January 2008"). The relevant section is http://www.w3.org/TeamSubmission/turtle/#nodeID -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira