Jump to content

Pomoc:Rozszerzenie:WikibaseCirrusSearch

From mediawiki.org
This page is a translated version of the page Help:Extension:WikibaseCirrusSearch and the translation is 45% complete.
PD Uwaga: Jeżeli edytujesz tę stronę, to umieszczając na niej treści wyrażasz nieodwołalną zgodę na udostępnianie Twojego materiału na podstawie wolnej licencji CC0. Aby uzyskać więcej informacji, przeczytaj Strony Pomocy w Domenie Publicznej. PD

WikibaseCirrusSearch jest extension na bazie CirrusSzukaj , który dodaje niektóre funkcjonalności istotne dla Wikibase.

Poniżej opisano słowa kluczowe i funkcjonalności unikalne dla tego rozszerzenia.

Zobacz Pomoc:CirrusSzukaj , żeby poznać resztę składni.

Słowa kluczowe

haswbstatement

Zwraca elementy, które mają określoną wartość stwierdzenia z określoną właściwością. W wyszukiwaniu wielkość liter nie ma znaczenia.

Na przykład, dla elementu z wartością human (Q5) we właściwości instance of (P31) użyj: haswbstatement:P31=Q5, a dla elementu z wartością "113230702" we właściwości VIAF ID (P214) użyj haswbstatement:P214=113230702.

You can also make queries without a specified value, e.g. for all items with property VIAF ID (P214) (in main value) use haswbstatement:P214. You can even leave out the property as well, and use haswbstatement:* to search for pages with any statement at all.

To search for items that do not have a certain statement, add an “exclude” modifier, for example:

  • -haswbstatement:P31=Q13442814

Ciąg -haswbstatement:P31 znajdzie elementy bez stwierdzenia instance of (P31).

Statements with qualifiers can also be searched for by adding a qualifier statement in square brackets. For example, to search for items that depict (P180) a cat (Q146) you can use haswbstatement:P180=Q146 - and to further specify that the cat must have the color (P462) black (Q23445) you can use 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=*.

Statement searches can be combined using logical OR by using a pipe character e.g. haswbstatement:P180=Q146|P180=Q144 will find all items that depict a cat OR a dog.

Statements can be combined using logical AND by using two separate haswbstatement queries, e.g. haswbstatement:P180=Q146 haswbstatement:P180=Q144 will find all items that depict both a cat AND a dog.

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".

On Wikidata this currently works for all properties with "external identifier", "string", "item", "property", "lexeme", "form" and "sense" datatypes, except published in (P1433) and cites (P2860), which are currently omitted for performance reasons.

inlabel/incaption

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

Allows the user to search for pages that have wikibase labels, optionally in user specified languages. Przykład: inlabel:duck@en szuka elementów, które mają słowo "duck" w etykietach w języku angielskim. Można określić więcej niż jeden język, każdy kolejny oddzielając przecinkiem: 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.

Jeśli chcesz znaleźć ciąg z odstępami, użyj znaków cytatu: inlabel:"manifesto futurista@pt-br,pt".

incaption jest aliasem inlabel i działa identycznie.

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

Stwierdzenia można łączyć, używając logicznego OR (z ang. lub) lub rozdzielając je pionową kreską, np. 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

Zauważ, że nie wszystkie stwierdzenia są indeksowane. Wyszukanie stwierdzeń o niezindeksowanej właściwości, zwróci pusty wynik.

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

hasdescription

Returns Wikibase items which have a description populated in the specified language. Na przykład, aby znaleźć elementy z opisem w języku japońskim, użyj hasdescription:ja..

Supports providing multiple language codes to support a search for items with a description in language X OR Y. Na przykład, hasdescription:it,hu zwróci elementy z opisem w języku włoskim LUB węgierskim.

It can also be used multiple times to impose multiple requirements on returned results. For example, hasdescription:en hasdescription:de will return items with descriptions in English AND German, and hasdescription:es -hasdescription:fr will return items with a description in Spanish and without a description in French.

haslabel/hascaption

To samo co hasdescription ale dla etykiet. hascaption jest podane jako alias, analogicznie do inlabel/incaption powyżej.