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 329AA63FD for ; Mon, 20 Jun 2011 13:13:35 +0000 (UTC) Received: (qmail 94167 invoked by uid 500); 20 Jun 2011 13:13:35 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 94146 invoked by uid 500); 20 Jun 2011 13:13:34 -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 94138 invoked by uid 99); 20 Jun 2011 13:13:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 13:13:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of castagna.lists@googlemail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 13:13:29 +0000 Received: by wwg12 with SMTP id 12so2138002wwg.0 for ; Mon, 20 Jun 2011 06:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=8172A4grteTYDPg0+6Qm9LwAq+srIKDaJT50YgLfug8=; b=iB51WElSSmoywzRyPIawJfeyJe9cp0ww+8hnJ+vdtPrZAIGsSXlHYiuyz5FRpgDgMx oc0/XtEcvwX8KJL5kIyuTCGIXqdwtgVY0ugoV4i5qDbcZe+05hX2tfDmZVMwPHelwPjJ cgPYf0NyvOhmHsSksKA6zWVlnKwFs//d1Hpog= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=RIJ2PzgBQXoC+TClQq45KgOH4kI4cugLiUJeL3MNOG6zbdURPJ2ZjChj64MoTOIwKY 5WUJPF3JefwdxRHh0q8tTyDN18OfrVctF1u5+UinkqsgTug73bg8vV11nxnm3doeWFyx re79xbAkBwPGZnqmS5yC2STXYdvcmr2GrCmzw= Received: by 10.227.55.77 with SMTP id t13mr3651008wbg.39.1308575588141; Mon, 20 Jun 2011 06:13:08 -0700 (PDT) Received: from [192.168.1.2] (80-42-200-158.dynamic.dsl.as9105.com [80.42.200.158]) by mx.google.com with ESMTPS id d19sm3173941wbh.42.2011.06.20.06.13.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Jun 2011 06:13:06 -0700 (PDT) Message-ID: <4DFF4760.1050500@googlemail.com> Date: Mon, 20 Jun 2011 14:13:04 +0100 From: Paolo Castagna User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: jena-dev@incubator.apache.org Subject: Re: Literal Canonicalization References: <09E23199-0CCF-410A-A0FD-8A1375C5A3E5@bbn.com> In-Reply-To: <09E23199-0CCF-410A-A0FD-8A1375C5A3E5@bbn.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Ian. The existing documentation on this is here: - http://www.openjena.org/wiki/TDB/ValueCanonicalization The code, here: http://svn.apache.org/repos/asf/incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/store/NodeId.java See these two methods: - public static NodeId inline(Node node) - public static Node extract(NodeId nodeId) See also: - DateTimeNode.java - IntegerNode.java - DecimalNode.java I hope this helps, Paolo Ian Emmons wrote: > I recall reading some time ago that TDB transforms literals (and particularly their data types) into a canonical form upon insert, and/or that it can "promote" literal datatypes during comparisons (so that, e.g., an xsd:int and an xsd:long can compare equal). Is there any documentation on this? Or failing that, can you point me to the appropriate portion of the code? > > Thanks, > > Ian Emmons > BBN Technologies