Pomoc:Rozszerzenie:WikibaseCirrusSearch
| Uwaga: Edytując tę stronę, 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. |
WikibaseCirrusSearch jest rozszerzeniem na bazie CirrusSearch, które dodaje niektóre możliwości istotne dla Wikibase.
Poniżej opisano słowa kluczowe i funkcjonalności unikalne dla tego rozszerzenia.
Słowa kluczowe
haswbstatement
Zwraca elementy, które posiadają wskazaną właściwość twierdzenia z określoną wartoś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.
Możesz też zapytać nie podając konkretnej wartości by uzyskać wszystkie elementy z daną właściwością, np. dla wszystkich elementów używających VIAF ID (P214) (jako głównej wartości) skorzystaj z haswbstatement:P214.
Możesz także pominąć podawanie właściwości i użyć haswbstatement:* by wyszukać wszystkie strony z jakimikolwiek stwierdzeniami.
By wyszukać elementy, które nie posiadają określonego stwierdzenia, dodaj parametr “exclude”, na przykład:
-haswbstatement:P31=Q13442814
Ciąg -haswbstatement:P31 znajdzie elementy bez stwierdzenia instance of (P31) o podanej wartości.
Stwierdzenia z kwalifikatorami można wyszukać dodając kwalifikator w nawiasach kwadratowych.
Na przykład, by wyszukać element który przedstawia (P180) kota (Q146) możesz użyć haswbstatement:P180=Q146 – i by dokładniej sprecyzować, że kot musi być koloru (P462) czarnego (Q23445) możesz użyć haswbstatement:P180=Q146[P462=Q23445].
Można też użyć symbolu wieloznacznego (*, wildcard), nie precyzując o jaką wartość kwalifikatora chodzi – by w wynikach otrzymać koty o różnych kolorach użyj 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
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.