Hi Olivier,
Perhaps you could check if the /accent aigu/ is escaped correctly (see
percent encoding <http://en.wikipedia.org/wiki/Percent-encoding>). At
least when trying the URL you specify in a browser, I get the correct
annotation in the HTML response, but when I omitted the accent (due to
laziness) with cURL, the annotation was indeed missing.
When correctly encoded, the request & response look like this:
$ curl
'http://spotlight.sztaki.hu:2225/rest/annotate?text=La%20Cour%20p%C3%A9nale%20internationale&confidence=0.0&support=0'
-H 'Accept: application/xml;'
<?xml version="1.0" encoding="utf-8"?>
<Annotation text="La Cour pénale internationale" confidence="0.0"
support="0" types="" sparql="" policy="whitelist">
<Resources>
<Resource
URI="http://fr.dbpedia.org/resource/Cour_pénale_internationale"
support="295" types="" surfaceForm="Cour pénale internationale"
offset="3" similarityScore="0.9999999999999574"
percentageOfSecondRank="0.0"/>
</Resources>
</Annotation>
Could you check if this works for you?
Kind regards,
Alex
On 21-12-2013 17:45, Olivier Austina wrote:
Hi,
I try to annotate this text "La Cour pénale internationale" using this
url :
http://spotlight.sztaki.hu:2225/rest/annotate?text=La Cour pénale
internationale&confidence=0.0&support=0
I got the following xml file:
<?xml version="1.0" encoding="utf-8"?>
<Annotation text="La Cour pénale internationale" confidence="0.0"
support="0"
types="" sparql="" policy="whitelist"/>
The annotation is missed but it works fine in web browser or for the
demo page http://dbpedia-spotlight.github.io/demo/ .
Spaces in the text are replaced by "%20". Where is the problem please?
Regards
Olivier
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users