Skip to content

yazdipour/text-to-sparql-development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text 2 SPARQL

Wikidata Q/Ps

Dictionary of all properties and identifiers in Wikidata

Data Sample

{'NNQT_question': 'What is the {periodical literature} for {mouthpiece} of {Delta Air Lines}',

 'paraphrased_question': "What is Delta Air Line's periodical literature mouthpiece?",

'question': 'What periodical literature does Delta Air Lines use as a moutpiece?',

'sparql_dbpedia18': 'select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188920> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2813> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1002697> } ',

'sparql_wikidata': ' select distinct ?obj where { wd:Q188920 wdt:P2813 ?obj . ?obj wdt:P31 wd:Q1002697 } ',

'subgraph': 'simple question right',

'template': ' <S P ?O ; ?O instanceOf Type>',

'template_index': 65,

'uid': 19719}

Tools

Researches

Similar

Dataset

WikiMedia

QALD

https://github.com/ag-sc/QALD/

  • Can not merge QALD v9 with v8 and before, because of huge amount of similarity.
  • Less than 700 records

LC-QuAD

LC-QuAD 2.0 is a Large Question Answering dataset with 30,000 pairs of question and its corresponding SPARQL query. The target knowledge base is Wikidata and DBpedia, specifically the 2018 version.

LC-QuAD2 Data Fields

  • NNQT_question: a string feature.
  • uid: a int32 feature.
  • subgraph: a string feature.
  • template_index: a int32 feature.
  • question: a string feature.
  • sparql_wikidata: a string feature.
  • sparql_dbpedia18: a string feature.
  • template: a string feature.
  • paraphrased_question: a string feature.

Other Datasets

General Transfer Models

About

Text-to-SPARQL DevRepo

Resources

License

Code of conduct

Stars

Watchers

Forks