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 8F90E9AA1 for ; Wed, 30 Nov 2011 16:12:02 +0000 (UTC) Received: (qmail 45845 invoked by uid 500); 30 Nov 2011 16:12:02 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 45760 invoked by uid 500); 30 Nov 2011 16:12:02 -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 45751 invoked by uid 99); 30 Nov 2011 16:12:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 16:12:02 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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, 30 Nov 2011 16:12:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3E8A6A9D53 for ; Wed, 30 Nov 2011 16:11:41 +0000 (UTC) Date: Wed, 30 Nov 2011 16:11:41 +0000 (UTC) From: "Dennis E. Hamilton (Commented) (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <437588023.26476.1322669501257.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1795957395.14071.1322343160259.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JENA-170) hexBinary whitespace issue 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/JENA-170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160118#comment-13160118 ] Dennis E. Hamilton commented on JENA-170: ----------------------------------------- @Andy Huh? xsd:base64Binary and xsd:base64Binary have a common value space but have no common type. Did you mean "xsd:hexBinary and xsd:base64Binary have a common value space but ..." > hexBinary whitespace issue > -------------------------- > > Key: JENA-170 > URL: https://issues.apache.org/jira/browse/JENA-170 > Project: Jena > Issue Type: Bug > Components: ARQ, Jena, RDF/XML > Environment: 2.6.4 > Reporter: Henry Story > Assignee: Andy Seaborne > Priority: Minor > > As I understand, initial and final white spaces in xsd:hexBinary in xml should be ignored > http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#hexBinary > > because of the whitespace facet. > With Jena 2.6.4 this is not the case, as shown by the test below. > I found that in Clerezza when using the graph api, so this is a problem even when one does not use SPARQL. > Removing the white space solves the proble. > xsd:hexBinary is already a very fragile encoding. Making it this fragile is bound to lead to issues in communication. > The same is true with the N3 encoding. > ----------------------------------------------------------------- > hjs@bblfish[0]$ cat q1.sparql > PREFIX : > PREFIX xsd: > SELECT ?S WHERE { > ?S :related "AAAA"^^xsd:hexBinary . > } > hjs@bblfish[0]$ cat c1.rdf > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> > > > AAAA > > > > hjs@bblfish[0]$ arq --query=q1.sparql --data=c1.rdf > ----- > | S | > ===== > ----- -- 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