Aide:Extension:WikibaseCirrusSearch

From mediawiki.org
This page is a translated version of the page Help:Extension:WikibaseCirrusSearch and the translation is 60% complete.
PD Note : si vous modifiez cette page, vous acceptez de placer votre contribution sous licence CC0. Plus d’informations sont disponibles sur le projet Aide dans le domaine public. PD

WikibaseCirrusSearch est un extension au-dessus de Aide:CirrusSearch qui active certaines fonctionnalités pertinentes pour Wikibase.

Vous trouverez ci-dessous une description des mots-clés et des fonctionnalités propres à cette extension. Veuillez consulter Aide:CirrusSearch pour le reste de la syntaxe.

Mots-clés

haswbstatement

Renvoie les éléments qui ont une valeur spécifique dans l'instruction avec une propriété spécifique. La recherche est insensible à la casse.

Par exemple, pour l'élément avec la valeur human (Q5) dans la propriété instance of (P31), utilisez : haswbstatement:P31=Q5 et pour l'élément avec la valeur "113230702" dans la propriété VIAF ID (P214), utilisez haswbstatement:P214=113230702.

Vous pouvez également effectuer des requêtes sans valeur spécifiée, par ex. pour tous les articles avec la propriété VIAF ID (P214) (en valeur principale), utilisez haswbstatement:P214. Vous pouvez même omettre la propriété et utiliser haswbstatement:* pour rechercher des pages avec n'importe quelle déclaration.

Pour rechercher des éléments qui n'ont pas une certaine déclaration, ajoutez un modificateur “exclude”, par exemple :

  • -haswbstatement:P31=Q13442814

La chaîne de caractères -haswbstatement:P31 trouvera les éléments sans déclaration instance of (P31).

Les déclarations avec des qualificatifs peuvent également être recherchées en ajoutant une déclaration de qualificatif entre crochets. Par exemple, pour rechercher des éléments qui dépeint (P180) un chat (Q146), vous pouvez utiliser haswbstatement:P180=Q146 - et pour préciser davantage que le chat doit avoir la couleur (P462) noir (Q23445), vous pouvez utiliser haswbstatement:P180=Q146[P462=Q23445]. A wildcard can also be used when specifying qualifiers - to find all items that depict a cat of any color use haswbstatement:P180=Q146|P462=*.

Les recherches d'instructions peuvent être combinées à l'aide d'un OU logique en utilisant un caractère barre verticale (pipe), par ex. haswbstatement:P180=Q146|P180=Q144 trouvera tous les objets représentant un chat OU un chien.

Les instructions peuvent être combinées à l'aide d'un ET logique en utilisant deux requêtes haswbstatement distinctes, par ex. haswbstatement:P180=Q146 haswbstatement:P180=Q144 trouvera tous les objets représentant à la fois un chat ET un chien.

If values need to be quoted (e.g. when searching for strings), the quotation marks need to begin right after the colon, not after the equals sign; for example, use haswbstatement:"P225=Prionace glauca", not haswbstatement:P225="Prionace glauca".

Sur Wikidata, cela fonctionne actuellement pour toutes les propriétés avec les types de données "external identifier", "string", "item", "property", "lexeme", "form" et "sense", sauf publié dans (P1433) et cite le document (P2860), qui sont actuellement omis pour des raisons de performances.

inlabel/incaption

Avertissement Avertissement : Currently, aliases are treated as labels in WikibaseCirrusSearch.

Allows the user to search for pages that have wikibase labels, optionally in user specified languages. Example: inlabel:duck@en looks for items that have the word "duck" in their English labels. Plusieurs langues peuvent être spécifiées, séparées par des virgules : inlabel:duck@en,fr,de. If you append * to the language name, fallbacks to this language will also be searched. If you append +, then 'en' (English) will be excluded from fallbacks: inlabel:gift@de-at+ searches for word "gift" in language "de-at" and its fallback chain, not including English. Language of "*" searches all labels using language-insensitive match (labels_all field) - it can only be specified on its own, not in combination with other languages. Not specifying the language - inlabel:gift@ or inlabel:gift - will also search all labels.

If you need to search string with spaces, use quotes: inlabel:"manifesto futurista@pt-br,pt".

incaption is the alias for inlabel and they work identically.

wbstatementquantity

Allows the user to search for pages/items that have wikibase statements associated with them, and specify quantities of those statements. If an item has the statement P180=Q5 with the qualifier P1114=5 (meaning "depicts human, quantity 5" in Wikidata), then it can be found using any of the following search queries:

wbstatementquantity:P180=Q5<6
wbstatementquantity:P180=Q5<=5
wbstatementquantity:P180=Q5>=5
wbstatementquantity:P180=Q5>4
wbstatementquantity:P180=Q5=5

Statements can be combined using logical OR by separating them using a pipe, e.g. wbstatementquantity:P999=Q888>5|P999=Q888<8.

Statements can be combined using logical AND by using two separate wbstatementquantity queries, e.g. wbstatementquantity:P999=Q888>5 wbstatementquantity:P999=Q888<8 (a range search) or wbstatementquantity:P999=Q888>5 wbstatementquantity:P999=Q777<8

Notez que toutes les déclarations ne sont pas indexées. La recherche d'une déclaration sur une propriété qui n'a pas été indexée donnera un résultat vide.

This feature isn't enabled on any wiki at the moment.

hasdescription

Returns Wikibase items which have a description populated in the specified language. Par exemple, pour rechercher des éléments avec une description en japonais, utilisez hasdescription:ja.

Supports providing multiple language codes to support a search for items with a description in language X OR Y. Par exemple, hasdescription:it,hu renverra les éléments avec une description en italien OU en hongrois.

Il peut également être utilisé plusieurs fois pour imposer plusieurs exigences sur les résultats renvoyés. Par exemple, hasdescription:en hasdescription:de renverra des éléments avec des descriptions en anglais ET en allemand et hasdescription:es -hasdescription:fr renverra des éléments avec une description en espagnol et sans description en français.

haslabel/hascaption

Same as hasdescription, but for labels (also known informally as captions). hascaption est fourni comme alias, comme pour inlabel/incaption ci-dessus.