Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about question set #378

Open
xqx1568 opened this issue Dec 30, 2020 · 1 comment
Open

about question set #378

xqx1568 opened this issue Dec 30, 2020 · 1 comment
Assignees

Comments

@xqx1568
Copy link

xqx1568 commented Dec 30, 2020

Could you tell me what wrong with my dataset.
When I upload my datasets, I wiil got "The dataset couldn't be loaded".
I think I've followed the rules in https://github.com/dice-group/gerbil/wiki/Question-Answering.
My datasets seems like this:
{"questions": [
{"query": {"sparql": "PREFIX res: http://dbpedia.org/resource/\nPREFIX prop: http://dbpedia.org/property/\nSELECT ?date\nWHERE \n{\n res:LucasArts prop:foundation ?date .\n}"}, "question": [{"string": "When was Lucas Arts founded?", "language": "en"}], "id": "41_1_dbpedia-train-CDATA", "answers": [{"results": {"bindings": [{"type": "literal", "value": "May 1982"}]}}]},
{"query": {"sparql": "PREFIX dbp: http://dbpedia.org/property/ \nASK \nWHERE { \n http://dbpedia.org/resource/Prince_William,_Duke_of_Cambridge dbp:mother ?x . \n http://dbpedia.org/resource/Prince_Harry_of_Wales dbp:mother ?y . \n FILTER (?x = ?y) \n}"}, "question": [{"string": "Do Prince Harry and Prince William have the same mother?", "language": "en"}], "id": "123_qald-4_multilingual_train_withanswers", "answers": [{"boolean": true}]}
]}

@LukasBluebaum
Copy link
Contributor

Hi,
the format of the provided sample is not entirely correct. Please have a look at the revised example I provided below and let us know if you need any more help.

{
   "questions":[
      {
         "query":{
            "sparql":"PREFIX res: http://dbpedia.org/resource/\nPREFIX prop: http://dbpedia.org/property/\nSELECT ?date\nWHERE \n{\n res:LucasArts prop:foundation ?date .\n}"
         },
         "question":[
            {
               "string":"When was Lucas Arts founded?",
               "language":"en"
            }
         ],
         "id":"41_1_dbpedia-train-CDATA",
         "answers":[
            {
               "head":{
                  "vars":[
                     "uri"
                  ]
               },
               "results":{
                  "bindings":[
                     {
                        "uri":{
                           "type":"literal",
                           "value":"May 1982"
                        }
                     }
                  ]
               }
            }
         ]
      },
      {
         "query":{
            "sparql":"PREFIX dbp: http://dbpedia.org/property/ \nASK \nWHERE { \n http://dbpedia.org/resource/Prince_William,_Duke_of_Cambridge dbp:mother ?x . \n http://dbpedia.org/resource/Prince_Harry_of_Wales dbp:mother ?y . \n FILTER (?x = ?y) \n}"
         },
         "question":[
            {
               "string":"Do Prince Harry and Prince William have the same mother?",
               "language":"en"
            }
         ],
         "id":"123_qald-4_multilingual_train_withanswers",
         "answers":[
            {
               "head":{
                  
               },
               "boolean":true
            }
         ]
      }
   ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants