Dear all,

I am working at fluid Operations AG on one of the IKS Early Adopters
projects and trying to integrate Stanbol with our Information Workbench
platform.

Currently I am getting to know the Stanbol API, and I have a question
related to the dbpedia-spotlight enhancement chain.
I am trying to retrieve annotations via the REST interface, but I face a
problem as the output I receive is different from the one I obtain via the
web interface form.
Do you know what can be the possible cause and how to deal with it?
(possibly, it happens when sending input text with non-standard characters).

As an example, I am trying to send the following string (it is meaningless,
just that it contains non-standard chars and mentions of different entity
types):

üä Albrecht Václav Eusebius z Valdštejna and pe fights, leading to his
imprisonment in town prison.[8] Already in February 1600,[8] Albrecht left
Altdorf for his Grand Tour through the HRE, France and Italy,[10] where he
studied at the universities of Bologna and Padua.

When sending it via the web interface
http://localhost:8080/enhancer/chain/dbpedia-spotlight,
I retrieve a list of text and entity annotations, particularly the one
mentioning the entity dbpedia:Albrecht_von_Wallenstein (the annotations are
consistent with what I get from the dbpedia-spotlight demo service itself).

However, when trying to send the same text via the API, e.g., with the
following command:

curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" --data
"üä Albrecht Václav Eusebius z Valdštejna and pe fights, leading to his
imprisonment in town prison.[8] Already in February 1600,[8] Albrecht left
Altdorf for his Grand Tour through the HRE, France and Italy,[10] where he
studied at the universities of Bologna and Padua."
http://localhost:8080/enhancer/chain/dbpedia-spotlight

I get a different set of annotations: particularly, there is no mention of
dbpedia:Albrecht_von_Wallenstein, but there is a reference to
dbpedia:Clavichord (extracted from the part "clav" of the name "Václav").

Do you know what can be the reason for this problem? Are there any
additional request parameters which has to be set?

Thank you!

Best regards,
Andriy Nikolov

Reply via email to