Translations:Tutorial/59/en: Difference between revisions

From Resistance in Belgium
(Importing a new version from external source)
 
(No difference)

Latest revision as of 14:49, 1 April 2025

Message definition (Tutorial)
<li><code>WHERE { ... }</code>:<br>
Describes the structure and conditions of the query:
<ul>
<li><code>?person wdt:P1 wd:Q2</code>: selects items that are human beings (P1 = item type, Q2 = person).</li>
<li><code>wdt:P3 ?lastName</code>: associates the last name with the variable <code>?lastName</code> (P3).</li>
<li><code>wdt:P2 ?firstName</code>: associates the first name with the variable <code>?firstName</code> (P2).</li>
</ul>
</li>
</ol>
  • WHERE { ... }:
    Describes the structure and conditions of the query:
    • ?person wdt:P1 wd:Q2: selects items that are human beings (P1 = item type, Q2 = person).
    • wdt:P3 ?lastName: associates the last name with the variable ?lastName (P3).
    • wdt:P2 ?firstName: associates the first name with the variable ?firstName (P2).