AskNow-logo
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"
				]
	}