Development‎ > ‎


The OKBQA Hackathon 2014 has produced a set of prototype implementations for each of the modules envisioned in the architecture. Each module is accessible through RESTful services that are available for a limited time on the demonstration server.




Question Formulation

Template Generation

curl -i -H "Content-Type: application/json" -X POST -d @test.json

test.json: { "string": "Which rivers flow through Busan?", "language":"en" }

test.json: { "string": "한라산은 얼마나 높은가?", "language":"ko" }

Korean Dependency Parser: Input String(Question) -> output String(Stanford Form)
Disambiguation (English)
Example call (see JSON content for test.json below):

curl -i -H "Content-Type: application/json" -X POST -d @test.json
3.{"question":"Who did that and wo?","slots" : [ {"s" : "?x", "p" : "verbalization", "o" : "shopping center"}, {"s" : "?x", "p" : "is", "o" : "rdf:Class_rdf:Resource"}, {"s" : "?y", "p" : "verbalization", "o" : "University of Kiel"} ] }
"question": "Who did that and wo?",
"ned": [
"score": 1,
"entities": [
"score": 1,
"var": "?x",
"value": ""
"score": 1,
"var": "?y",
"value": ""
"classes": [
"score": 1.2173913043478262,
"var": "?x",
"value": ""
"literals": [],
"properties": []

AGDISTIS for korean:


Example call: curl --data-urlencode "text='<entity>덕혜옹주</entity>는 <entity>조선</entity>의 제26대 <entity>왕</entity>이자 <entity>대한제국</entity>의 초대 <entity> 황제</entity> <entity>고종</entity>과 <entity>귀인 양씨</entity>의 <entity>황녀</entity>이다.'" -d type=agdistis

Query Generation

Sparqlator (GraphFinder)

Example call: curl -H "content-type:application/json" -d @test.json

Answer Generation

Example input JSON : {"sentence":"Which rivers flow through Gunsan?", "lang":"en"}

More info: IO Specification.

Test Service

The test service understands both POST and GET requests. The query parameters for GET requests are the URL of the controller (parameter name: url) and optionally the language in which the tests are to be carried out (parameter name: language, default = en). A corresponding call would be

for a controller located at

The POST version understands JSON objects of the form

{"url":"http:\/\/\/controller", "language":"korean"}.
and is available at

Test Service (for OKBQA 2015)

Example call: curl -H "Content-Type: application/json" -X POST -d @input.json
Input JSON: {"string":"question", "language":"en"/"ko"}

Distributional Semantics Services (English is online and Korean is on its way)

You can experiment with five distributional models: ESA, LSA, RI, Word2Vec and Glove.

The services can be invoked as below.

For returning the semantic relatedness measure of two terms (e.g. `power' and `electric'):

As a response you will get the semantic relatedness measure:


We can also calculate the semantic relatedness value of one term (e.g. `power') and a list of terms () :;cable;station;car;table

In this case we will receive as an answer the ranked list of semantic relatedness values:

The parameters of the URL are the distributional semantic model (esa, lsa, ri, w2v, 
glove) and language (e.g. en).
You can also get the distributional vector of a word (e.g. love), which consists of the
id of the vector component and of the weight associated with that component:

which will return the answer:

Named Entity Recognition

Path Finder

Full-Text Index

Korean Entity Linking Service

Example call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=대한민국의 지방법원의 수는 총 18개이다."

Korean Predicate Linking Service - 1 (considering predicate argument structure)

output: S postposition [tab] O postposition [tab] S ner [tab] O ner [tab] Property [tab] score 
Example call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=태어나"

Korean Predicate Linking Service - 2 (without considering predicate argument structure)

output: Property [tab] score 
Example call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=태어나"

Korean Templete Generation Service (to be updated)

Example call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=대한민국의 대통령은 누구인가?

Korean Query Generation

Example call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=대한민국의 대통령은 누구인가?"

Korean Word Embedding Similarity Service

Example call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=대한민국"

Korean DBpedia 2014 Endpoint