Return-Path: X-Original-To: apmail-clerezza-dev-archive@www.apache.org Delivered-To: apmail-clerezza-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCAECF619 for ; Wed, 17 Jul 2013 04:04:00 +0000 (UTC) Received: (qmail 13486 invoked by uid 500); 17 Jul 2013 04:04:00 -0000 Delivered-To: apmail-clerezza-dev-archive@clerezza.apache.org Received: (qmail 13406 invoked by uid 500); 17 Jul 2013 04:03:56 -0000 Mailing-List: contact dev-help@clerezza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@clerezza.apache.org Delivered-To: mailing list dev@clerezza.apache.org Received: (qmail 13398 invoked by uid 99); 17 Jul 2013 04:03:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jul 2013 04:03:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.212.48] (HELO mail-vb0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jul 2013 04:03:49 +0000 Received: by mail-vb0-f48.google.com with SMTP id w15so1015172vbf.21 for ; Tue, 16 Jul 2013 21:03:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=V94utw22FG5zNsh+G17bmFFgxKkp/VLq9ZEqFXev05o=; b=OcPYSmYjHFiGQrZF/qQwTwK2YvWJEE0ZfJ/SRjytGHMuMX9RISQsLs9iYgv9oHNK6r SSQ/dEdIEUX9CAHGGGGQRcZgSFfwsSZheTq/0KVXRhGK3FxvLXH7PIAvqFePCm8F0h4O vaUMW4N46fSqOrIDt8c5CcNM8N7SS2VOEnml+7xJxLugb0eK5mGUUXCNwuWVv6Ge3Kme yJ9I43hSnHl7jozGrjWkGi0X2TW4naNxA+KFvI5m2aKabOvV70d5bWrPioJorcCaLoVf ZkfJWfodcR/JIYxpwiOn9wafkzK9MAOo+/4FM6VlZHbQUG4icBCclglf72XKicyekkHl Z0LA== MIME-Version: 1.0 X-Received: by 10.52.64.146 with SMTP id o18mr1258694vds.14.1374033786783; Tue, 16 Jul 2013 21:03:06 -0700 (PDT) Received: by 10.220.227.197 with HTTP; Tue, 16 Jul 2013 21:03:06 -0700 (PDT) X-Originating-IP: [84.72.54.15] In-Reply-To: References: Date: Wed, 17 Jul 2013 06:03:06 +0200 Message-ID: Subject: Re: Sparql: handle queries and update requests together or separately? From: Hasan Hasan To: dev@clerezza.apache.org Content-Type: multipart/alternative; boundary=20cf3079bcb6c558bd04e1ad2bf0 X-Gm-Message-State: ALoCoQlDZEzOu57XHPmKHf9H8I9DvBtKsLrqJGsrMSMheedmZfNAfVXfkI1ligucEvwXwHTyXZVc X-Virus-Checked: Checked by ClamAV on apache.org --20cf3079bcb6c558bd04e1ad2bf0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Reto On Tue, Jul 16, 2013 at 4:55 PM, Reto Bachmann-Gm=FCr wro= te: > Hi, > > The recent changes towards full sparql 1.1 treat queries and update > requests together. That is we have one method that accepts both. Do you mean HTTP method? > I'm > wondering if this makes sense. One reason against this approach is > that the Sparql protocol mandates different ways for submitting > queries and update requests. If HTTP method is meant here, I can only find by quickly run through the doc http://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#protocol that we may want to use HTTP Get for the query and POST for the update. > But if in clerezza queries end up being > handled by a method than is also capable of updates it would be hard > to enforce that no update comes in disguise of a query. (Not that this > would be a security issue, but it would be against standard and best > practices to update a graph on a get request). > If that is the case, I think we can add or modify function in the preparser to get information about whether it is an update or query, and react accordingly. Cheers Hasan > > Cheers, > Reto > --20cf3079bcb6c558bd04e1ad2bf0--