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: 5485
Content-Type: text/html; charset=UTF-8
Date: Sat, 12 Jul 2025 12:18:17 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.16593098640441895,
               "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": "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"
                              },
                              {
                                   "o": "<http://lodqa.org/vocabulary/sort_of>",
                                   "p": "is",
                                   "s": "v8"
                              },
                              {
                                   "o": "rdf:Class",
                                   "p": "is",
                                   "s": "v7"
                              },
                              {
                                   "o": "rivers",
                                   "p": "verbalization",
                                   "s": "v7"
                              }
                         ]
                    }
               ]
          },
          {
               "1. module": "DM",
               "2. address": "http://ws.okbqa.org:2357/agdistis/run",
               "3. exception": "<urlopen error [Errno 111] Connection refused>",
               "4. input": {
                    "query": "SELECT ?v2 WHERE { ?v2 ?v8 ?v7 ; ?v9 ?v5 . } ",
                    "question": "Which rivers flow through Seoul?",
                    "score": "1.0",
                    "slots": [
                         {
                              "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"
                         },
                         {
                              "o": "<http://lodqa.org/vocabulary/sort_of>",
                              "p": "is",
                              "s": "v8"
                         },
                         {
                              "o": "rdf:Class",
                              "p": "is",
                              "s": "v7"
                         },
                         {
                              "o": "rivers",
                              "p": "verbalization",
                              "s": "v7"
                         }
                    ]
               }
          }
     ],
     "result": []
}

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