Controller 2016 Test

This page shows the result of the sample cURL command.
When there is the placeholder expression, _sample_input_, in the cURL command, it will be replaced by the value of the field, Sample input.

Result

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS
Access-Control-Allow-Headers: Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token
Content-Length: 17415
Content-Type: text/html; charset=UTF-8
Date: Sat, 15 Dec 2018 06:27:57 GMT
Server: swrc-kidc

{
     "log": [
          {
               "1. module": "CM",
               "2. input": {
                    "conf": {
                         "address": {
                              "AGM": [
                                   "http://ws.okbqa.org:7745/agm"
                              ],
                              "DM": [
                                   "http://ws.okbqa.org:2357/agdistis/run"
                              ],
                              "KB": [
                                   [
                                        "http://kbox.kaist.ac.kr:5889/sparql",
                                        "http://en.dbpedia2014.kaist.ac.kr"
                                   ]
                              ],
                              "QGM": [
                                   "http://ws.okbqa.org:38401/queries"
                              ],
                              "TGM": [
                                   "http://ws.okbqa.org:1515/templategeneration/rocknrole"
                              ]
                         },
                         "sequence": [
                              "TGM",
                              "DM",
                              "QGM",
                              "AGM"
                         ],
                         "sync": "on"
                    },
                    "input": {
                         "language": "en",
                         "string": "Which rivers flow through Seoul?"
                    }
               }
          },
          {
               "1. module": "TGM",
               "2. elapsed_time": 0.14050984382629395,
               "3. input": {
                    "language": "en",
                    "string": "Which rivers flow through Seoul?"
               },
               "4. output": [
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 ?v8 ?v7 ; ?v9 ?v5 . } ",
                         "score": "1.0",
                         "slots": [
                              {
                                   "o": "<http://lodqa.org/vocabulary/sort_of>",
                                   "p": "is",
                                   "s": "v8"
                              },
                              {
                                   "o": "rdf:Class",
                                   "p": "is",
                                   "s": "v7"
                              },
                              {
                                   "o": "rivers",
                                   "p": "verbalization",
                                   "s": "v7"
                              },
                              {
                                   "o": "rdf:Class|rdf:Resource",
                                   "p": "is",
                                   "s": "v5"
                              },
                              {
                                   "o": "Seoul",
                                   "p": "verbalization",
                                   "s": "v5"
                              },
                              {
                                   "o": "rdf:Property",
                                   "p": "is",
                                   "s": "v9"
                              },
                              {
                                   "o": "flow",
                                   "p": "verbalization",
                                   "s": "v9"
                              }
                         ]
                    }
               ]
          },
          {
               "1. module": "DM",
               "2. elapsed_time": 0.9158060550689697,
               "3. input": {
                    "query": "SELECT ?v2 WHERE { ?v2 ?v8 ?v7 ; ?v9 ?v5 . } ",
                    "question": "Which rivers flow through Seoul?",
                    "score": "1.0",
                    "slots": [
                         {
                              "o": "<http://lodqa.org/vocabulary/sort_of>",
                              "p": "is",
                              "s": "v8"
                         },
                         {
                              "o": "rdf:Class",
                              "p": "is",
                              "s": "v7"
                         },
                         {
                              "o": "rivers",
                              "p": "verbalization",
                              "s": "v7"
                         },
                         {
                              "o": "rdf:Class|rdf:Resource",
                              "p": "is",
                              "s": "v5"
                         },
                         {
                              "o": "Seoul",
                              "p": "verbalization",
                              "s": "v5"
                         },
                         {
                              "o": "rdf:Property",
                              "p": "is",
                              "s": "v9"
                         },
                         {
                              "o": "flow",
                              "p": "verbalization",
                              "s": "v9"
                         }
                    ]
               },
               "4. output": {
                    "ned": [
                         {
                              "classes": [
                                   {
                                        "score": 0.6666666666666666,
                                        "value": "http://dbpedia.org/ontology/River",
                                        "var": "v7"
                                   }
                              ],
                              "entities": [
                                   {
                                        "score": 1,
                                        "value": "http://dbpedia.org/resource/Seoul",
                                        "var": "v5"
                                   }
                              ],
                              "literals": [],
                              "properties": [
                                   {
                                        "score": 0.5,
                                        "value": "http://dbpedia.org/ontology/city",
                                        "var": "v9"
                                   }
                              ],
                              "score": 1
                         }
                    ],
                    "question": "Which rivers flow through Seoul?"
               }
          },
          {
               "1. module": "QGM",
               "2. elapsed_time": 0.12061285972595215,
               "3. input": {
                    "disambiguation": {
                         "classes": [
                              {
                                   "score": 0.6666666666666666,
                                   "value": "http://dbpedia.org/ontology/River",
                                   "var": "v7"
                              }
                         ],
                         "entities": [
                              {
                                   "score": 1,
                                   "value": "http://dbpedia.org/resource/Seoul",
                                   "var": "v5"
                              }
                         ],
                         "literals": [],
                         "properties": [
                              {
                                   "score": 0.5,
                                   "value": "http://dbpedia.org/ontology/city",
                                   "var": "v9"
                              }
                         ],
                         "score": 1
                    },
                    "template": {
                         "query": "SELECT ?v2 WHERE { ?v2 ?v8 ?v7 ; ?v9 ?v5 . } ",
                         "question": "Which rivers flow through Seoul?",
                         "score": "1.0",
                         "slots": [
                              {
                                   "o": "<http://lodqa.org/vocabulary/sort_of>",
                                   "p": "is",
                                   "s": "v8"
                              },
                              {
                                   "o": "rdf:Class",
                                   "p": "is",
                                   "s": "v7"
                              },
                              {
                                   "o": "rivers",
                                   "p": "verbalization",
                                   "s": "v7"
                              },
                              {
                                   "o": "rdf:Class|rdf:Resource",
                                   "p": "is",
                                   "s": "v5"
                              },
                              {
                                   "o": "Seoul",
                                   "p": "verbalization",
                                   "s": "v5"
                              },
                              {
                                   "o": "rdf:Property",
                                   "p": "is",
                                   "s": "v9"
                              },
                              {
                                   "o": "flow",
                                   "p": "verbalization",
                                   "s": "v9"
                              }
                         ]
                    }
               },
               "4. output": [
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 a <http://dbpedia.org/ontology/River> . ?v2 <http://dbpedia.org/ontology/city> <http://dbpedia.org/resource/Seoul> } ",
                         "score": 0.8
                    },
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 a <http://dbpedia.org/ontology/River> . <http://dbpedia.org/resource/Seoul> <http://dbpedia.org/ontology/city> ?v2 } ",
                         "score": 0.7
                    },
                    {
                         "query": "SELECT ?v2 WHERE { <http://dbpedia.org/ontology/River> a ?v2 . ?v2 <http://dbpedia.org/ontology/city> <http://dbpedia.org/resource/Seoul> } ",
                         "score": 0.7
                    },
                    {
                         "query": "SELECT ?v2 WHERE { <http://dbpedia.org/ontology/River> a ?v2 . <http://dbpedia.org/resource/Seoul> <http://dbpedia.org/ontology/city> ?v2 } ",
                         "score": 0.7
                    },
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?v2 ?v9 <http://dbpedia.org/resource/Seoul> . FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                         "score": 0.4
                    },
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . <http://dbpedia.org/resource/Seoul> ?v9 ?v2 . FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                         "score": 0.4
                    },
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?v2 ?p11 ?x11 . ?x11 ?p12 <http://dbpedia.org/resource/Seoul> . FILTER (?p11 NOT IN (rdf:type, rdfs:Class)) FILTER (?p12 NOT IN (rdf:type, rdfs:Class)) FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                         "score": 0.4
                    },
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?v2 ?p11 ?x11 . <http://dbpedia.org/resource/Seoul> ?p12 ?x11 . FILTER (?p11 NOT IN (rdf:type, rdfs:Class)) FILTER (?p12 NOT IN (rdf:type, rdfs:Class)) FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                         "score": 0.4
                    },
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?x11 ?p11 ?v2 . ?x11 ?p12 <http://dbpedia.org/resource/Seoul> . FILTER (?p11 NOT IN (rdf:type, rdfs:Class)) FILTER (?p12 NOT IN (rdf:type, rdfs:Class)) FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                         "score": 0.4
                    },
                    {
                         "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?x11 ?p11 ?v2 . <http://dbpedia.org/resource/Seoul> ?p12 ?x11 . FILTER (?p11 NOT IN (rdf:type, rdfs:Class)) FILTER (?p12 NOT IN (rdf:type, rdfs:Class)) FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                         "score": 0.4
                    }
               ]
          },
          {
               "1. module": "AGM",
               "2. elapsed_time": 0.3334500789642334,
               "3. input": {
                    "conf": {
                         "graph_uri": "http://en.dbpedia2014.kaist.ac.kr",
                         "kb_addresses": "http://kbox.kaist.ac.kr:5889/sparql"
                    },
                    "queries": [
                         {
                              "query": "SELECT ?v2 WHERE { ?v2 a <http://dbpedia.org/ontology/River> . ?v2 <http://dbpedia.org/ontology/city> <http://dbpedia.org/resource/Seoul> } ",
                              "score": 0.8
                         },
                         {
                              "query": "SELECT ?v2 WHERE { ?v2 a <http://dbpedia.org/ontology/River> . <http://dbpedia.org/resource/Seoul> <http://dbpedia.org/ontology/city> ?v2 } ",
                              "score": 0.7
                         },
                         {
                              "query": "SELECT ?v2 WHERE { <http://dbpedia.org/ontology/River> a ?v2 . ?v2 <http://dbpedia.org/ontology/city> <http://dbpedia.org/resource/Seoul> } ",
                              "score": 0.7
                         },
                         {
                              "query": "SELECT ?v2 WHERE { <http://dbpedia.org/ontology/River> a ?v2 . <http://dbpedia.org/resource/Seoul> <http://dbpedia.org/ontology/city> ?v2 } ",
                              "score": 0.7
                         },
                         {
                              "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?v2 ?v9 <http://dbpedia.org/resource/Seoul> . FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                              "score": 0.4
                         },
                         {
                              "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . <http://dbpedia.org/resource/Seoul> ?v9 ?v2 . FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                              "score": 0.4
                         },
                         {
                              "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?v2 ?p11 ?x11 . ?x11 ?p12 <http://dbpedia.org/resource/Seoul> . FILTER (?p11 NOT IN (rdf:type, rdfs:Class)) FILTER (?p12 NOT IN (rdf:type, rdfs:Class)) FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                              "score": 0.4
                         },
                         {
                              "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?v2 ?p11 ?x11 . <http://dbpedia.org/resource/Seoul> ?p12 ?x11 . FILTER (?p11 NOT IN (rdf:type, rdfs:Class)) FILTER (?p12 NOT IN (rdf:type, rdfs:Class)) FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                              "score": 0.4
                         },
                         {
                              "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?x11 ?p11 ?v2 . ?x11 ?p12 <http://dbpedia.org/resource/Seoul> . FILTER (?p11 NOT IN (rdf:type, rdfs:Class)) FILTER (?p12 NOT IN (rdf:type, rdfs:Class)) FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                              "score": 0.4
                         },
                         {
                              "query": "SELECT ?v2 WHERE { ?v2 ?sv7 <http://dbpedia.org/ontology/River> . ?x11 ?p11 ?v2 . <http://dbpedia.org/resource/Seoul> ?p12 ?x11 . FILTER (?p11 NOT IN (rdf:type, rdfs:Class)) FILTER (?p12 NOT IN (rdf:type, rdfs:Class)) FILTER (?sv7 IN (rdf:type, rdfs:Class)) } ",
                              "score": 0.4
                         }
                    ]
               },
               "4. output": [
                    {
                         "answer": "http://dbpedia.org/resource/Han_River_(Korea)",
                         "query": "SELECT ?v2 WHERE { ?v2 a <http://dbpedia.org/ontology/River> . ?v2 <http://dbpedia.org/ontology/city> <http://dbpedia.org/resource/Seoul> } ",
                         "score": 0.8
                    }
               ]
          }
     ],
     "result": [
          {
               "answer": "http://dbpedia.org/resource/Han_River_(Korea)",
               "query": "SELECT ?v2 WHERE { ?v2 a <http://dbpedia.org/ontology/River> . ?v2 <http://dbpedia.org/ontology/city> <http://dbpedia.org/resource/Seoul> } ",
               "score": 0.8
          }
     ]
}

Command

curl -i -H 'Content-Type: application/json' -X POST -d '{
  "input": {
    "string": "Which rivers flow through Seoul?",
    "language": "en"
  },
  "conf": {
    "address": {
      "TGM": ["http://ws.okbqa.org:1515/templategeneration/rocknrole"],
      "DM": ["http://ws.okbqa.org:2357/agdistis/run"],
      "QGM": ["http://ws.okbqa.org:38401/queries"],
      "AGM": ["http://ws.okbqa.org:7745/agm"],
      "KB": [["http://kbox.kaist.ac.kr:5889/sparql", "http://en.dbpedia2014.kaist.ac.kr"]]
    },
    "sequence": [
      "TGM",
      "DM",
      "QGM",
      "AGM"
    ],
    "sync": "on"
  }
}' http://ws.okbqa.org:7047/cm