Editing QAWiki:Guide/Mentions

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 23: Line 23:
=== A mention can link to many entities and/or properties ===
=== A mention can link to many entities and/or properties ===


The same phrase can have multiple relevant mentions, and can mix entity and property mentions. For example, in the question "[[Item:Q19|''What is the capital of Ireland?'']]", the phrase "''capital''" corresponds not only to the property [https://www.wikidata.org/wiki/Property:P36 P36 (''capital'')], but also the entity [https://www.wikidata.org/wiki/Q5119 Q5119 (''capital city'')]. We recommend, whenever possible, to add any mentions or links that might be useful in order to interpret the question, translate it to a query, etc.
The same phrase can have multiple relevant mentions, and can mix entity and property mentions. For example, in the question "[[Item:Q19|''What is the capital of Ireland?'']]", the phrase ''capital'' corresponds not only to the property [https://www.wikidata.org/wiki/Property:P36 P36], but also the entity [https://www.wikidata.org/wiki/Q5119 Q5119 (capital city)]. We recommend, whenever possible, to add any mentions or links that might be useful in order to interpret the question, translate it to a query, etc.


=== A question can import mentions from other questions ===
=== A question can import mentions from other questions ===


In some cases we may want to add variants of a particular question, or otherwise related questions, that share a lot of the same mentions. In this case, we can import the mentions from another question using the QAWiki property [[Property:P47|P47 (imports mention from)]]. For example, the questions "[[Item:Q394|''What is the largest moon of the Solar System by mass?'']]" and "[[Item:Q394|''What is the largest moon of the Solar System by mass?'']]" both import mentions from the base (ambiguous) question "[[Item:Q393|''What is the largest moon of the Solar System?'']]". Additional mentions can be added. Imported mentions that do not appear as a phrase anywhere in a question or question alias of the indicated language can safely be ignored. Cycles of [[Property:P47|P47 (imports mention from)]] should be avoided.
In some cases we may want to add variants of a particular question, or otherwise related questions, that share a lot of the same mentions. In this case, we can import the mentions from another question using the QAWiki property [[Property:P47|P47 (imports mention from)]]. For example, the questions [[Item:Q394|''What is the largest moon of the Solar System by mass?'']] and [[Item:Q394|''What is the largest moon of the Solar System by mass?'']] both import mentions from the base (ambiguous) question [[Item:Q393|''What is the largest moon of the Solar System?'']]. Additional mentions can be added. Imported mentions that do not appear as a phrase anywhere in a question or question alias of the indicated language can safely be ignored. Cycles of [[Property:P47|P47]] should be avoided.


=== Avoid duplicating mentions across language dialects ===
=== Avoid duplicating mentions across language dialects ===


In the case of questions in different dialects of the same language, we recommend only adding the mentions that change from the general language. For example, in "[[Item:Q245|''What are the colors of the French flag?'']]" (<code>en</code>) and "[[Item:Q245|''What are the colours of the French flag?'']]" (<code>en-UK</code>), it is sufficient to add <code>en-UK</code> mentions for "''colours''" and not repeat mentions for "''French''", '"'flag''", etc., if defined already for <code>en</code>.
In the case of questions in different dialects of the same language, we recommend only adding the mentions that change from the general language. For example, in [[Item:Q245|''What are the colors of the French flag?'' (<code>en</code>)]] and [[Item:Q245|''What are the colours of the French flag?'' (<code>en-UK</code>)]], it is sufficient to add <code>en-UK</code> mentions for ''colours'' and not repeat mentions for ''French'', ''flag'', etc., if defined already for <code>en</code>.


=== Use discontinuous mention phrases where useful ===
=== Use discontinuous mention phrases where useful ===


A key mention might not be continuous in a particular query. For example, in the question "[[Item:Q296|''What volcanos in Iceland are active?'']]", an important mention is for the Wikidata entity [https://www.wikidata.org/wiki/Q1330974 Q1330974 (''active volcano'')]. In this case, we recommend using the symbol <code>*</code> to represent a wildcard that can be used to omit one or more words from the question when specifying the phrase of the mention, such that the phrase for the aforementioned mention becomes "''volcanos * active''", keeping the order of words in the question. Similar cases can apply for property mentions. For example, in the question alias "[[Item:Q112|''On what date was Hey Jude published?'']]", we can link the discontinuous mention "''date * published''" to the Wikidata property [https://www.wikidata.org/wiki/Property:P577 P577 (''publication date'')]. In all such cases, <code>*</code> replaces one or more words in the question.
A key mention might not be continuous in a particular query. For example, in the question "[[Item:Q296|''What volcanos in Iceland are active?'']], an important mention is for the Wikidata entity [https://www.wikidata.org/wiki/Q1330974 Q1330974 (''active volcano'')]. In this case, we recommend using the symbol <code>*</code> to represent a wildcard that can be used to omit one or more words from the question when specifying the phrase of the mention, such that the phrase for the aforementioned mention becomes "''volcanos * active''", keeping the order of words in the question. Similar cases can apply for property mentions. For example, in the question alias "[[Item:Q112|''On what date was Hey Jude published?'']]", we can link the discontinuous mention "''date * published''" to the Wikidata property [https://www.wikidata.org/wiki/Property:P577 P577 (''publication date'')]. In all such cases, <code>*</code> replaces one or more words in the question.


=== Phrases of different mentions can overlap ===
=== Phrases of different mentions can overlap ===


We recommend adding ''overlapping mentions'', i.e., phrases referring to entities that overlap in the question (often one will be contained in a larger phrase). For example, for the question "[[Item:Q172|''Which U.S. president had the most spouses?'']]", we recommend adding mentions for "''U.S.''" ([https://www.wikidata.org/wiki/Q30 Q30]), "''president''" ([https://www.wikidata.org/wiki/Q30461 Q30461] / [https://www.wikidata.org/wiki/Property:P35 P35]) and "''U.S. president''" ([https://www.wikidata.org/wiki/Q11696 Q11696]), even though they overlap.
We recommend adding ''overlapping mentions'', i.e., phrases referring to entities that overlap in the question (often one will be contained in a larger phrase). For example, for the question "[[Item:Q172|''Which U.S. president had the most spouses?'']]", we recommend adding mentions for ''U.S.'' ([https://www.wikidata.org/wiki/Q30 Q30]), ''president'' ([https://www.wikidata.org/wiki/Q30461 Q30461] / [https://www.wikidata.org/wiki/Property:P35 P35]) and ''U.S. president'' ([https://www.wikidata.org/wiki/Q11696 Q11696]), even though they overlap.


== Guidelines for entity mentions ==
== Guidelines for entity mentions ==
Line 45: Line 45:
=== Entities do not need to be named entities ===
=== Entities do not need to be named entities ===


Entities do not need to be ''named entities'', i.e., entities named with a proper noun like "''Gabriel Boric''" ([https://www.wikidata.org/wiki/Q16297876 Q16297876]) (as often capitalised in many languages). We rather also recommend linking phrases like "''president''" ([https://www.wikidata.org/wiki/Q30461 Q30461]), "''volcanos''" ([https://www.wikidata.org/wiki/Q8072 Q8072]), etc.
Entities do not need to be ''named entities'', i.e., entities named with a proper noun like ''Gabriel Boric'' ([https://www.wikidata.org/wiki/Q16297876 Q16297876]) (as often capitalised in many languages). We rather also recommend linking phrases like ''president'' ([https://www.wikidata.org/wiki/Q30461 Q30461]), ''volcanos'' ([https://www.wikidata.org/wiki/Q8072 Q8072]), etc.  


=== Phrases do not need to be nouns ===
=== Phrases do not need to be nouns ===


Entity phrases do not need to be nouns or noun phrases. For example, in the case of "[[Item:Q245|''What are the colors of the French flag?'']]", we recommend linking the adjective "''French''" to [https://www.wikidata.org/wiki/Q142 Q142 (France)]; we further recommend using the phrase as it appears in the question, e.g., using "''French''" rather than "''France''", keeping nouns phrases plural if they appear so in the question, etc.
Entity phrases do not need to be nouns or noun phrases. For example, in the case of [[Item:Q245|''What are the colors of the French flag?'']], we recommend linking the adjective ''French'' to [https://www.wikidata.org/wiki/Q142 Q142 (France)]; we recommend using the phrase as it appears in the question, e.g., using ''French'' rather than ''France'', keeping nouns phrases plural if they appear so in the question, etc.


== Guidelines for property mentions ==
== Guidelines for property mentions ==
Line 55: Line 55:
=== Indicate relevant properties, even if not an exact match ===
=== Indicate relevant properties, even if not an exact match ===


Wikidata tries to keep the set of properties used fairly concise, trying to avoid a proliferation of specific properties. For this reason, property mentions may link to Wikidata properties that are not an exact match, but are undoubtedly relevant for a given phrase. For example, given a question starting with "''How many wives ...''", there is no property for "''wife''" on Wikidata, but there is a property for "''spouse''" ([https://www.wikidata.org/wiki/Property:P26 P26]). We recommend in such a case to link to [https://www.wikidata.org/wiki/Property:P26 P26] as the property is clearly relevant (i.e., will likely be used in a corresponding query), even if a bit more general than the intended mention. As another example, for a question starting "''Who is the president ...''", there is no property for "''president''", so a link can rather be given to [https://www.wikidata.org/wiki/Property:P35 P35 (''head of state'')], even if more general. Below you will find specific ways to link properties that are not an exact match.
Wikidata tries to keep the set of properties used fairly concise, trying to avoid a proliferation of specific properties. For this reason, property mentions may link to Wikidata properties that are not an exact match, but are undoubtedly relevant for a given phrase. For example, given a phrase like ''How many wives ...'', there is no property for ''wife'' on Wikidata, but there is a property for ''spouse'' ([https://www.wikidata.org/wiki/Property:P26 P26]). We recommend in such a case to link to [https://www.wikidata.org/wiki/Property:P26 P26] as the property is clearly relevant (i.e., will likely be used in a corresponding query), even if a bit more general than the intended mention. As another example, for ''Who is the president ...'', there is no property for ''president'', so a link can rather be given to [[https://www.wikidata.org/wiki/Property:P35 P35 (''head of state'')]], even if more general. Below you will find specific ways to link properties that are not an exact match.


=== Choose the appropriate qualifier for linking properties to mentions ===
=== Choose the appropriate qualifier for linking properties to mentions ===

Please note that all contributions to QAWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)