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 1D7D5C95A for ; Fri, 4 May 2012 12:23:02 +0000 (UTC) Received: (qmail 82854 invoked by uid 500); 4 May 2012 12:23:02 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 82816 invoked by uid 500); 4 May 2012 12:23: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 82803 invoked by uid 99); 4 May 2012 12:23:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 12:23:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andy.seaborne.apache@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 12:22:54 +0000 Received: by bkcjm2 with SMTP id jm2so2343089bkc.6 for ; Fri, 04 May 2012 05:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=jetOWxGJIEHKHol4dwS14R6luf11R/alUNdb65q5dBQ=; b=AJ6pru63RKW80aJ1pxD8pllHHzyL4uftOIiJBDKp4J8kcU4MicIsi5zBHSdGDEs4rJ GsbDYZplu4NvjRujl8rUq6EeSEz37v3s5MAReQPyq6Cje08mKG6MNu/EtDDkta+S8hm0 jzFAfePC2LxxotZ1sax4GYxcVXbYdzplhf80rXftbf9Z/mOjOFUBxjaAsYOLdI9RmOi+ QP6r6+IEAZ66VbSaEyiFBsDjexsVhnVmmF+OyUO4Rraaj2Y9aRClJTvsUAJahIBiG9iN Mi243+AkBySVsh0KaCi7jSCiH9sFRgGp2P+7alCmUdQwIuieJ2j08c/rmbjZ5euL9/MF gP2w== Received: by 10.205.124.8 with SMTP id gm8mr2030424bkc.90.1336134152650; Fri, 04 May 2012 05:22:32 -0700 (PDT) Received: from [192.168.1.10] (cpc2-aztw23-2-0-cust671.aztw.cable.virginmedia.com. [94.171.234.160]) by mx.google.com with ESMTPS id g5sm16677319bkt.9.2012.05.04.05.22.31 (version=SSLv3 cipher=OTHER); Fri, 04 May 2012 05:22:31 -0700 (PDT) Sender: Andy Seaborne Message-ID: <4FA3CA06.2000600@apache.org> Date: Fri, 04 May 2012 13:22:30 +0100 From: Andy Seaborne User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: jena-dev@incubator.apache.org Subject: ARQ changes: Rework date/time handling Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I've just committed some changes to ARQ for how it handles dates and times (XSD dateTime, date, time, g*). This set of changes adds nothing at the moment - it switches from using Jena's XSDDateTime class to java's XMLGregorianCalendar). Jena's class is derived from Xerces but it does not provide arithmetic. That's the reason for this change - now date/time arithmetic, including durations, can be added to SPARQL processing. I kept using XSDDatetime for checking and parsing -- the Java library code adopts a "parse any lexical formlegal" approach so passing in a legal date and you mean a dateTime is not detected very nicely. Andy PS One Java bug : Java does not accept a gMonth with a timezine of "Z", which is legal, albeit unusual. A timezone of +00:00 is accepted, as is "Z" on gYear and other g*.