Skip to content

2 Asking the webservice

Diego Moussallem edited this page May 30, 2018 · 6 revisions

We deployed AGDISTIS as a RESTful service reachable via the following command:

curl --data-urlencode "text='The <entity>University of Leipzig</entity> in <entity>Barack Obama</entity>.'" -d type='agdistis' http://akswnc9.informatik.uni-leipzig.de:8113/AGDISTIS

or if you want to use a larger text file:

curl --data-urlencode "text@test.txt" -d type=agdistis http://akswnc9.informatik.uni-leipzig.de:8113/AGDISTIS

Please note that every entity you need disambiguated must be recognized beforehand since AGDISTIS is only a entity linker

There are also multilingual endpoints due to the MAG extension:

English (EN)

curl --data-urlencode "text='<entity>Barack Obama</entity> is in <entity>Leipzig</entity>.'" -d type='agdistis' http://akswnc9.informatik.uni-leipzig.de:8113/AGDISTIS

German (DE)
```shell
curl --data-urlencode "text='<entity>Barack Obama</entity> is in <entity>Leipzig</entity>.'" -d type='agdistis' http://akswnc9.informatik.uni-leipzig.de:8114/AGDISTIS

Spanish (ES)

curl --data-urlencode "text='<entity>Barack Obama</entity> is in <entity>Leipzig</entity>.'" -d type='agdistis' http://akswnc9.informatik.uni-leipzig.de:8115/AGDISTIS

French (FR)

curl --data-urlencode "text='<entity>Barack Obama</entity> is in <entity>Leipzig</entity>.'" -d type='agdistis' http://akswnc9.informatik.uni-leipzig.de:8116/AGDISTIS

Italian (IT)

curl --data-urlencode "text='<entity>Barack Obama</entity> is in <entity>Leipzig</entity>.'" -d type='agdistis' http://akswnc9.informatik.uni-leipzig.de:8117/AGDISTIS

Japanese (JA)

curl --data-urlencode "text='<entity>Barack Obama</entity> is in <entity>Leipzig</entity>.'" -d type='agdistis' http://akswnc9.informatik.uni-leipzig.de:8118/AGDISTIS

Netherlands (NL)

curl --data-urlencode "text='<entity>Barack Obama</entity> is in <entity>Leipzig</entity>.'" -d type='agdistis' http://akswnc9.informatik.uni-leipzig.de:8119/AGDISTIS

Disclaimer

The deployed webservice does not reflect the optimal parametrization of AGDISTIS as published.

Clone this wiki locally