Return-Path: X-Original-To: apmail-incubator-stanbol-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-stanbol-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 8389F616E for ; Tue, 2 Aug 2011 11:21:26 +0000 (UTC) Received: (qmail 12389 invoked by uid 500); 2 Aug 2011 11:21:25 -0000 Delivered-To: apmail-incubator-stanbol-dev-archive@incubator.apache.org Received: (qmail 12267 invoked by uid 500); 2 Aug 2011 11:21:22 -0000 Mailing-List: contact stanbol-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stanbol-dev@incubator.apache.org Delivered-To: mailing list stanbol-dev@incubator.apache.org Received: (qmail 12253 invoked by uid 99); 2 Aug 2011 11:21:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 11:21:21 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [82.153.216.21] (HELO mailrelay.gossinteractive.com) (82.153.216.21) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 11:21:14 +0000 Received: from Paperboy.lan.gossinteractive.com ([10.10.10.229] RDNS failed) by mailrelay.gossinteractive.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 2 Aug 2011 12:17:14 +0100 Content-class: urn:content-classes:message Subject: RE: Delete, Update locally cached entities MIME-Version: 1.0 Content-Type: text/plain;charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 2 Aug 2011 12:20:52 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <798CB1570E93D245815FC1545D41FBA2053B8094@Paperboy.lan.gossinteractive.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Delete, Update locally cached entities Thread-Index: AcxQ++VSqxRm/UtBTD2vkQDC540bzAACSV4g References: <798CB1570E93D245815FC1545D41FBA2053B7FF3@Paperboy.lan.gossinteractive.com> From: "Rohana Rajapakse" To: X-OriginalArrivalTime: 02 Aug 2011 11:17:14.0639 (UTC) FILETIME=[BB5359F0:01CC5105] X-Virus-Checked: Checked by ClamAV on apache.org Hi, I was under the impression that the entityhub/entity can be used for managin= g local (cached) entities. I am confused with what this page/endpoint http:/= /localhost:8080/entityhub/entity says (page to get/create/update/delete Enti= ties Managed by the entity hub). Am I missing something here? Rohana -----Original Message----- From: Rupert Westenthaler [mailto:rupert.westenthaler@gmail.com] Sent: 02 August 2011 11:06 To: stanbol-dev@incubator.apache.org Subject: Re: Delete, Update locally cached entities Hi On Tue, Aug 2, 2011 at 10:42 AM, Rohana Rajapakse wrote: > How do you delete/update locally cached entities in Entityhub? Which > endpoint(s) can I use? Can someone pass me a sample CURL instructions > please. > ReferencedSites are read only. Via the RESTful interface there is no possibility to delete/update entities. Currently there is also no possibility to control the behavior of the local cache. The preferred way to provide this feature would be to use the HTTP Cache-Control headers [1] as described by [2]. This would allow to update the local cache by adding the "Cache-Control: max-age=3D0" to a request. To support this one would also need to extend the interface of the ReferencedSite to allow to parse CacheControl parameters along with requests. If this would solve your issue I can create an JIRA issue for this new featu= re. best Rupert Westenthaler [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 [2] http://incubator.apache.org/stanbol/docs/trunk/entityhub/entityhubandlin= keddata.html#cache-controlhttpwwww3orgprotocolsrfc2616rfc2616-sec14htmlsec14= 9 > > > Thanks > > > > Rohana > > > > > Sign-up for our monthly newsletter www.gossinteractive.com/newsletter > > Registered Office: c/o Bishop Fleming, Cobourg House, Mayflower Street, Pl= ymouth, PL1 1LG. Company Registration No: 3553908 > > This email contains proprietary information, some or all of which may be l= egally privileged. It is for the intended recipient only. If an addressing o= r transmission error has misdirected this email, please notify the author by= replying to this email. If you are not the intended recipient you may not u= se, disclose, distribute, copy, print or rely on this email. > > Email transmission cannot be guaranteed to be secure or error free, as inf= ormation may be intercepted, corrupted, lost, destroyed, arrive late or inco= mplete or contain viruses. This email and any files attached to it have been= checked with virus detection software before transmission. You should nonet= heless carry out your own virus check before opening any attachment. GOSS In= teractive Ltd accepts no liability for any loss or damage that may be caused= by software viruses. > > wn virus check before opening any attachment. GOSS Interactive Ltd accepts= no liability for any loss or damage that may be caused by software viruses.= > > > > -- | Rupert Westenthaler=A0 =A0 =A0 =A0 =A0 =A0=A0 rupert.westenthaler@gmail.co= m | Bodenlehenstra=DFe 11=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ++43-699-11108907 | A-5500 Bischofshofen