مساعدة:أنواع البيانات

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Help:Data type and the translation is 54% complete.

أنواع البيانات تحدد كيفية تصرف البيان، ونوع البيانات التي تتخذها، تستخدم أنواع مختلفة من البيانات أنواعا مختلفة من الخصائص، كما أنها تستخدم أيضا أنواعا مختلفة من البيانات، أثناء إنشاء الخصائص، يكون أحد الاختيارات هو تعيين نوع البيانات، وبمجرد تعيين الخاصية يتم إقفالها إلى نوع من البيانات هذه، وهذا له آثار على كيفية استخدامها ويمكن أن يكون هناك قدر من التخطيط قبل أن يتم تعريف خاصية صالحة.

تنسيق العمل على الخصائص يحدث في Wikidata:Property proposal.

Built-in data types
Data typeNumber of
properties
External identifier٨٬٨٥٦
Item١٬٦٥٤
Quantity٦٥٨
String٣٣٣
URL١١٠
Commons media file٨٠
Point in time٦٧
Monolingual text٦٢
Property٢١
Geographic coordinates١٠
Tabular data٦
Geographic shape٣
Extra data types
Data typeNumber of
properties
Mathematical expression٣٦
Sense١٩
Lexeme١٥
Form١٠
Musical Notation٦


خاصيات حسب النوع

للحصول على قائمة الخصائص التي تتطلب حاليًا كل نوع من أنواع البيانات; راجع إما:

Wikidata has 5 types of entities (Item, Property, Lexeme, Sense and Form). For each entity type there exists a same-named data type that can be used to link entities of that type.

Item
Link to an item. (list of properties)
Property
خاصية (تجمع على: خاصيات وخصائص). وصلة داخلية إلى خاصية. (list of properties)

The following data types are primarily meant for statements on Lexemes, which make up the lexicographical data of Wikidata.

Lexeme
Link to a lexeme. (list of properties)
Form
For statements on lexemes that reference forms on other lexemes in order to indicate their relation. (list of properties)
Sense
For statements on lexemes that reference senses on other lexemes. (list of properties)

String-based data types

String

type: string (String)
list of properties: تصنيف:خصائص بنوع البيانات-نص -- Special:ListProperties/string

سلسلة من الحروف والأرقام والرموز التي لا تحتاج إلى أن تُترجَم إلى لغات مختلفة أو صيغ الأرقام، لا يتم استخدام السلسلة لإجراء العمليات الحسابية.

Examples:
  • B123
  • 90928390-XLE
  • u29238

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

Monolingual text

type: monolingualtext (Monolingual text)
list of properties: تصنيف:خصائص بنوع البيانات-نص أحادي اللغة -- Special:ListProperties/monolingualtext

سلسلة لا تُترجَم إلى لغات أخرى، هذا النوع من السلسلة يتم تعريفه وإعادة استخدامه مرة واحدة بجميع اللغات، الاستخدام النموذجي هو اسم كيان مترجم جغرافيا مكتوبا باللغة المحلية أو معرف من نوع ما أو صيغة كيميائية أو اسم علمي لاتيني، راجع Help:Monolingual text languages للمعلومات حول رموز اللغات المتوفرة للقيم النصية أحادية اللغة وكيفية طلب الدعم للحصول على رموز لغات إضافية. (لاحظ أن النص أحادي اللغة يعني أيضا نظامًا نصيا واحدا، والذي يمكن أن يجعل السلسلة إشكالية إلى حد ما.)

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

External identifier

type: external-id (External identifier)
list of properties: تصنيف:خصائص بنوع البيانات-معرف خارجي -- Special:ListProperties/external-id

سلسلة تمثل معرف مستخدم في نظام خارجي، سيتم عرضها كوصلة خارجية إذا تم تعريف المسار.

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

URL

type: url (URL)
list of properties: تصنيف:خصائص بنوع البيانات-مسار -- Special:ListProperties/url

"مسار" عام يحدد نوعا ما من الموارد الخارجية، أو ربما رابطا لموقع خارجي من نوع ما، أو معرفا يُستخدَم للبحث في نوع من الموارد المتخصصة.

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

Data types to reference files on Commons

Commons media

type: commonsMedia (Commons media file)
list of properties: تصنيف:خصائص بنوع البيانات-وسائط كومنز -- Special:ListProperties/commonsMedia

يشير إلى الملفات على ويكيميديا ​​كومنز، أثناء الإدخال في حقل النص، سيتم البحث في نطاق "ملف" على كومنز عن الإدخالات المطابقة، يمكن استخدام هذه الملفات لتوضيح المفاهيم في ويكي بيانات وكقيمة خاصية فعلية لتضمينها في ويكيبيديا.

Examples:
  • Wikidata-logo.svg

Geographic shape

type: geo-shape (Geographic shape)
list of properties: تصنيف:خصائص بنوع البيانات-شكل جغرافي -- Special:ListProperties/geo-shape

إشارة إلى ملف بيانات الخريطة في ويكيميديا ​​كومنز، أثناء الإدخال في حقل النص، سيتم البحث في نطاق "بيانات" في كومنز عن الإدخالات المطابقة.

Tabular data

type: tabular-data (Tabular data)
list of properties: تصنيف:خصائص بنوع البيانات-جدول بيانات -- Special:ListProperties/tabular-data

إشارة إلى ملف بيانات مجدولة في ويكيميديا ​​كومنز، أثناء الإدخال في حقل النص، سيتم البحث في نطاق "بيانات" في كومنز عن الإدخالات المطابقة.

Data types for specific notations

Mathematical expression

type: math (Mathematical expression)
list of properties: تصنيف:خصائص بنوع البيانات-رياضيات -- Special:ListProperties/math

سلسلة منسقة تُعرَض كصيغة.

مثال:

\sqrt{1-e^2} produces:

انظر ar:مساعدة:عرض صيغة رياضية للصيغة المعمول بها.

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

Musical Notation

type: musical-notation (Musical Notation)
list of properties: 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
\relative c' { c d e f | g2 g | a4 a a a | g1 |}


أنواع البيانات المدعومة

Quantity

type: quantity (Quantity)
list of properties: تصنيف:خصائص بنوع البيانات-كمية -- Special:ListProperties/quantity

تمثل قيمة الكمية عددا عشريا مع معلومات حول فاصل عدم التأكد من هذا الرقم ووحدة قياس، السمات هي:

  • كمية: القيمة الرئيسية للكمية
  • الأدنى: كمية الحد الأدنى (اختيارية)
  • الأعلى: كمية الحد الأعلى (اختيارية)
  • الوحدة: وحدة بند القياس (فارغة لقيم الأبعاد)

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.

تحويل الوحدات لم يُنفَّذ حتى الآن (11 أكتوبر 2015).

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

Examples:
  • 762 (أبعاد)
  • 2500 كم (لم يتم تعيين الحدود الدنيا والعليا، مع وحدة)
  • 1.03 ± 0.02 غ (مع الحدود الدنيا والعليا، مع وحدة)

Time

type: time (Point in time)
list of properties: تصنيف:خصائص بنوع البيانات-زمن -- Special:ListProperties/time

هذا النوع من البيانات يخزن التاريخ بالتقويم الغريغوري أو اليولياني انظر الهيكل التفصيلي.

Examples:
  • 2012
  • 1780-05 (=مايو 1780)
  • 1833-11-1 (=1 نوفمبر 1833)

See Help:Dates for more.

Globe coordinate

type: globe-coordinate (Geographic coordinates)
list of properties: تصنيف:خصائص بنوع البيانات إحداثيات -- Special:ListProperties/globe-coordinate

هو موضع جغرافي يُعطَى كزوج من خطوط العرض والطول بـgms أو درجات عشرية للجسم النجمي المعطى، افتراضيا إلى "الأرض" (globe: http://www.wikidata.org/entity/Q2) و"WGS84"، ويضيف الدقة والمدى.

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 Earth (Q2). 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).

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 Olympus Mons (Q520) is given a coordinate on Mars (Q111) using the globe parameter (used in coordinate location (P625)):

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 coordinate location (P625).

Bots such as LocatorBot may detect when the globe parameter of coordinate location (P625) is not set according to located on astronomical body (P376). Adding located on astronomical body (P376) and waiting for a bot to update the coordinate globe is an accepted workaround.

Technical details

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

In the RDF 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 Wikidata query service, so for example ?prop wikibase:propertyType wikibase:String will return all properties of data type String.

NameJSON datatypeRDF nameJSON typeImplemented byLinks
عنصرwikibase-itemWikibaseItemwikibase-entityidbuilt-inlist, query
خاصيةwikibase-propertyWikibasePropertywikibase-entityidbuilt-inlist, query
مفردةwikibase-lexemeWikibaseLexemewikibase-entityidWikibaseLexeme (Q28925815)list, query
معنىwikibase-senseWikibaseSensewikibase-entityidWikibaseLexeme (Q28925815)list, query
صيغةwikibase-formWikibaseFormwikibase-entityidWikibaseLexeme (Q28925815)list, query
نص بلغة وحيدةmonolingualtextMonolingualtextmonolingualtextbuilt-inlist, query
نصstringStringstringbuilt-inlist, query
معرف خارجيexternal-idExternalIdstringbuilt-inlist, query
المسارurlUrlstringbuilt-inlist, query
ملف وسائط من كومنزcommonsMediaCommonsMediastringbuilt-inlist, query
شكل جغرافيgeo-shapeGeoShapestringbuilt-inlist, query
بيانات مجدولةtabular-dataTabularDatastringbuilt-inlist, query
تعبير رياضيmathMathstringMath (Q21677559)list, query
تدوين موسيقيmusical-notationMusicalNotationstringScore (Q21678392)list, query
كميةquantityQuantityquantitybuilt-inlist, query
نقطة زمنيةtimeTimetimebuilt-inlist, query
إحداثيات جغرافيةglobe-coordinateGlobecoordinateglobecoordinatebuilt-inlist, query

Limitations

  • Point in time doesn't support time of day. phab:T57755
  • Quantity doesn't support infinity (Q205), e.g. you cannot state prime number (Q49008)quantity (P1114)infinitely many.

أنواع البيانات المعلقة

لأي من تواريخ التنفيذ التالية من المحتمل أن تكون متاحة، قد تحل أنواع البيانات الموجودة في الوقت الحالي.

انظر: Wikidata:Development plan

يجب القيام به

زمن

الوقت بصيغة سس:دد:ثث.

للتخطيط

الخاصية المحسوبة

خاصية تُحسَب بواسطة قاعدة الويكي وتُضاف مباشرة إلى البنود، ليس في خطة التنمية.

الاستخدامات الممكنة: عدد البيانات في البند.

الإحداثيات السماوية

صيغة لتحديد مواقع الأجرام السماوية، ليس في خطة التنمية.

نوع البيانات عدد صحيح

نوع البيانات الكمية لأعداد صحيحة موجبة.

عنصر سلسلة أحادية

نوع بيانات يتيح الوصف بأية لغة، ولكن بتسمية واحدة، ليس في خطة التنمية.

Current alternatives: lexemes

Alternative that is being evaluated: multilingual label replacing repeated labels

نص متعدد اللغات

سلسلة تجب ترجمتها إلى لغات أخرى، قد يكون الاستخدام اسم كيان في شكل غير محلي، تتم ترجمته إلى العديد من اللغات وأنظمة النص البرمجي. (لاحظ أن النص متعدد اللغات يتضمن أيضا الكثير من الأعمال اليدوية أثناء الترجمة.). الغرض الفعلي سيتم تحديده.

Multiline text

A string that may contain newlines.

خاصية عن بعد

من المرجح أن يتم تحديده من خلال حقل خاص على الكيانات القائمة، وليس كنوع بيانات منفصل.

سلسلة القيمة

هناك طريقة مبسطة لتخزين سلسلة من القيم للحصول على نقاط مختلفة في الوقت المناسب، ليس في خطة التنمية.

Chess

Display strings in FEN notation as in position in Forsyth-Edwards Notation (P6648) 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

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

Wikibase statement

Datatype to reference a specific Wikidata statement.

Regular expressions

Datatype to store regular expressions (regex). These are currently stored as strings or monolingual text, e.g. format as a regular expression (P1793), format as language specific regular expression (P8770).

IP address ranges

Datatype to store address ranges and simplify querying them.

أنواع البيانات التي لن يتم تنفيذها أبدا

قيمة منطقية

رُفِض، البديل المقترح:نوع البيانات بند.

Changing datatype

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.

انظر أيضا