Since there are these characters "]}]}" I thought for a second that the
json escaping in our code could be broken, but it doesn't seem so. This
works for me:
curl -H "Accept:application/json"
http://spotlight.dbpedia.org/rest/annotate--data-urlencode
"text=Residential Search List Page - Mortgage advice from
SPF, WT.conv, Mortgage Advice From SPF, WT.tx_e, conv, W.dl, 85],
selector:a[href*=mortgages]}]}," --data
"disambiguator=Document&confidence=0.0&support=0"
Please test it with cURL to see if the error is in your java code.
Cheers,
Pablo
On Fri, May 18, 2012 at 2:51 PM, Stefano Ortona <[email protected]> wrote:
>
> On 18/mag/2012, at 11.50, Pablo Mendes wrote:
>
> >
> > Hi Stefano,
> > I cannot reproduce. It seems that the error is in your encoder. I used
> cURL with four combinations. I used the text without special chars such as
> [ * , etc. and I also used the text copied + pasted from your e-mail
> (granted that character encoding could have been lost in this operation - I
> only tested URL encoding). I also tested with each of our disambiguator
> classes. Everything seemed to work, although the disambiguations are not
> particularly good. :) Short texts are a known limitation at the moment.
> >
> > Cheers,
> > Pablo
> >
>
>
> Ok,
> think I found the error. I'd like to have the answer as Json Object, but
> apparently it doesn't work. If I get the response as RDF there is no error,
> while using Json I got the error.
> Pablo can you try this experiment as well? And any idea about the reason?
>
> Cheers,
> Stefano
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users