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 93308109A1 for ; Fri, 7 Jun 2013 06:50:17 +0000 (UTC) Received: (qmail 52421 invoked by uid 500); 7 Jun 2013 06:50:16 -0000 Delivered-To: apmail-clerezza-dev-archive@clerezza.apache.org Received: (qmail 52369 invoked by uid 500); 7 Jun 2013 06:50:15 -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 52354 invoked by uid 99); 7 Jun 2013 06:50:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2013 06:50:11 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [194.109.24.39] (HELO smtp-vbr19.xs4all.nl) (194.109.24.39) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2013 06:50:05 +0000 Received: from [10.12.1.124] (static.kpn.net [31.160.153.11] (may be forged)) (authenticated bits=0) by smtp-vbr19.xs4all.nl (8.13.8/8.13.8) with ESMTP id r576nFiM057038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 Jun 2013 08:49:15 +0200 (CEST) (envelope-from minto@xup.nl) Message-ID: <51B18263.1070009@xup.nl> Date: Fri, 07 Jun 2013 08:49:07 +0200 From: Minto van der Sluis Organization: Xup BV User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: dev@stanbol.apache.org CC: Rupert Westenthaler , dev@clerezza.apache.org, mgarg@innodata.com Subject: Re: Fwd: issue in integrating relfinder with stanbol References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Hi, Isn't the count function SPARQL 1.1? Currently the released version of Clerezza supports only SPARQL 1.0. However the current snapshot version (trunk) has support for SPARQL 1.1. When will this be released? Unfortunately I don't know. Regards, misl Op 7-6-2013 8:23, Rupert Westenthaler schreef: > Hi Manish, > > Stanbol uses the Clerezza SPARQL implementation. Therefore questions > related to SAPRQL query support are better targeted to the Clerezza > community. > > But AFAIK count is not supported by the SAPRQL standard, but an > extension supported by some SPARQL implementations (e.g. Jena) so most > likely this is simple because Clerezza does not support it. > > best > Rupert > > On Thu, Jun 6, 2013 at 4:23 PM, Garg, Manish wrote: >> HI Team >> >> we are trying to integrate relfinder with stanbol. We have pointed it to >> stanbol SPARQL endpoint setup locally. >> >> We are facing some issues which are explained below. If you could please >> provide some inputs on resolving these issues, will be a great help. >> >> When i search for entity "India" in relfinder, it doesnt return any >> results. It creates a query which is mentioned below >> SELECT ?s ?l WHERE { ?s >> ?l .FILTER >> regex(?l, 'india', 'i').FILTER (lang(?l) = '' || langMatches(lang(?l), >> 'en')).} LIMIT 20 >> >> but data is present there in stanbol. >> >> If we modify the query a little as highlighted below >> >> SELECT ?s ?l WHERE { ?s >> ?l .FILTER >> regex(str(?l), 'india', 'i').FILTER (lang(?l) = '' || langMatches(lang(?l), >> 'en')).} LIMIT 20 >> >> and execute it on stanbol SPARQL endpoint directly, then it returns the >> desired data. >> >> The other problem we are facing that stanbol sparql enpoint doesn't support >> count function in SPARQL query. When i try to execute the query formed by >> relfinder for dbpedia on stanbol sparql endpoint then it shows "invalid >> query" >> >> SELECT ?s ?l count(?s) as ?count WHERE {?someobj ?p ?s . ?s < >> http://www.w3.org/2000/01/rdf-schema#label> ?l .?l bif:contains "'india'" . >> FILTER (!regex(str(?s), >> ^http://dbpedia.org/resource/ategory:') >> ).FILTER (!regex(str(?s), '^http://dbpedia.org/resource/List')).FILTER >> (!regex(str(?s), '^http://sw.opencyc.org/')).FILTER (lang(?l) = '' || >> langMatches(lang(?l), en')).FILTER (!isLiteral(?someobj)). }ORDER BY >> DESC(?count) LIMIT 20 >> >> but when i remove count function then it executes. >> >> Any help in this regard will be appreciated. >> >> >> -- >> >> Regards**** >> >> Manish Garg >> >> -- >> >> "This e-mail and any attachments transmitted with it are for the sole use >> of the intended recipient(s) and may contain confidential , proprietary or >> privileged information. If you are not the intended recipient, please >> contact the sender by reply e-mail and destroy all copies of the original >> message. Any unauthorized review, use, disclosure, dissemination, >> forwarding, printing or copying of this e-mail or any action taken in >> reliance on this e-mail is strictly prohibited and may be unlawful." > > > -- > | Rupert Westenthaler rupert.westenthaler@gmail.com > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen > >