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 2245D11963 for ; Tue, 8 Apr 2014 20:09:20 +0000 (UTC) Received: (qmail 47876 invoked by uid 500); 8 Apr 2014 20:09:16 -0000 Delivered-To: apmail-clerezza-dev-archive@clerezza.apache.org Received: (qmail 47714 invoked by uid 500); 8 Apr 2014 20:09:13 -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 47625 invoked by uid 99); 8 Apr 2014 20:09:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 20:09:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [194.109.24.25] (HELO smtp-vbr5.xs4all.nl) (194.109.24.25) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 20:09:07 +0000 Received: from [10.0.0.104] (D97AD3BE.cm-3-3d.dynamic.ziggo.nl [217.122.211.190]) (authenticated bits=0) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id s38K8j3w058702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 8 Apr 2014 22:08:46 +0200 (CEST) (envelope-from minto@xup.nl) Message-ID: <53445753.3030407@xup.nl> Date: Tue, 08 Apr 2014 22:08:51 +0200 From: Minto van der Sluis Organization: Xup BV User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: dev@clerezza.apache.org Subject: Re: A bold idea References: <53430AE7.2000709@xup.nl> <53439DB4.70809@xup.nl> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Reto Gm�r schreef op 8-4-2014 18:26: > On Tue, Apr 8, 2014 at 8:56 AM, Minto van der Sluis wrote: > >> Reto Gm�r schreef op 7-4-2014 22:53: >>> On Mon, Apr 7, 2014 at 10:30 PM, Minto van der Sluis >> wrote: >>>> Hi folks, >>>> >>>> Lately I had a bold idea, but first let me explain how I got there. >>>> >>>> In Clerezza bundles that implement TcProvider are mostly restricted to a >>>> single instance due to the bundle's configuration. The only viable >>>> construct I see (please correct me If I am wrong here) to create >>>> multiple instances is to create another bundle that expose the same >>>> service with a different configuration. This seems like quite a hassle >>>> to me. What if .... >>>> >>> I don't see the problem having multiple configurations in one bundle. In >>> Stanbol for example the defaultconfiguration bundle configures several >>> services with the same implementation cclass: >>> >>> >> http://svn.apache.org/viewvc/stanbol/trunk/data/defaultconfig/src/main/resources/config/ >> Where exactly in there is the configuration for one or more providers? I >> fail to see it. I see lots of config, but none specifies where a >> provider is to store the actual data (like disk location or endpoints) >> > Well, couldn't there be a service property set for that purpose? > > > >>>> What if TcProviders were more like JDBC providers. Then a single >>>> provider could more easily be instantiated multiple times comparable to >>>> JDBC datasources. This could even be done dynamically like [1]. >>>> >>> Could you tell more how this would look like. Would a Graph be a >> datasource >>> or a TcProvider? Would we still have arbitary URIs to address Graph? >> It's just a bold idea and I haven't figured it out yet complete. But I >> could image that the DataSource allows to create a connection just like >> in JDBC. This connection object looks probably closest to the current >> Clerezza TcProvider. >> >> For the second question. Why not? >> > It's a long time since I've been using JDBC. And had some jdbc pseudo URIS > somewhere in my mind.... The jdbc uri's are to connect to providers. These providers give access graphs still with full URI support. Anyway it was just a wild idea. I wanted to figure out if there are major objections against such a scenario. > > Cheers, > Reto > -- ir. ing. Minto van der Sluis Software innovator / renovator Xup BV Mobiel: +31 (0) 626 014541