Smart Data AnalyticsEARL: Joint Entity and Relation Linking for Question Answering over Knowledge Graphs

An approach to do joint linking of relations and entities for questions over KG using Connection Density.


EARL (Entity And Relation Linker), a system for jointly linking entities and relations in a question to a knowledge graph. EARL treats entity linking and relation linking as a single task and thus aims to reduce the error caused by the dependent steps. To realise this, EARL uses the knowledge graph to jointly disambiguate entity and relations. EARL obtains the context for entity disambiguation by observing the relations surrounding the entity. Similarly, it obtains the context for relation disambiguation by looking at the surrounding entities. We support multiple entities and relations occurring in complex questions by modeling the joint entity and relation linking task as an instance of the Generalised Travelling Salesman Problem (GTSP).

Try out our API
We offer two versions of our API:

1. Use the EARL API without PageRank

curl -XPOST ‘http://sda.tech/earl/api/processQuery' -H ‘Content-Type:application/json’ -d"{\"nlquery\":\"Who is the president of Russia?\", "pagerankflag": false}" 

2. Use the EARL API with PageRank integrated

curl -XPOST ‘http://sda.tech/earl/api/processQuery' -H ‘Content-Type:application/json’ -d"{\"nlquery\":\"Who is the president of Russia?\", "pagerankflag": true}" 

 

Example Output JSON

The output generated has the following JSON structure


	"rerankedlists": {
		"0": [
			[	0.4499925374984741,
				"http://dbpedia.org/ontology/President"		],
			[	0.26798081398010254,
				"http://dbpedia.org/ontology/leader"		],
			[	0.2467387467622757,
				"http://dbpedia.org/ontology/dean"		],
			[	0.17565202713012695,
				"http://dbpedia.org/ontology/Governor"		]
		     ],
		"1": [
			[ 	0.8047428131103516,
				"http://dbpedia.org/resource/Russia"		],
			[	0.4531175196170807,
				"http://dbpedia.org/resource/Russia_High_School_(Russia,_Ohio)"	],
			[	0.10261398553848267,
				"http://dbpedia.org/resource/Ministry_of_Defence_(Russia)"	],
			[	0.04964711517095566,
				"http://dbpedia.org/resource/R23_highway_(Russia)"		]
		     ]
	},
	"changes": {
		"0": "correct",
		"1": "correct"
	},
	"chunktext": [
		{
			"chunk": "president",
			"surfacelength": 9,
			"class": "relation",
			"surfacestart": 11
		},
		{
			"chunk": "Russia",
			"surfacelength": 6,
			"class": "entity",
			"surfacestart": 24
		}
	],
	"er-rerun": false,
	"ertypes": [
		"relation",
		"entity"
	]
}

Project Team


 

Publications