Help:Data type/pl

From testwiki
Jump to navigation Jump to search

<languages /> Template:Information page Typ danych określa sposób zachowania deklaracji i rodzaj pobieranych danych. Różne typy deklaracji używają różnych typów właściwości, a także używają różnych typów danych. Podczas tworzenia właściwości jednym z wyborów jest ustawienie typu danych, a po ustawieniu właściwość zostaje zablokowana dla tego typu danych. Ma to wpływ na sposób ich wykorzystania i musi istnieć w planach pewna ich liczba, zanim będzie można zdefiniować użyteczną właściwość.

Koordynacja prac nad właściwościami odbywa się na stronie Template:Ll.

Template:Properties by datatype Template:Clear

Właściwości według typu

Aby uzyskać listę właściwości, które obecnie wymagają każdego typu danych, zobacz:

Typy danych do łączenia encji

Wikidata ma 6 rodzajów encji (Template:Entitytype, Template:Entitytype, Template:Entitytype, Template:Entitytype, Template:Entitytype i Template:Entitytype). W przypadku każdego typu encji istnieje taki sam typ danych, który może być wykorzystywany do łączenia encji tego typu.

⧼datatypes-type-wikibase-item⧽ Template:Anchor
Link do Template:Ll. ([[Special:ListProperties/wikibase-item|Template:Int list of properties]])
⧼datatypes-type-wikibase-property⧽ Template:Anchor
Link do Template:Ll. ([[Special:ListProperties/wikibase-property|Template:Int list of properties]])
⧼datatypes-type-entity-schema⧽ Template:Anchor
Link do Template:Ll. ([[Special:ListProperties/entity-schema|Template:Int list of properties]])

Poniższe typy danych są przeznaczone głównie do deklaracji dotyczących leksemów, które stanowią Template:Ll Wikidanych.

⧼datatypes-type-wikibase-lexeme⧽ Template:Anchor
Link do Template:Ll. ([[Special:ListProperties/wikibase-lexeme|Template:Int list of properties]])
⧼datatypes-type-wikibase-form⧽ Template:Anchor
W przypadku deklaracji dotyczących leksemów odwołujących się do Template:Ll innych leksemów w celu wskazania ich relacji. ([[Special:ListProperties/wikibase-form|Template:Int list of properties]])
⧼datatypes-type-wikibase-sense⧽ Template:Anchor
W przypadku deklaracji dotyczących leksemów odwołujących się do Template:Ll w innych leksemach. ([[Special:ListProperties/wikibase-sense|Template:Int list of properties]])

Typy danych oparte na ciągach znaków Template:Anchor

Template:Anchor

⧼wikibase-listdatatypes-string-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with string-datatype -- Special:ListProperties/string

Łańcuch znaków, cyfr i symboli, które nie muszą być tłumaczone na różne języki lub formaty liczb. Ciąg znaków nie jest używany do obliczeń.

Template:Int Examples⧼colon⧽
  • B123
  • 90928390-XLE
  • u29238

Maximum length is 1,500 characters on Wikidata, as defined with wmgWikibaseStringLimits in InitialiseSettings.php.

Template:Anchor

⧼wikibase-listdatatypes-monolingualtext-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with monolingualtext-datatype -- Special:ListProperties/monolingualtext

A string that is not translated into other languages. This type of string is defined once and reused in all languages. Typical use is a geographically localized entity name written in the local language, an identifier of some kind, a chemical formula or a Latin scientific name. See Template:Ll for information about the language codes available for monolingual text values and how to request support for additional language codes. (Note that monolingual text also implies a single script system, which can make the string somewhat problematic.)

Maximum length is 1,500 characters on Wikidata, as defined with wmgWikibaseStringLimits in InitialiseSettings.php.

Template:Anchor

⧼wikibase-listdatatypes-external-id-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with external-id-datatype -- Special:ListProperties/external-id

String that represents an identifier used in an external system. Will display as external link if a Template:Property is defined. See: External identifiers.

Maximum length is 1,500 characters on Wikidata, as defined with wmgWikibaseStringLimits in InitialiseSettings.php.

Template:Anchor

⧼wikibase-listdatatypes-url-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with url-datatype -- Special:ListProperties/url

A generalized "URL" that identifies some kind of external resource, perhaps a link to an external site of some kind, or an identifier used for lookup in some kind of specialized resource.

Maximum length is 1,500 characters on Wikidata, as defined with wmgWikibaseStringLimits in InitialiseSettings.php.

Typy danych odnoszące się do plików na Commons

Template:Anchor

⧼wikibase-listdatatypes-commonsmedia-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with commonsMedia-datatype -- Special:ListProperties/commonsMedia

References to files on Wikimedia Commons. During entry in the textfield the "File" namespace on Commons will be searched for matching entries. These files can be used both to illustrate the concepts in Wikidata and as an actual property value for inclusion on Wikipedia.

Template:Int Examples⧼colon⧽
  • Wikidata-logo.svg

Template:Anchor

⧼wikibase-listdatatypes-geo-shape-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with geo-shape-datatype -- Special:ListProperties/geo-shape

Reference to map data file on Wikimedia Commons. During entry in the textfield the "Data" namespace on Wikimedia Commons will be searched for matching entries.

Template:Anchor

⧼wikibase-listdatatypes-tabular-data-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with tabular-data-datatype -- Special:ListProperties/tabular-data

Reference to tabular data file on Wikimedia Commons. During entry in the textfield the "Data" namespace on Commons will be searched for matching entries.

Typy danych dla określonych notacji

Template:Anchor

Mathematical expression

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with math-datatype -- Special:ListProperties/math

Sformatowany ciąg znaków wyświetlany jako wzór.

Example:

\sqrt{1-e^2} produces: 1e2

See w:Help:Displaying a formula for applicable format.

Current limitation: input text can't be queried on Query Service.

Template:Anchor

⧼wikibase-listdatatypes-musical-notation-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with musical-notation-datatype -- Special:ListProperties/musical-notation

Generated image in .png format that displays a musical score. Values for that data type are strings describing music following LilyPond syntax.

Example:

Value string \relative c' { c d e f | g2 g | a4 a a a | g1 |}, produces
<score>\relative c' { c d e f | g2 g | a4 a a a | g1 |}</score>

Inne typy danych

Template:Anchor

⧼wikibase-listdatatypes-quantity-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with quantity-datatype -- Special:ListProperties/quantity

A Quantity value represents a decimal number, together with information about the uncertainty interval of this number, and a unit of measurement. The attributes are:

  • amount: the quantity's main value
  • lowerBound: the quantity's lower bound (optional)
  • upperBound: the quantity's upper bound (optional)
  • unit: unit of measure item (empty for dimensionless values)

Internally, amount, lower bound and upper bound are strings; positive numbers are stored with a plus sign, though this will not be displayed. The representation of a quantity may not be longer than 127 characters; therefore, the maximal value of a quantity is 10^126-1.

Konwersja jednostek nie została jeszcze wdrożona (11 października 2015).

The normalisation table is readable as a JSON file in the WMF Mediawiki repository.

Template:Int Examples⧼colon⧽
  • 762 (dimensionless)
  • 2500 km (upper and lower bounds are not set, with unit)
  • 1.03 ± 0.02 g (enter as nominal value +/- tolerance, representing a lower and upper bound, with unit). The tolerance is in some cases not shown at Wikipedia, only the nominal value, for example in Wikidata lists produced by the listeria bot.

Template:Anchor

⧼wikibase-listdatatypes-time-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with time-datatype -- Special:ListProperties/time

Ten typ danych przechowuje datę w kalendarzu gregoriańskim lub juliańskim. Zobacz szczegółową strukturę.

Template:Int Examples⧼colon⧽
  • 2012
  • 1780-05 (=maj 1780)
  • 1833-11-01 (=1 listopada 1833)

Zobacz Template:Ll, aby uzyskać więcej informacji.

Template:Anchor

⧼wikibase-listdatatypes-globe-coordinate-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ Category:Properties with globe-coordinate-datatype -- Special:ListProperties/globe-coordinate

A geographical position given as a latitude-longitude pair (in gms or decimal degrees) for a given "globe" (any stellar body). Globe defaults to "Earth" (globe: http://www.wikidata.org/entity/Q2). A "precision" parameter describes the resolution of the source of the coordinate. Note that the coordinate system is assumed to be "WGS84" (Template:Q), which may not be suitable for less Earth-like bodies, and this is not configurable.

Template:Phabricator

Currently, the Web UI of Wikidata doesn't expose all parameters of this data type. The value is visualized only as the coordinate, plus an embedded map if the globe is Template:Q. The precision can be modified in the edit mode. The globe is not visible, nor editable, in the item view. The full configuration is however visible in the history diff view (example).

Template:Phabricator

When using the Web UI, the value saved will be an exact multiple of the precision chosen.

It is possible to edit the data in full via API. The CLI tool is one way to access the API. In this example Template:Q is given a coordinate on Template:Q using the globe parameter (used in Template:P):

wd ac Q520 P625 '{ "latitude": 18.4, "longitude": 226, "precision": 0.016666666666667, "globe": "http://www.wikidata.org/entity/Q111" }'

The globe.js script adds a UI to set the globe parameter of Template:P.

Bots such as LocatorBot may detect when the globe parameter of Template:P is not set according to Template:P. Adding Template:P and waiting for a bot to update the coordinate globe is an accepted workaround.

Szczegóły techniczne

In the Template:Ll format each value is represented by "datatype": <datatype>, "datavalue": {"type": <type>, "value": ...}, where the representation of the value depends on the type.

In the Template:Ll format data types are represented by the RDF name in the following table prefixed with http://wikiba.se/ontology# (or the wikibase: prefix in case of the RDF dumps). Note that this prefix is also available in the Template:Ll, so for example Template:Quickquery will return all properties of data type String.

{{#invoke:datatypes|overviewTable}}

Ograniczenia

Oczekujące typy danych

For none of the following dates of implementation are likely to be available. Existing datatypes may solve it in the meantime.

Zobacz: Wikidane:Plan rozwoju

Do zrobienia

Czas trwania

Template:Tracked czas w formacie HH:MM:SS

W planach

Właściwość obliczona

Template:Tracked

A property calculated by Wikibase and added directly to items. Not in development plan.

Possible uses: number of statements on the item.

Celestial coordinates

Template:Tracked

A coordinate format for specifying positions of celestial objects. Not in development plan.

Template:Anchor

Integer datatype

Template:Tracked Typ danych ilościowych dla dodatnich liczb całkowitych. Zostało to częściowo zaimplementowane poprzez usunięcie precyzji i utworzenie Template:Q.

Monostring item

A datatype allowing descriptions in any language, but a single label. Not in development plan.

Current alternatives: lexemes

Alternative that is being evaluated: multilingual label replacing repeated labels

Template:Anchor

Tekst wielojęzyczny

Template:Tracked

A string that must be translated into other languages. Use might be an entity name on non-local form, that is translated into various languages and script systems. (Note that multilingual text also imply a lot of manual work during translation.). Actual purpose to be determined.

Tekst wielowierszowy

Template:Tracked

A string that may contain newlines.

Remote property

Template:Tracked

Properties in remote repositories are likely to be identified through a special field on existing entities, not a separate datatype.

Template:Anchor

Serie wartości

Template:Tracked

A simplified way to store series of values for different points in time. Not in development plan.

Szachy

Template:Tracked

Display strings in FEN notation as in Template:P directly as chessboards.

Hiero

Strings for display with WikiHiero. Strings in WikiHiero syntax are embedded in <hiero></hiero> to display. Samples on Talk:Q68101340 and Property_talk:P7383.

Phab request to do.

Combined human-readable and numeric id

Template:Tracked

Datatype to add numeric id and page title, e.g. of a MediaWiki page. Qualifier Template:P is sometimes added to property value with page titles. Some properties use the numeric value directly.

Wikibase statement

Template:Tracked

Datatype to reference a specific Wikidata statement.

Wyrażenia regularne

Template:Tracked

Datatype to store regular expressions (regex). These are currently stored as strings or monolingual text, e.g. Template:P, Template:P.

Zakresy adresów IP

Template:Tracked

Datatype to store address ranges and simplify querying them.

Typy danych, które nigdy nie będą zaimplementowane

Boolean

Template:Tracked

Declined. Suggested alternative: item-datatype.

Zmiana typu danych

A property in "string" datatype may be converted to "external identifier" datatype by a system administrator. To propose such a change, you may start a discussion at the talk page of the property or Project chat. After a consensus, a request may be made in Contact the development team. You should read previous discussion if you want to convert a property created before 2016.

Other changes of data type requires creating a new property and deleting the old one. You should use Properties for deletion for such requests.

Zobacz też