Return-Path: Delivered-To: apmail-incubator-stanbol-dev-archive@minotaur.apache.org Received: (qmail 44496 invoked from network); 16 Mar 2011 16:28:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Mar 2011 16:28:44 -0000 Received: (qmail 26393 invoked by uid 500); 16 Mar 2011 16:28:44 -0000 Delivered-To: apmail-incubator-stanbol-dev-archive@incubator.apache.org Received: (qmail 26349 invoked by uid 500); 16 Mar 2011 16:28:44 -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 26341 invoked by uid 99); 16 Mar 2011 16:28:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 16:28:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of enricodaga@gmail.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qy0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 16:28:38 +0000 Received: by qyk27 with SMTP id 27so1752350qyk.6 for ; Wed, 16 Mar 2011 09:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=l/D3+I5GNktgnjH/QpEiB0j5ZMldK6WMCDwZIn3Qgyw=; b=dhw3TAF3YOfsx8W8oOXRQMTvsQ4EGRZJurpSYk6rh6xiKmUWJbTckmpfxZdhLFR3/v fV9WKH1XDEzsNEbjfGmxSK09XaMTom1qua88/vhtkLlOOd54Fk+xIV7vrisutbEjsY+9 DAGDfasV0qBOk/zuMBC+rw2GkS80TGkF1AN38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=TLJI/sdyZNUWEA4rZo/tdTfnLhWr147J5zWFvShTGyIOnLye3cWkyT0J0OSRX3VR1F SYZhkhEiVIYv0ctEimlVrdh/dbmIgswlFtryNZ/1yifu5POgQ1WiWSuHYlljvHjnhU1T RpR3ikvdUEKRwIkjzYyYAQK0uiAGoTCiJ7vF4= Received: by 10.229.64.84 with SMTP id d20mr188207qci.206.1300292897225; Wed, 16 Mar 2011 09:28:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.213.16 with HTTP; Wed, 16 Mar 2011 09:27:57 -0700 (PDT) In-Reply-To: References: <4D7A43CF.9020509@gmail.com> <4D7A4960.3000008@gmail.com> From: Enrico Daga Date: Wed, 16 Mar 2011 17:27:57 +0100 Message-ID: Subject: Re: Do Stanbol have a global SPARQL endpoint? To: Olivier Grisel Cc: stanbol-dev@incubator.apache.org, Fabian Christ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 16 March 2011 17:22, Olivier Grisel wrote: > One should probably extend / adapt the JAX-RS SPARQL resource of the > enhancers to point to other graph ids as needed. One could make a new > JAX-RS resources such as /graph/{graphId}/sparql to build dynamically > sparql endpoint for all the clerezza graphs registered in stanbol for > instance: > > In the class SparqlQueryResource, instead of the hard-coded: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Object result =3D tcManager.executeSparqlQuery= (query, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0store.getEnhanceme= ntGraph()); > > One could have something like: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Object result =3D tcManager.executeSparqlQuery= (query, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0tcManager.getGraph= (new UriRef("urn:graph:" + graphId))); But what happens if I want to query multiple graphs? I need for instance to query the enhancement graph and the result of my /kres/reengineer process (another graph) together. This would open to a variety of use cases, and in general this is how sparql endpoints work. Enrico > > -- > Olivier > --=20 Enrico Daga -- http://www.enridaga.net skype: enri-pan