Example

Input:

EN

{ "string": "Which rivers flow through Gunsan?", "language": "en" }

KO

{ "string": "어떤 강이 군산을 흐르는가?", "language": "ko" }

Template generation output:

EN

[

{ "query": "SELECT ?v2 WHERE { ?v2 ?v6 ?v1 . ?v2 ?v3 ?v5 . }",

"slots": [ {"s": "v5", "p": "is", "o": "owl:NamedIndividual"},

{"s": "v5", "p": "verbalization", "o": "Gunsan"},

{"s": "v6", "p": "is", "o": "owl:Property"},

{"s": "v6", "p": "value", "o": "SORTAL"},

{"s": "v1", "p": "is", "o": "owl:Class"},

{"s": "v1", "p": "verbalization", "o": "rivers"},

{"s": "v3", "p": "is", "o": "owl:Property"},

{"s": "v3", "p": "verbalization", "o": "flow through"} ],

"score": 1 }

]

KO

[

{ "query": "SELECT ?v2 WHERE { ?v2 ?v6 ?v1 . ?v2 ?v3 ?v5 . }",

"slots": [ {"s": "v5", "p": "is", "o": "owl:NamedIndividual"},

{"s": "v5", "p": "verbalization", "o": "군산"},

{"s": "v6", "p": "is", "o": "owl:Property"},

{"s": "v6", "p": "value", "o": "SORTAL"},

{"s": "v1", "p": "is", "o": "owl:Class"},

{"s": "v1", "p": "verbalization", "o": "강"},

{"s": "v3", "p": "is", "o": "owl:Property"},

{"s": "v3", "p": "verbalization", "o": "흐르는가"} ],

"score": 1 }

]

Disambiguation output:

{

"question": "Which rivers flow through Gunsan?",

"ned": [

{

"classes": [

{

"var": "v1",

"score": 0.25,

"value": "http://dbpedia.org/ontology/River"

},

{

"var": "v1",

"score": 0.2564102564102564,

"value": "http://dbpedia.org/ontology/River"

}

],

"score": 1,

"properties": [

{

"var": "v3",

"score": 0.2564102564102564,

"value": "http://dbpedia.org/ontology/city"

}

],

"entities": [

{

"var": "v5",

"score": 1,

"value": "http://dbpedia.org/resource/Gunsan"

}

]

}

]

}

Query generation

Input:

{

"template": {

"query": "SELECT ?v2 WHERE { ?v2 rdf:type ?v1 . ?v2 ?v3 ?v5 . }",

"slots": [

{ "annotation": "owl:NamedIndividual", "form": "Gunsan", "var": "v5" },

{ "annotation": "owl:Class", "form": "rivers", "var": "v1" },

{ "annotation": "owl:Property", "form": "flow through", "var": "v3" }

],

"score": 1

},

"disambiguation": {

"score": 1,

"classes": [

{

"var": "v1",

"score": 0.25,

"value": "http://dbpedia.org/ontology/River"

},

{

"var": "v1",

"score": 0.2564102564102564,

"value": "http://dbpedia.org/ontology/River"

}

],

"properties": [

{

"var": "v3",

"score": 0.2564102564102564,

"value": "http://dbpedia.org/ontology/city"

}

],

"entities": [

{

"var": "v5",

"score": 1,

"value": "http://dbpedia.org/resource/Gunsan"

}

]

}

}

output:

[

{

"query": "SELECT ?v2 WHERE { ?v2 rdf:type <http://dbpedia.org/ontology/River> . ?v2 <http://dbpedia.org/ontology/city> <http://dbpedia.org/resource/Gunsan> . }",

"score": 1

}

]

...