Source code of ESTHER - Using Compositional Embeddings for Fact Checking
Esther currently supports TransE, RotatE and DensE embeddings.
Create a class that extends EmbeddingModel.
- Generate KGE for the knowledge graph (we're only interested in relations embeddings)
- Upload the corresponding knowledge graph to a SPARQL endpoint
- Run ESTHER
ESTHER was developed using Java 17.
You can run ESTHER with maven's exec plugin :
mvn exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass="org.dice_group.main.Launcher" -Dexec.args="-m S -d TransE/ -e TransE -k 200 -se http://localhost:8890/sparql/ -s experiment_result -l 4 -loops -f facts.nt
Or through its jar file:
java -jar esther.jar -m S -d TransE/ -e TransE -k 200 -se http://localhost:8890/sparql/ -s experiment_result -l 4 -loops -f facts.nt
| Parameter | Required | Default | Description |
|---|---|---|---|
| --data, -d | True | NA | Folder path where the embedding files and the relations dictionary reside |
| --save, -s | True | NA | Saving file name (It will be saved under the folder path previously specified) |
| --facts, -f | True | NA | File path of the reified statements to be checked. |
| --dict | False | NA | File path of the relations dictionary. If it's not provided, it will be created from the embeddings file. |
| -ds | False | None | Dataset name {FB, WN} (only needed if the dictionary does not contain fully formed URIs) |
| --topk, -k | False | 100 | Maximum number of metapaths |
| --matrix, -m | False | I | The comparison mode {S, SU, ND, NDS, I} |
| --emb-model,-e | False | TransE | The embedding model used {TransE, RotatE, DensE} |
| --endpoint, -se | True | NA | The SPARQL endpoint where the knowledge graph is hosted |
| -l | False | 3 | Maximum path length |
| -loops | False | False | If loops are to be allowed in paths |
@InProceedings{esther2021,
author="da Silva, Ana Alexandra Morim
and R{\"o}der, Michael
and Ngomo, Axel-Cyrille Ngonga",
title="Using Compositional Embeddings for Fact Checking",
booktitle="The Semantic Web -- ISWC 2021",
year="2021",
publisher="Springer International Publishing",
address="Cham",
pages="270--286",
isbn="978-3-030-88361-4"
}