Difference between revisions of "Main Page"

From QAWiki
Jump to navigation Jump to search
(restructuring the document to flatten it and make it easier to view)
Line 1: Line 1:
<strong>Welcome to QAWiki:</strong> a repository of questions and queries that anyone can contribute to!  
=== Welcome to QAWiki: a repository of questions and queries that anyone can contribute to! ===


QAWiki collects questions in different languages, and queries over knowledge bases like [[wikidata:Wikidata:Main_Page|Wikidata]] that can answer them.  
QAWiki collects questions in different languages, and queries over knowledge bases like [[wikidata:Wikidata:Main_Page|Wikidata]] that can answer them.  
Line 20: Line 20:
== How can I contribute? ==
== How can I contribute? ==


There are many ways in which you can contribute to QAWiki.
There are many ways in which you can contribute to QAWiki (whether or not you are familiar with SPARQL, Wikidata, etc.)


If you are not familiar with query languages like SPARQL you can:
=== Suggest new questions ===
 
QAWiki welcomes new questions relating to your interests! Other editors can then hopefully suggest a query, add mentions, translations, etc.


* '''Suggest new questions''', thus requesting a query from another user.
# Create a [[Special:NewItem|new item]].
# Create a [[Special:NewItem|new item]].
# Add the question in the language(s) you prefer as the label of the new item.
# Add the question in the language(s) you prefer as the label of the new item.
# Optionally add other ways to ask the same question as aliases.
# Optionally add other ways to ask the same question as aliases.
# Add the claim that the new item is an [[Property:P1|instance of]] [[Item:Q1|question]].
# Add the claim that the new item is an [[Property:P1|instance of]] [[Item:Q1|question]].
* '''Translate questions''' (or other items/properties) for the language(s) you speak.
 
=== Translate questions ===
 
QAWiki aims to be a multilingual resource, so translations of questions and other elements into the languages you speak is very welcome!
 
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20without%20versions%20in%20French%20%28change%20the%20%22fr%22%20code%20to%20find%20questions%20not%20in%20other%20languages%29%0ASELECT%20%3Fq%20%3FqLabel%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20MINUS%20%7B%20%3Fq%20rdfs%3Alabel%20%3Fqlab%20.%20FILTER%28lang%28%3FqlabEn%29%3D%22fr%22%29%20%7D%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20%7D following query] to find questions without a translation (the example is for French, but you can change the two letter "fr" code to any language).
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20without%20versions%20in%20French%20%28change%20the%20%22fr%22%20code%20to%20find%20questions%20not%20in%20other%20languages%29%0ASELECT%20%3Fq%20%3FqLabel%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20MINUS%20%7B%20%3Fq%20rdfs%3Alabel%20%3Fqlab%20.%20FILTER%28lang%28%3FqlabEn%29%3D%22fr%22%29%20%7D%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20%7D following query] to find questions without a translation (the example is for French, but you can change the two letter "fr" code to any language).
# Visit the questions you like and translate the question to your language.
# Visit the questions you like and translate the question to your language.
* '''Add mentions for entities''' found in questions for languages you speak.
 
=== Add mentions for entities ===
 
Adding entity mentions is much appreciated, and will help systems using QAWiki to be more precise.
 
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20with%20few%20entity%20mentions%20given%20for%20a%20language%20%28in%20this%20case%20English%2C%20but%20you%20can%20change%20the%20code%20%22en%22%20within%20the%20FILTER%20expression%0ASELECT%20%3Fq%20%3FqLabel%20%28COUNT%28DISTINCT%20%3Fo2%29%20AS%20%3FentityCount%29%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20OPTIONAL%20%7B%20%3Fq%20wdt%3AP47%2a%2Fp%3AP38%20%3Fo1%20.%20%3Fo1%20pq%3AP17%20%3Fo2%20.%20%3Fo1%20ps%3AP38%20%3Fo3%20.%20FILTER%28lang%28%3Fo3%29%20%3D%20%22en%22%29%7D%20%7D%20GROUP%20BY%20%3Fq%20%3FqLabel%20ORDER%20BY%20%3FentityCount following query] to find questions ordered by the number of entity mentions annotated for a language (the example is English, but you can change the two letter "en" code to any language).
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20with%20few%20entity%20mentions%20given%20for%20a%20language%20%28in%20this%20case%20English%2C%20but%20you%20can%20change%20the%20code%20%22en%22%20within%20the%20FILTER%20expression%0ASELECT%20%3Fq%20%3FqLabel%20%28COUNT%28DISTINCT%20%3Fo2%29%20AS%20%3FentityCount%29%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20OPTIONAL%20%7B%20%3Fq%20wdt%3AP47%2a%2Fp%3AP38%20%3Fo1%20.%20%3Fo1%20pq%3AP17%20%3Fo2%20.%20%3Fo1%20ps%3AP38%20%3Fo3%20.%20FILTER%28lang%28%3Fo3%29%20%3D%20%22en%22%29%7D%20%7D%20GROUP%20BY%20%3Fq%20%3FqLabel%20ORDER%20BY%20%3FentityCount following query] to find questions ordered by the number of entity mentions annotated for a language (the example is English, but you can change the two letter "en" code to any language).
# Visit the question(s) you like.  
# Visit the question(s) you like.  
# Add new values for the [[Property:P38|mention]] property in the language of your choice. These should be substrings of a question or alias in the same language.
# Add new values for the [[Property:P38|mention]] property in the language of your choice. These should be substrings of a question or alias in the same language.
# Add one or more qualifier values for the [[Property:P17|Wikidata item ID]] property indicating the item on Wikidata that the mention(s) refer(s) to in the specific context of the question.
# Add one or more qualifier values for the [[Property:P17|Wikidata item ID]] property indicating the item on Wikidata that the mention(s) refer(s) to in the specific context of the question.
* '''Add mentions for properties''' found in questions for languages you speak.
 
=== Add mentions for properties ===
 
Again, adding property mentions is very welcome, and will help systems using QAWiki to be more precise.
 
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20with%20few%20property%20mentions%20given%20for%20a%20language%20%28in%20this%20case%20English%2C%20but%20you%20can%20change%20the%20code%20%22en%22%20within%20the%20FILTER%20expression%29%0ASELECT%20%3Fq%20%3FqLabel%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20OPTIONAL%20%7B%20%3Fq%20wdt%3AP47%2a%2Fp%3AP38%20%3Fo1%20.%20%3Fo1%20%28pq%3AP18%7Cpq%3AP45%7Cpq%3AP50%29%20%3Fo2%20.%20%3Fo1%20ps%3AP38%20%3Fo3%20.%20FILTER%28lang%28%3Fo3%29%20%3D%20%22en%22%29%7D%20%7D%20GROUP%20BY%20%3Fq%20%3FqLabel%20ORDER%20BY%20%3FentityCountt following query] to find questions ordered by the number of property mentions annotated for a language (the example is English, but you can change the two letter "en" code to any language).
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20with%20few%20property%20mentions%20given%20for%20a%20language%20%28in%20this%20case%20English%2C%20but%20you%20can%20change%20the%20code%20%22en%22%20within%20the%20FILTER%20expression%29%0ASELECT%20%3Fq%20%3FqLabel%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20OPTIONAL%20%7B%20%3Fq%20wdt%3AP47%2a%2Fp%3AP38%20%3Fo1%20.%20%3Fo1%20%28pq%3AP18%7Cpq%3AP45%7Cpq%3AP50%29%20%3Fo2%20.%20%3Fo1%20ps%3AP38%20%3Fo3%20.%20FILTER%28lang%28%3Fo3%29%20%3D%20%22en%22%29%7D%20%7D%20GROUP%20BY%20%3Fq%20%3FqLabel%20ORDER%20BY%20%3FentityCountt following query] to find questions ordered by the number of property mentions annotated for a language (the example is English, but you can change the two letter "en" code to any language).
# Visit the question(s) you like.  
# Visit the question(s) you like.  
Line 43: Line 56:
# Add one or more qualifier values for the [[Property:P18|Wikidata property ID]] property indicating the item on Wikidata that the mention(s) refer(s) to in the specific context of the question.
# Add one or more qualifier values for the [[Property:P18|Wikidata property ID]] property indicating the item on Wikidata that the mention(s) refer(s) to in the specific context of the question.


If you who are familiar with query languages like SPARQL you can also:
=== Welcome to QAWiki: a repository of questions and queries that anyone can contribute to! ===
 
QAWiki collects questions in different languages, and queries over knowledge bases like [[wikidata:Wikidata:Main_Page|Wikidata]] that can answer them.
 
Questions are typically factual so that they are answerable by knowledge bases. As some examples:
 
* "''[[Item:Q169|Which city has the most cathedrals?]]''" ([https://w.wiki/5zxx Answer on Wikidata])
* "''[[Item:Q194|What diseases are associated with the gene FGF14?]]''" ([https://w.wiki/5zxx Answer on Wikidata])
* "''[[Item:Q101|In which museums can I see paintings by El Greco?]]''" ([https://w.wiki/5zyA Answer on Wikidata])
* "[[Item:Q103|''Who is the youngest head of state in the world?'']]" ([https://w.wiki/5zyE Answer on Wikidata])
* "''[[Item:Q284|What was the last black and white movie to win an Academy Award for Best Picture?]]''" ([https://w.wiki/5zyG Answer on Wikidata])
* "''[[Item:Q314|How many dwarf planets orbit the Sun?]]''" ([https://w.wiki/5zyK Answer on Wikidata])
 
Here you can query for all the questions (and queries) [http://query.qawiki.dcc.uchile.cl/#SELECT%20%3Fq%20%3FqLabel%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20%7D collected thus far by QAWiki].
 
== Systems using QAWiki ==
 
* [https://templet.dcc.uchile.cl/ Templet]: A system supporting template-based question answering over QAWiki ([https://templet.dcc.uchile.cl/question_template/Q169 see example]).
 
== How can I contribute? ==
 
There are many ways in which you can contribute to QAWiki (whether or not you are familiar with SPARQL, Wikidata, etc.)
 
=== Suggest new questions ===
 
QAWiki welcomes new questions relating to your interests! Other editors can then hopefully suggest a query, add mentions, translations, etc.
 
# Create a [[Special:NewItem|new item]].
# Add the question in the language(s) you prefer as the label of the new item.
# Optionally add other ways to ask the same question as aliases.
# Add the claim that the new item is an [[Property:P1|instance of]] [[Item:Q1|question]].
 
=== Translate questions ===
 
QAWiki aims to be a multilingual resource, so translations of questions and other elements into the languages you speak is very welcome!
 
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20without%20versions%20in%20French%20%28change%20the%20%22fr%22%20code%20to%20find%20questions%20not%20in%20other%20languages%29%0ASELECT%20%3Fq%20%3FqLabel%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20MINUS%20%7B%20%3Fq%20rdfs%3Alabel%20%3Fqlab%20.%20FILTER%28lang%28%3FqlabEn%29%3D%22fr%22%29%20%7D%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20%7D following query] to find questions without a translation (the example is for French, but you can change the two letter "fr" code to any language).
# Visit the questions you like and translate the question to your language.
 
=== Add mentions for entities ===
 
Adding entity mentions is much appreciated, and will help systems using QAWiki to be more precise.
 
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20with%20few%20entity%20mentions%20given%20for%20a%20language%20%28in%20this%20case%20English%2C%20but%20you%20can%20change%20the%20code%20%22en%22%20within%20the%20FILTER%20expression%0ASELECT%20%3Fq%20%3FqLabel%20%28COUNT%28DISTINCT%20%3Fo2%29%20AS%20%3FentityCount%29%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20OPTIONAL%20%7B%20%3Fq%20wdt%3AP47%2a%2Fp%3AP38%20%3Fo1%20.%20%3Fo1%20pq%3AP17%20%3Fo2%20.%20%3Fo1%20ps%3AP38%20%3Fo3%20.%20FILTER%28lang%28%3Fo3%29%20%3D%20%22en%22%29%7D%20%7D%20GROUP%20BY%20%3Fq%20%3FqLabel%20ORDER%20BY%20%3FentityCount following query] to find questions ordered by the number of entity mentions annotated for a language (the example is English, but you can change the two letter "en" code to any language).
# Visit the question(s) you like.
# Add new values for the [[Property:P38|mention]] property in the language of your choice. These should be substrings of a question or alias in the same language.
# Add one or more qualifier values for the [[Property:P17|Wikidata item ID]] property indicating the item on Wikidata that the mention(s) refer(s) to in the specific context of the question.
 
=== Add queries to answer questions ===
 
If you are familiar with query languages like SPARQL you can also add queries that answer questions!
 
* '''Provide queries to answer questions''' on the [https://query.wikidata.org/ Wikidata Query Service].
* '''Provide queries to answer questions''' on the [https://query.wikidata.org/ Wikidata Query Service].
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20without%20a%20corresponding%20query%0ASELECT%20%3Fq%20%3FqLabel%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20MINUS%20%7B%20%3Fq%20wdt%3AP11%20%3Fo%20.%20%7D%20%7D following query] to find questions without a corresponding query.
# Use the [http://query.qawiki.dcc.uchile.cl/#%23%20finds%20questions%20without%20a%20corresponding%20query%0ASELECT%20%3Fq%20%3FqLabel%20WHERE%20%7B%20%3Fq%20wdt%3AP1%20wd%3AQ1%20.%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%20MINUS%20%7B%20%3Fq%20wdt%3AP11%20%3Fo%20.%20%7D%20%7D following query] to find questions without a corresponding query.
Line 50: Line 114:
# Add the qualifier [[Property:P13|dataset]] to indicate [[Item:Q12|Wikidata]] and the qualifier [[Property:P12|query language]] to indicate [[Item:Q13|SPARQL]].
# Add the qualifier [[Property:P13|dataset]] to indicate [[Item:Q12|Wikidata]] and the qualifier [[Property:P12|query language]] to indicate [[Item:Q13|SPARQL]].


If you are interested in research on Question Answering, you can also '''build tools and systems using QAWiki''' and [[Main_Page#Systems_using_QAWiki|add them to the list]]!
=== Other ways to help out ===
 
* You can also '''build tools and systems using QAWiki''' and [[Main_Page#Systems_using_QAWiki|add them to the list]]. (You can also consider adding a link back to QAWiki for users to add questions that your system struggled with.)
* Try out some of the queries, and if you see some dubious or missing answers, edit [https://www.wikidata.org/wiki/Wikidata:Main_Page Wikidata] to improve those answers.
* You can help to curate QAWiki.
* ...

Revision as of 04:34, 6 December 2022

Welcome to QAWiki: a repository of questions and queries that anyone can contribute to!

QAWiki collects questions in different languages, and queries over knowledge bases like Wikidata that can answer them.

Questions are typically factual so that they are answerable by knowledge bases. As some examples:

Here you can query for all the questions (and queries) collected thus far by QAWiki.

Systems using QAWiki

How can I contribute?

There are many ways in which you can contribute to QAWiki (whether or not you are familiar with SPARQL, Wikidata, etc.)

Suggest new questions

QAWiki welcomes new questions relating to your interests! Other editors can then hopefully suggest a query, add mentions, translations, etc.

  1. Create a new item.
  2. Add the question in the language(s) you prefer as the label of the new item.
  3. Optionally add other ways to ask the same question as aliases.
  4. Add the claim that the new item is an instance of question.

Translate questions

QAWiki aims to be a multilingual resource, so translations of questions and other elements into the languages you speak is very welcome!

  1. Use the following query to find questions without a translation (the example is for French, but you can change the two letter "fr" code to any language).
  2. Visit the questions you like and translate the question to your language.

Add mentions for entities

Adding entity mentions is much appreciated, and will help systems using QAWiki to be more precise.

  1. Use the following query to find questions ordered by the number of entity mentions annotated for a language (the example is English, but you can change the two letter "en" code to any language).
  2. Visit the question(s) you like.
  3. Add new values for the mention property in the language of your choice. These should be substrings of a question or alias in the same language.
  4. Add one or more qualifier values for the Wikidata item ID property indicating the item on Wikidata that the mention(s) refer(s) to in the specific context of the question.

Add mentions for properties

Again, adding property mentions is very welcome, and will help systems using QAWiki to be more precise.

  1. Use the following query to find questions ordered by the number of property mentions annotated for a language (the example is English, but you can change the two letter "en" code to any language).
  2. Visit the question(s) you like.
  3. Add new values for the mention property in the language of your choice. These should be substrings of a question or alias in the same language.
  4. Add one or more qualifier values for the Wikidata property ID property indicating the item on Wikidata that the mention(s) refer(s) to in the specific context of the question.

Welcome to QAWiki: a repository of questions and queries that anyone can contribute to!

QAWiki collects questions in different languages, and queries over knowledge bases like Wikidata that can answer them.

Questions are typically factual so that they are answerable by knowledge bases. As some examples:

Here you can query for all the questions (and queries) collected thus far by QAWiki.

Systems using QAWiki

How can I contribute?

There are many ways in which you can contribute to QAWiki (whether or not you are familiar with SPARQL, Wikidata, etc.)

Suggest new questions

QAWiki welcomes new questions relating to your interests! Other editors can then hopefully suggest a query, add mentions, translations, etc.

  1. Create a new item.
  2. Add the question in the language(s) you prefer as the label of the new item.
  3. Optionally add other ways to ask the same question as aliases.
  4. Add the claim that the new item is an instance of question.

Translate questions

QAWiki aims to be a multilingual resource, so translations of questions and other elements into the languages you speak is very welcome!

  1. Use the following query to find questions without a translation (the example is for French, but you can change the two letter "fr" code to any language).
  2. Visit the questions you like and translate the question to your language.

Add mentions for entities

Adding entity mentions is much appreciated, and will help systems using QAWiki to be more precise.

  1. Use the following query to find questions ordered by the number of entity mentions annotated for a language (the example is English, but you can change the two letter "en" code to any language).
  2. Visit the question(s) you like.
  3. Add new values for the mention property in the language of your choice. These should be substrings of a question or alias in the same language.
  4. Add one or more qualifier values for the Wikidata item ID property indicating the item on Wikidata that the mention(s) refer(s) to in the specific context of the question.

Add queries to answer questions

If you are familiar with query languages like SPARQL you can also add queries that answer questions!

  1. Use the following query to find questions without a corresponding query.
  2. Visit the question(s) you like.
  3. Add the query to solve the question via the property query.
  4. Add the qualifier dataset to indicate Wikidata and the qualifier query language to indicate SPARQL.

Other ways to help out

  • You can also build tools and systems using QAWiki and add them to the list. (You can also consider adding a link back to QAWiki for users to add questions that your system struggled with.)
  • Try out some of the queries, and if you see some dubious or missing answers, edit Wikidata to improve those answers.
  • You can help to curate QAWiki.
  • ...