Help:Data type/ar

From testwiki
Revision as of 16:09, 24 August 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

تنسيق العمل على الخصائص يحدث في Template:Ll.

Template:Properties by datatype Template:Clear

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

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

Wikidata has 6 types of entities (Template:Entitytype, Template:Entitytype, Template:Entitytype, Template:Entitytype, Template:Entitytype and Template:Entitytype). For each entity type there exists a same-named data type that can be used to link entities of that type.

⧼datatypes-type-wikibase-item⧽ Template:Anchor
Link to an Template:Ll. ([[Special:ListProperties/wikibase-item|Template:Int list of properties]])
⧼datatypes-type-wikibase-property⧽ Template:Anchor
خاصية (تجمع على: خاصيات وخصائص). وصلة داخلية إلى Template:Ll. ([[Special:ListProperties/wikibase-property|Template:Int list of properties]])
⧼datatypes-type-entity-schema⧽ Template:Anchor
Link to an Template:Ll. ([[Special:ListProperties/entity-schema|Template:Int list of properties]])

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

⧼datatypes-type-wikibase-lexeme⧽ Template:Anchor
Link to a Template:Ll. ([[Special:ListProperties/wikibase-lexeme|Template:Int list of properties]])
⧼datatypes-type-wikibase-form⧽ Template:Anchor
For statements on lexemes that reference Template:Ll on other lexemes in order to indicate their relation. ([[Special:ListProperties/wikibase-form|Template:Int list of properties]])
⧼datatypes-type-wikibase-sense⧽ Template:Anchor
For statements on lexemes that reference Template:Ll on other lexemes. ([[Special:ListProperties/wikibase-sense|Template:Int list of properties]])

String-based data types Template:Anchor

Template:Anchor

⧼wikibase-listdatatypes-string-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ تصنيف:خصائص بنوع البيانات-نص -- Special:ListProperties/string

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

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⧽ تصنيف:خصائص بنوع البيانات-نص أحادي اللغة -- Special:ListProperties/monolingualtext

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

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⧽ تصنيف:خصائص بنوع البيانات-معرف خارجي -- Special:ListProperties/external-id

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

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⧽ تصنيف:خصائص بنوع البيانات-مسار -- 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

Template:Anchor

⧼wikibase-listdatatypes-commonsmedia-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ تصنيف:خصائص بنوع البيانات-وسائط كومنز -- Special:ListProperties/commonsMedia

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

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⧽ تصنيف:خصائص بنوع البيانات-شكل جغرافي -- Special:ListProperties/geo-shape

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

Template:Anchor

⧼wikibase-listdatatypes-tabular-data-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ تصنيف:خصائص بنوع البيانات-جدول بيانات -- Special:ListProperties/tabular-data

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

Data types for specific notations

Template:Anchor

Mathematical expression

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ تصنيف:خصائص بنوع البيانات-رياضيات -- Special:ListProperties/math

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

مثال:

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

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

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>

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

Template:Anchor

⧼wikibase-listdatatypes-quantity-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ تصنيف:خصائص بنوع البيانات-كمية -- 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.

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

Template:Anchor

⧼wikibase-listdatatypes-time-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ تصنيف:خصائص بنوع البيانات-زمن -- Special:ListProperties/time

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

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

See Template:Ll for more.

Template:Anchor

⧼wikibase-listdatatypes-globe-coordinate-head⧽

Template:Int type⧼colon⧽ Template:Datatype (Template:Datatype)
Template:Int list of properties⧼colon⧽ تصنيف:خصائص بنوع البيانات إحداثيات -- Special:ListProperties/globe-coordinate

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

Technical details

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}}

Limitations

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

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

انظر: Wikidata:Development plan

يجب القيام به

زمن

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

للتخطيط

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

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

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

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

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

Template:Anchor

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

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

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

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

Current alternatives: lexemes

Alternative that is being evaluated: multilingual label replacing repeated labels

Template:Anchor

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

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

Multiline text

Template:Tracked

A string that may contain newlines.

خاصية عن بعد

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

Template:Anchor

سلسلة القيمة

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

Chess

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.

Regular expressions

Template:Tracked

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

IP address ranges

Template:Tracked

Datatype to store address ranges and simplify querying them.

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

قيمة منطقية

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

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.

انظر أيضا