MAG Logo

MAG (Multilingual AGDISTIS)

A Multilingual, Knowledge-base Agnostic and Deterministic Entity Linking Approach

Mark the entities with square brackets.
Annotated Text:

{{detectedlanguage}}

JSON Result


            

Did you find any bug? Please inform us by cliking on the Github's logo below.

git Logo

What is MAG?

A novel multilingual, knowledge-base agnostic and deterministic approach to entity linking. MAG is based on a combination of context-based retrieval on structured knowledge bases and graph algorithms. MAG is an extension of AGDISTIS which is an Open Source Named Entity Disambiguation Framework.

Where can I learn more about MAG?

MAG's algorithm is implemented within AGDISTIS. To learn more about AGDISTIS visit our project homepage.

Who maintains MAG?

We are a big team of maintainers:

How to cite MAG?

If you want to cite this publication please use the Bibtex below:
@inproceedings{moussallem2017mag,
  title={MAG: A Multilingual, Knowledge-base Agnostic and Deterministic Entity Linking Approach},
  author={Moussallem, Diego and Usbeck, Ricardo and R{\"o}eder, Michael and Ngomo, Axel-Cyrille Ngonga},
  booktitle={Proceedings of the Knowledge Capture Conference},
  pages={9},
  year={2017},
  organization={ACM}
}

Where is MAG used?

Please let us know if you are using MAG/AGDISTIS. You can contact us here.
Use from java
For running MAG on your machine:
1) Clone this https://github.com/dice-group/AGDISTIS/
2) go to the root directory
3) execute:
mvn tomcat:run 
Now a webservice is running on localhost:8080.

Running with Docker

1. Pull image from docker hub using `docker pull aksw/agdistis` (https://hub.docker.com/r/aksw/agdistis/)
2. Download (see above) or build an index and rename it if needed to index
3. Run AGDISTIS while attaching an index as volume using
4. Adapt your language/knowledgebase settings for using it
English example:
			docker run -d \
  			--name agdistis \
  			-v `pwd`/indexdbpedia_en_2016:/usr/local/tomcat/index \
  			-v `pwd`/index_bycontext:/usr/local/tomcat/index_bycontext \
  			-p 8080:8080 \
  			-e AGDISTIS_NODE_TYPE=http://dbpedia.org/resource/ \
  			-e AGDISTIS_EDGE_TYPE=http://dbpedia.org/ontology/ \
  			-e AGDISTIS_BASE_URI=http://dbpedia.org \
  			aksw/agdistis:latest
			

German example:
			docker run -d \
  			--name agdistis \
 			-v `pwd`/indexdbpedia_de_2016:/usr/local/tomcat/index \
  			-v `pwd`/index_bycontext:/usr/local/tomcat/index_bycontext \
  			-p 8080:8080 \
  			-e AGDISTIS_NODE_TYPE=http://de.dbpedia.org/resource/ \
  			-e AGDISTIS_EDGE_TYPE=http://dbpedia.org/ontology/ \
  			-e AGDISTIS_BASE_URI=http://dbpedia.org \
  			aksw/agdistis:latest
			

If you have a context index (index_bycontent, like in this example) add `-e AGDISTIS_CONTEXT=True`
Create your own docker image
1. Clone this https://github.com/dice-group/AGDISTIS/
2. Build application war by running `mvn package -Dmaven.test.skip=true`
3. Build docker image by running `docker build -t aksw/agdistis .`
We deployed MAG as a RESTful service reachable via the following command:
curl --data-urlencode "text='The <entity>University of Leipzig</entity> in <entity>Leipzig</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
or if you want to use a larger text or NIF file:
curl --data-urlencode "text@nif.ttl" -d type=agdistis http://akswnc9.informatik.uni-leipzig.de:8113/AGDISTIS
Score per candidate
curl --data-urlencode "text='The <entity>University of Leipzig</entity> in <entity>Barack Obama</entity>.'" -d type='candidates' http://akswnc9.informatik.uni-leipzig.de:8113/AGDISTIS
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)
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 MAG as published.
You can download all 40 languages indexes on DBpedia and also 1 English index from Wikidata from the following URLs:

Arabic
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_ar.zip

Azerbaijani
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_az.zip

Belarusian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_be.zip

Bulgarian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_bg.zip

Bengali (Bangla)
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_bn.zip

Catalan
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_ca.zip

Czech
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_cs.zip

Welsh
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_cy.zip

German
2016-10 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_de.zip
2016-04 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/de/indexdbpedia_de_2016.zip
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/de/index_bycontext.zip

Greek
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_el.zip

English
2016-10 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_en.zip
2016-04 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/en/indexdbpedia_en_2016.zip
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/en/index_bycontext.zip

Esperanto
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_eo.zip

Spanish
2016-10
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_es.zip
2016-04 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/es/indexdbpedia_es_2016.zip

Basque
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_eu.zip

French
2016-10
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_fr.zip
2016-04 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/fr/indexdbpedia_fr_2016.zip

Irish
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_ga.zip

Galician
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_gl.zip

Hindi
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_hi.zip

Croatian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_hr.zip

Hungarian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_hu.zip

Armenian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_hy.zip

Indonesian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_id.zip

Italian
2016-10
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_it.zip
2016-04 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/it/indexdbpedia_it_2016.zip

Japanese
2016-10
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_ja.zip
2016-04 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/ja/indexdbpedia_ja_2016.zip

Korean
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_ko.zip

Latvian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_lv.zip

Macedonian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_mk.zip

Dutch
2016-10
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_nl.zip
2016-04 version
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-04/nl/indexdbpedia_nl_2016.zip

Polish
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_pl.zip

Portuguese
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_pt.zip

Romanian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_ro.zip

Russian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_ru.zip

Slovak
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_sk.zip

Slovenian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_sl.zip

Serbian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_sr.zip

Swedish
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_sv.zip

Turkish
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_tr.zip

Ukrainian
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_uk.zip

Vietnamese
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_vi.zip

Chinese
https://hobbitdata.informatik.uni-leipzig.de/agdistis/dbpedia_index_2016-10/index_zh.zip

English Wikidata
https://hobbitdata.informatik.uni-leipzig.de/agdistis/wikidata/index_wikidata_en.zip