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 E80B28392 for ; Fri, 12 Aug 2011 07:59:01 +0000 (UTC) Received: (qmail 89886 invoked by uid 500); 12 Aug 2011 07:59:01 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 89542 invoked by uid 500); 12 Aug 2011 07:58:57 -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 89262 invoked by uid 99); 12 Aug 2011 07:58:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 07:58:51 +0000 X-ASF-Spam-Status: No, hits=-2000.8 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; Fri, 12 Aug 2011 07:58:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 557E0B99F0 for ; Fri, 12 Aug 2011 07:58:27 +0000 (UTC) Date: Fri, 12 Aug 2011 07:58:27 +0000 (UTC) From: "Andy Seaborne (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <1816137515.32593.1313135907346.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1616221425.3575.1311077037959.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (JENA-83) Add a convenient method to create a typed literal without lang tag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Seaborne reassigned JENA-83: --------------------------------- Assignee: Andy Seaborne > Add a convenient method to create a typed literal without lang tag > ------------------------------------------------------------------ > > Key: JENA-83 > URL: https://issues.apache.org/jira/browse/JENA-83 > Project: Jena > Issue Type: Improvement > Components: Jena > Reporter: Laurent Pellegrino > Assignee: Andy Seaborne > Priority: Trivial > Labels: api, jena, literal > Attachments: JENA-83-r1148711.patch > > Original Estimate: 5m > Remaining Estimate: 5m > > It is possible to create typed literal from the Node class by calling Node createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated in the documentation (c.f. http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all typed literals there is no xml:Lang tag". It would be nice to provide a Node createLiteral(String lex, RDFDatatype dtype) method that delegates the call to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the right value for the lang parameter. Indeed, when I use the existing method to create typed literal without lang tag, I put null for the lang parameter and it works but I don't know if it is the right value (in the jena source code it seems that an empty String is used) and whether it can break something (the documentation give no information). Moreover it is really annoying to have to specify the useless lang parameter when we don't need it. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira