Rupert,
I think the issue is line SparqlQueryUtils.java:448 [1]:
queryString.append(" . \n");
It adds a dot even though the constraint is the last in the set.
I am attaching a possible fix, can you please review it?
Thanks,
David
[1]
http://svn.apache.org/repos/asf/incubator/stanbol/trunk/entityhub/query/clerezza/src/main/java/org/apache/stanbol/entityhub/query/clerezza/SparqlQueryUtils.java
On Sun, Jul 22, 2012 at 3:18 PM, David Riccitelli <[email protected]>wrote:
> I also created a bug report here:
> https://issues.apache.org/jira/browse/STANBOL-697
>
> BR
> David
>
>
> On Sun, Jul 22, 2012 at 2:49 PM, David Riccitelli <[email protected]>wrote:
>
>> Thanks Rupert,
>>
>> I am digging into, the issue is probably located here:
>> org.apache.stanbol.entityhub.query.clerezza.SparqlQueryUtils
>> (.addFieldConstraint).
>>
>> Let me know ...
>>
>> David
>>
>>
>> On Sun, Jul 22, 2012 at 2:37 PM, Rupert Westenthaler <
>> [email protected]> wrote:
>>
>>> Hi David,
>>>
>>> this is clearly a Bug in the SPARQL query generation as it looks like
>>> a closing '}' is missing in the generated query.
>>>
>>> Thanks for reporting. I will have a look into what is causing this.
>>>
>>> best
>>> Rupert
>>>
>>> On Sat, Jul 21, 2012 at 7:52 PM, David Riccitelli <[email protected]>
>>> wrote:
>>> > I am getting an error in Stanbol (r1364045) using the enhancer web UI
>>> with
>>> > the entityhub referenced site configuration for dbpedia with caching
>>> > strategy to Never or Used.
>>> >
>>> > Attached a screenshot of the error and the exception.
>>> >
>>> > Am I doing something wrong?
>>> >
>>> > BR,
>>> > David
>>> >
>>> >
>>> > --
>>> > David Riccitelli
>>> >
>>> >
>>> ********************************************************************************
>>> > InsideOut10 s.r.l.
>>> > P.IVA: IT-11381771002
>>> > Fax: +39 0110708239
>>> > ---
>>> > LinkedIn: http://it.linkedin.com/in/riccitelli
>>> > Twitter: ziodave
>>> > ---
>>> > Layar Partner Network
>>> >
>>> ********************************************************************************
>>> >
>>>
>>>
>>>
>>> --
>>> | Rupert Westenthaler [email protected]
>>> | Bodenlehenstraße 11 ++43-699-11108907
>>> | A-5500 Bischofshofen
>>>
>>
>>
>>
>> --
>> David Riccitelli
>>
>>
>> ********************************************************************************
>> InsideOut10 s.r.l.
>> P.IVA: IT-11381771002
>> Fax: +39 0110708239
>> ---
>> LinkedIn: http://it.linkedin.com/in/riccitelli
>> Twitter: ziodave
>> ---
>> Layar Partner
>> Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1>
>>
>> ********************************************************************************
>>
>>
>
>
> --
> David Riccitelli
>
>
> ********************************************************************************
> InsideOut10 s.r.l.
> P.IVA: IT-11381771002
> Fax: +39 0110708239
> ---
> LinkedIn: http://it.linkedin.com/in/riccitelli
> Twitter: ziodave
> ---
> Layar Partner
> Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1>
>
> ********************************************************************************
>
>
--
David Riccitelli
********************************************************************************
InsideOut10 s.r.l.
P.IVA: IT-11381771002
Fax: +39 0110708239
---
LinkedIn: http://it.linkedin.com/in/riccitelli
Twitter: ziodave
---
Layar Partner
Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1>
********************************************************************************