Shortcut: Help:QS

Help:QuickStatements/ar

From Wikidata
Jump to navigation Jump to search

الإيقونة المتستخدمة في قوالب كومنز التي تصدر البيانات عبر QuickStatements
QuickStatements
2019 Coolest Tool Award Winner
in the category
Editor

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

الأدوات[edit]

هناك عدة إصدارات من بيانات سريعة متوفرة:

Syntax between versions can vary slightly. The rest of the document will describe the syntax of the current version, but will mark parts which were not supported in the earlier versions.

تركيب الأوامر[edit]

This section describes syntax used since V1 version of the tool, sometimes referred to as V1 commands[1].

إضافة بيان بسيط[edit]

You can specify the statements to add by typing/pasting into the tool's text area. Different parts of the statement are separated by a TAB or "|"[2] characters. Each command is in a new line, or separated by "||"[2] characters. Hint: You can also use a spreadsheet software such as Microsoft Excel or LibreOffice Calc; copying/pasting the cells should automatically insert TABs. Also text editors like Notepad++ allow replacement of any symbol by the TAB character (\t).

كل جملة must تتكون من كيان وخاصية وقيمة. الكيان يمكن أن يكون عنصر أو خاصية أو لكسيم أو شكل أو sense.

القيمة يمكن أن يكون كيان آخر أو سطر نصي أو وقت أو موقع أو كمية، اعتمادا على نوع الخاصية، أو واحدة من القيم الخاصة somevalue أو novalue (طالع Help:Statements#Unknown or no values).

A value can be another entity, a string, a time, a location, or a quantity, depending on the property type, or one of the special values somevalue or novalue (see Unknown or no values).

Formatting of each part:

  • Items on Wikidata are always in the form Qxx. On Commons they are always in the form Mxx. In QuickStatements version 1 one could use an article name instead of the q-code, if one filled in a xxwiki value in the input box above the text area; the correct item number (if available) was retrieved automatically.
    Example: Q4115189 TAB P31 TAB Q1
    Meaning: add to Wikidata Sandbox (Q4115189)instance of (P31)Universe (Q1)
  • Properties in the form Pxx.
  • Lexemes in the form Lxxx.
  • Forms in the form Lxxx-Fyy.
  • Senses in the form Lxxx-Syy.
  • Strings (including URLs, and numerical values of text fields, for example external-ID property values) must be in """triple double quotes""". Many statements take values in string format, including external identifiers (like VIAF ID (P214)), filenames (like image (P18)) or other page names (like Commons category (P373)).
    Example: Q41576278 TAB P373 TAB """Antoni Ignacy Mietelski"""
    Meaning: add to Antoni Ignacy Mietelski (Q41576278)Commons category (P373)Antoni Ignacy Mietelski
    Caution: Some characters in the string seem to confuse the tool. Those include: "_" (underscore), " (double quote), " " (spaces), "=", and possibly more. Adding URLs with those characters, like this one or this might fail. String and URLs with those characters might work when interacting with the tool through the interface but fail when interacting through URL.
  • Monolingual text prefix text in "double quotes" with the language and a colon, e.g. en:"Some text"
    Example: Q1214098 TAB P1476 TAB pl:"Krzyżacy"
    Meaning: add to The Knights of the Cross (Q1214098)title (P1476)"Krzyżacy" (Polish)
  • Time values must be in format eg +1967-01-17T00:00:00Z/11, where /11 designates the precision. The precision is: 0 - billion years, 1 - hundred million years, ..., 6 - millennium, 7 - century, 8 - decade, 9 - year (default), 10 - month, 11 - day, 12 - hour, 13 - minute, 14 - second.
    Example: Q41576483 TAB P569 TAB +1839-00-00T00:00:00Z/9
    Meaning: add to Bronisław Podbielski (Q41576483)date of birth (P569)+1839
    Use "-" for dates BC; and use at least 4 digits.
    Set an additional "/J" if you want to set the date in Julian Calendar (see this list to understand where this should be done).
    If submitting to the API, use "%09" instead of the TAB symbol, "%2B" instead of the "+" symbol, "%3A" instead of the ":" symbol, and "%2F" instead of the "/" symbol.
  • Location coordinates in the form of @LAT/LON, with LAT and LON as decimal numbers.
    Example: Q3669835 TAB P625 TAB @43.26193/10.92708
    Meaning: add location to San Dalmazio (Q3669835)
  • Quantity in the form of amount~toleranceUxx[2], with amount and tolerance being a rational numbers and Uxx being the item number of a unit (Qxx). Unit and tolerance values are optional. Don't leave any spaces in the quantity definition.
    QuickStatements version 1 used different syntax for Quantity: amount[lower,upper]Uxx, with amount, lower and upper being a rational numbers.
    lower, upper are optional and must be either both present or both absent. When present, they should be enclosed in square brackets and separated by ,
    amount, lower and upper must use . as decimal separator, must not use any thousands separator and may be prefixed by "+" or "-".
    10, 10U11573, -10[-12.5,-7.5], 0[-5,5]U11573 are all valid quantities (where U11573 indicates metre (Q11573))
    Quantities with tolerance may be entered as 1.2~0.3 in QuickStatements version 2, which is the same as 1.2[0.9,1.5] in QuickStatements version 1 and means 1.2±0.3. [3]
  • somevalue for unknown value Help
  • novalue for no value Help. Both novalue and somevalue should be used without double quotes around it. Both of those statements do work as part of item creation statements using CREATE and LAST keywords.


إضافة بيان مع تصفيات[edit]

يمكن أن يتبع كل بيان "ثلاثي" عدد غير محدود من "أزواج تصفيات" property TAB value.

مثال: Q41577083 TAB P570 TAB +1586-00-00T00:00:00Z/7 TAB P1319 TAB +1586-00-00T00:00:00Z/9
المعنى: أضف إلى Gian Federigo Bonzagna (Q41577083)date of death (P570)16. centuryearliest date (P1319)+1586
Example: Q41577083 TAB P570 TAB +1600-00-00T00:00:00Z/7 TAB P1319 TAB +1586-00-00T00:00:00Z/9

إضافة بيان مع مراجع[edit]

يمكن أن يتبع كل بيان عدد غير محدود من "أزواج مصدر" خاصية المصدر تبويب قيمة، الخاصية المصدر مماثلة للخاصية "العادية"، إلا أنها تستخدم النموذج Sxx بدلا من Pxx.

مثال: Q22124656 TAB P21 TAB Q6581097 TAB S143 TAB Q24731821 TAB S813 TAB +2017-10-04T00:00:00Z/11
يعني: إضافة إلى Gotō Ichijō (Q22124656)sex or gender (P21)male (Q6581097) مع المرجع imported from Wikimedia project (P143)Commons Creator page (Q24731821)retrieved (P813)

By default, all sources will go into the same "reference group" (a block of property/value pairs). If you want to create more than one reference group in a single command row, simply prefix the first source property of the new group with an exclamation mark: "!Sxx" instead of "Sxx". (In the first reference group, the "!" is optional and will not influence the outcome.)

ملاحظات:

  • البيانات مع تطابق تام (للخاصية والقيمة) لن تضاف مرة أخرى؛ ولكن يمكن إضافة مراجع إضافية إلى البيان.
  • وفي الإصدار السابق، كانت كل مصدر تمثل مرجعا فرديا، ولم تكن تجمع ضمن مرجع واحد؛ لكن هذا تم تصويبه في الإصدار الثاني.
  • Existing statements with an exact match (property and value) will not be added again; however additional references might be added to the statement.
  • You can mix qualifiers and references in the same statement. Just use Sxx instead of Pxx when using sources.
  • In QuickStatements version 1 each source claim represented an individual reference, i.e. they were not grouped within one reference; it works properly now in QuickStatements version 2.


إضافة تسميات وتسميات مستعارة وأوصاف ووصلات مواقع[edit]

As with adding simple text statements, each command must consist of an item, a command, and a string in double quotes.

  • To add a label in a specific language to an item, use "Lxx" instead of a property, with "xx" as the language code.
    Example: Q340122 TAB Lpl TAB "Cyprian Kamil Norwid"
    Meaning: add Polish label "Cyprian Kamil Norwid" to Cyprian Norwid (Q340122)
  • To add an alias in a specific language to an item, use "Axx" instead of a property, with "xx" as the language code.
    Example: Q340122 TAB Aen TAB "Cyprjan Kamil Norwid"
    Meaning: add English alias "Cyprjan Kamil Norwid" to Cyprian Norwid (Q340122)
    Tip: Multiple aliases can be added at the same time by separating them with the pipe character ("|").
    Example: Q340122 TAB Aen TAB "Cyprian Kamil Norwid|Cypryan Kamil Norvid"
  • To add a description in a specific language to an item, use "Dxx" instead of a property, with "xx" as the language code.
    Example: Q340122 TAB Dde TAB "polnischer Dichter"
    Meaning: add German description "polnischer Dichter" to Cyprian Norwid (Q340122)
  • To add a sitelink to a specific page on a site to an item, use "Sxxx" instead of a property, with "xxx" as the site (e.g. enwiki, commonswiki).
    Example: Q340122 TAB Szhwiki TAB "塞浦路斯·諾爾維特"
    Meaning: add sitelink to Chinese Wikipedia (塞浦路斯·諾爾維特) to Cyprian Norwid (Q340122)

If you want to remove a label/description/sitelink, the value has to be an empty string and the rest of the command will be the same.

إنشاء عنصر جديد[edit]

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

An example for creating a new item, adding a sitelink, and setting a label:

CREATE
LAST TAB Sfrwiki TAB "Le croissant magnifique!"
LAST TAB Lfr TAB "Le croissant magnifique!"
Meaning: create a new item with a link to French Wikipedia w:fr:Le croissant magnifique! and with French label "Le croissant magnifique!"

Properties may be created in the same way with "CREATE_PROPERTY" followed by a TAB or | and the entity type, e.g. one of:

commonsMedia, globe-coordinate, wikibase-item, wikibase-property, string, monolingualtext, external-id, quantity, time, url, math, geo-shape, musical-notation, tabular-data, wikibase-lexeme, wikibase-form, wikibase-sense.

This is mostly of use on third-party Wikibase instances, as property creation is restricted on Wikidata.

دمج عناصر[edit]

يمكنك دمج عنصرين، العنصر الأول سيتم دمج وتحويله (في حالة النجاح) إلى العنصر الثاني.

دمج تبويب مصدر Q تبويب وجهة Q

إزالة بيانات[edit]

يمكنك إزالة بيانات محددة عن طريق بدء سطر بـ "-". (لإزالة التسميات أو الأوصاف; اضبطها على السلسلة الفارغة.)

مثال: -Q4115189 TAB P31 TAB Q1
المعنى: أزل من Wikidata Sandbox (Q4115189)instance of (P31)Universe (Q1)

Dates with precision>9 can be removed via their specific date:

-Q98426308	P585	+1988-05-11T00:00:00Z/11

Dates with precision≤9 may use either 00-00 or 01-01 as their month-date value, so it may be necessary to attempt to remove both:

-Q98426308	P585	+1988-01-01T00:00:00Z/9
-Q98426308	P585	+1988-00-00T00:00:00Z/9

In addition you may remove statements with a specific statement ID using the following syntax:

-STATEMENT TAB Q1$00000000-0000-0000-0000-000000000000

The statement ID can be received by:

  • The source code of any entity page, where the ID may be found in the <div> elements with "wikibase-statementview" class
  • API
  • name of statement node in RDF which may be queried by query service (you need to replace the - after entity ID with $)

تعليقات[edit]

Every command can have a comment at its end, which will be inserted into the edit summary for the command[2]. Use the /* ... */ syntax. Before this a TAB may be inserted. Spaces around the comment will be removed before processing. The tool splits adding of a claim and its reference in two edits. When using the "version 1 format" import it seems not to be possible to add a comment for the edit adding the reference. The comment is added to the edit adding the claim (if the claim does not exist yet and is added at all).

Example: Q4115189 TAB P31 TAB Q1 /* This is a comment. */
Meaning: add to Wikidata Sandbox (Q4115189)instance of (P31)Universe (Q1), with "This is a comment." in the edit summary.


صيغة ملف CSV[edit]

Commands[edit]

في الإصدار 2، يمكن للمرء أيضا قص ملف CSV منظم بشكل صحيح ولصقه كبديل للصياغة المقدمة في بيانات سريعة الإصدار 1، سيحدد ملف CSV الأوامر المطلوب تنفيذها، الصف الأول هو عنوان يصف كيفية تفسير الأعمدة.

qid
Always the first column: the item or entity to edit. If left empty, a new item will be created. See item creation sample below.

قد تحدد الأعمدة الأخرى الأوامر التالية:

P1234
A property ID (uppercase) begins a new statement. The column value specifies the main value of the statement, in QuickStatements version 1 syntax.
qal1234
A lowercase "qal" followed by a property number (without "P") adds a qualifier to the current statement. The column value specifies the value of the qualifier, in QuickStatements version 1 syntax. There must be some "P" column before a "qal" column to specify which statement the qualifier is added to.
S1234
An uppercase "S" followed by a property number (without "P") begins a new source for the current statement. The column value specifies the value of the source, in QuickStatements version 1 syntax. There must be some "P" column before an "S" column to specify which statement the source is added to.
s1234
A lowercase "s" followed by a property number (without "P") adds another property-value pair to the current source. The column value specifies the value of the source, in QuickStatements version 1 syntax. There must be some "S" column before an "s" column to specify which source the property-value pair is added to.
Len
An uppercase "L" followed by a language code sets the label in that language.
Dfr
An uppercase "D" followed by a language code sets the description in that language.
Ade
An uppercase "A" followed by a language code adds an alias in that language.
Senwiki
An uppercase "S" followed by a site ID adds a sitelink to that site.
#

A number sign character sets the edit summary (comment) of the preceding command. The tool splits adding of a claim and its reference in two edits. A comment can be added to the edit summary of each of them. For the claim by putting a "#" column between the columns for the claim and its reference, for the reference by putting a "#" column behind its columns. For example:

qid,P21,#,S143,s813,#
Q22124656,Q6581097,comment to claim adding edit,Q24731821,+2017-10-04T00:00:00Z/11,comment to reference adding edit

Item creation[edit]

لإنشاء عنصر جديد; يجب أن يكون العنصر الأول من الصف فارغا، بحيث يبدأ السطر بـ,</code.

على سبيل المثال
qid,Len,Den,P31
,Regina Phalange,fictional character,Q5


For example

creates a new item. Suitable for LibreOffice (paste in cell A1)

filenamelabeldescriptionqid,P31,Len,Den,P18
Mona Lisa - the Louvre.jpgMona Lisaoil painting by Leonardo da Vinci=",Q3305213,"""&B2&""","""&C2&""","""""""&A2&""""""""
Mona Lisa - the Louvre.jpgMona Lisaoil painting by Leonardo da Vinci,Q3305213,"Mona Lisa","oil painting by Leonardo da Vinci","""Mona Lisa - the Louvre.jpg"""

Statement removal commands[edit]

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

qid,P31,-P31
Q4115189,Q5,Q5

Adds to the sandbox item a P31 value of human (Q5) and then removes that same statement again.

Commas and double quotes[edit]

Labels, descriptions, aliases and sitelinks do not need to be in double quotes unless they themselves contain commas (,) or double quotes (").

In this case, replace all double quotes with two double quotes (e.g. Toys "R" UsToys ""R"" Us) and then wrap the string in a pair of double quotes (e.g. "Toys ""R"" Us").

qid,Len
Q4115189,"Toys ""R"" Us"
Q4115189,"Patterns, Predictors, and Outcome"

To add a string value containing double quotes ("), replace all double quotes with two double quotes ("").

As any string value, then wrap it in three double quotes ("""), e.g. """Toys ""R"" Us""".

Samples for Q4115189#P370, notably Toys "R" Us

qid,P370
Q4115189,"""Toys ""R"" Us"""
Q4115189,"""Patterns, Predictors, and Outcome"""
Q4115189,"""Wikidata sandbox item 1"""

مثلا
qid,Len,Den,Aen,P31,-P31,P21,P735,qal1545,S248,s214,S143,Senwiki
Q42,Douglas Adams,author,Douglas Noël Adams,Q5,Q36180,Q6581097,Q463035,1,Q54919,113230702,Q328,Douglas Adams
qid,Len,Den,Aen,P31,-P31,P21,P735,qal1545,S248,s214,S143,Senwiki
Q4115189,Douglas Adams,author,Douglas Noël Adams,Q5,Q36180,Q6581097,Q463035,"""1""",Q54919,"""113230702""",Q328,Douglas Adams
Q4115189,"Toys ""R"" Us",testin sample,Toys R Us,Q5,Q36180,Q6581097,Q463035,"""1""",Q54919,"""113230702""",Q328,"Toys ""R"" Us"

Samples by value type[edit]

Samples use the sandbox item (Q4115189) and can be pasted directly into QuickStatements for testing. Should be risk-free.

Label
qid,Len
Q4115189,Sandbox
Q4115189,"Patterns, Predictors, and Outcome"
Q4115189,"Toys ""R"" Us"
Description
qid,Den
Q4115189,Wikidata item for tests
Q4115189,"sample for Patterns, Predictors, and Outcome"
Q4115189,"description sample for Toys ""R"" Us"
Alias
qid,Aen
Q4115189,Wikidata sandbox
Q4115189,"Predictors, Patterns, and Outcome"
Q4115189,"Toys ""4"" You"
Item
qid,P369
Q4115189,Q5
Q4115189,somevalue
Q4115189,novalue
L123,Q5
L123-S1,Q5
L123-F1,Q5

somevalue is for unknown value Help, novalue for no value Help. F1 and S1 on Lexeme:L123 would have to exist for it to work.

String or external identifiers (external-id)
qid,P370
Q4115189,"""Sandbox"""
Q4115189,"""Patterns, Predictors, and Outcome"""
Q4115189,"""Toys ""R"" Us"""

Monolingual text
qid,P1450
Q4115189,en:"Sandbox"
Q4115189,en:"Toys "R" Us"
Q4115189,"en:""Toys ""R"" Us"""
Q4115189,"en:""Patterns, Predictors, and Outcome"""

en is for English

Date/time
qid,P577
Q4115189,+1856-01-01T00:00:00Z/9
Q4115189,+1856-01-01T00:00:00Z/10
Q4115189,+1856-01-01T00:00:00Z/11

Precisions are 9=year, 10=month, 11=day, so the dates are 1856, January 1856 and 1 January 1856.

Image/Commons media file
qid,P18
Q4115189,"""Frans Breydel - A merry company.jpg"""
Q4115189,"""'Girl Reading' by Mary Colman Wheeler, El Paso Museum of Art.JPG"""
Q4115189,"""Kaubalaeva ""E. Russ"" vrakk.jpg"""
Q4115189,"""''L'empereur Napoleon III'' de Franz-Xaver Winterhalter.jpg"""
URL
qid,P856
Q4115189,"""https://example.com/"""
Q4115189,"""https://example.com/equalsign=test"""
Q4115189,"""https://example.com/underscore_test"""
Quantity
qid,P1114
Q4115189,10
Q4115189,+20
Q4115189,+3.1415926
Q4115189,-40
Q4115189,5.5U11574
Q4115189,+60U11573
Q4115189,+7.5U11574
Q4115189,-80~1.5
Q4115189,2.2~0.3
Q4115189,+1.2~0.3

U11573 is for metre (Q11573), U11574 for second (Q11574). Note the odd result of 1.2~0.3.

Full example[edit]

Full examples can be found at Help:QuickStatements/examples.

تشغيل QuickStatements[edit]

عبر الإصدار الثاني[edit]

QuickStatements V2 intro screen

فيما يلي كيفية استخدام بيانات سريعة (الإصدار 2) في الوضع الأساسي:

بيانات

  1. انتقل إلى https://tools.wmflabs.org/quickstatements/
  2. تأكد من تسجيل الدخول في OAuth ومن رؤية اسمك في الزاوية العلوية اليسرى، إن لم يكن ثم تسجيل الدخول.
  3. انقر فوق "New batch".
  4. قص والصق أوامرك. انظر بناء الجملة في القسم أعلاه.
  5. عند الانتهاء، انقر فوق "Import V1 commands" أو "Import CSV commands".
  6. ستقوم الأداة بتحويل الأوامر إلى نموذج قابل للقراءة، تفقده وانقر فوق "Run" للتنفيذ.
  7. أثناء معالجة بياناتك، تحقق مرة أخرى من النتائج، واضغط على "Stop" إذا اكتشفت مشكلة.
  8. ستخبرك واجهة المستخدم عند معالجة جميع البيانات.

عبر الإصدار الأول[edit]

لقطة شاشة لاستخدام بيانات سريعة الإصدار 1

الإصدار 1 من بيانات سريعة لا يزال متوفرا ولكن لم يعد مصانا، توقف عمله لبعض المستخدمين، في حين لا يزال تيمل بشكل جيد للآخرين، انشقاق NIOSH للأداة متاح أيضا.

  1. انتقل إلى https://tools.wmflabs.org/wikidata-todo/quick_statements.php
  2. قص والصق الأوامر في النافذة
  3. انقر على "Do it!"
  4. ستخبرك واجهة المستخدم عند معالجة جميع البيانات.

استخدام الإصدار الثاني في وضع الدفعات[edit]

متى تستخدم طريقة الدفعات؟[edit]

الإصدار الثاني لدية زر "تشغيل في الخلفية"

يعني وضع الدفعات (المعروف أيضا بالتشغيل في الخلفية) أن بياناتك يتم تنفيذها من خادم ويكيميديا، بدلا من متصفح الويب الخاص بك، هذا له العديد من المزايا:

  • حتى إذا قمت بإغلاق المتصفح أو إذا تعطل حاسوبك، سيتم تنفيذ البيانات حتى آخرها.
  • يمكنك إطلاق عدة دفعات في نفس الوقت، دون إبطاء حاسوبك.
  • يمكنك الحصول على مسار فريد لدفعتك، يمكنك الرجوع إليه لاحقا، تعرض هذه الصفحة بعض الإحصاءات حول شغلك.
  • يمكن لأي شخص إيقاف دفعتك بالانتقال إلى هذا المسار، على سبيل المثال، إذا أدرك شخص ما أن مجموعتك خاطئة وأنك نائم، فيمكنه إيقافها على الفور (بالانتقال إلى صفحة الدفعة الفردية)، بدلا من الاضطرار إلى منعك.
  • Even if you close your browser or if your computer crashes, the statements will be executed until the last one.
  • You can launch several batches in parallel, without slowing down your computer. (The batches seem to be run sequentially)
  • You get a unique URL for your batch, to which you can refer later. This page shows some statistics about your run.
  • To see all your recent batches click "Your last batch". To see everybody else's recent batches click "Last batches"
  • You or a project admin can stop your batch by going to its URL. For instance, if it is realized that the batch is erroneous and you are offline, an admin can stop it immediately (by going to the individual batch page), rather than having to block you.
  • If you discover that something went wrong, you can revert the whole batch afterwards

ولكن هناك أيضا عيوب:

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

قبل تشغيل إحدى الدفعات، قد يكون من الجيد تشغيل بعض البيانات مباشرةً في وضع غير الدفعات للحصول على عرض جيد لما يتم تنفيذه.

استخدام وضع الدفعات[edit]

  1. قم بإعداد بيانك بشكل عادي كما هو موضح في قسم استخدام بيانات سريعة الإصدار 2 أعلاه
  2. بدلا من الضغط على "تشغيل"، اضغط على الزر "تشغيل في الخلفية".
  3. ستعرض "آخر دفعاتك" قائمة بالدفعات الأخيرة التي تديرها، مع إحصائيات.

ﺗﺘﻮﻓﺮ ﻗﻴﻢ اﻹﺣﺼﺎﺋﻴﺎت اﻟﺘﺎﻟﻴﺔ:

  • ﺗﻢ: ﻋﺪد اﻟﺒﻴﺎﻧﺎت اﻟﺘﻲ ﺗﻢ ﺗﺸﻐﻴﻠﻬﺎ ﺑﻨﺠﺎح
  • ﺧﻄﺄ: ﻋﺪد اﻟﺒﻴﺎﻧﺎت اﻟﺘﻲ ﻓﺸﻠﺖ
  • INIT: ﻋﺪد اﻟﺒﻴﺎﻧﺎت اﻟﻤﺘﺒﻘﻴﺔ ﻟﻴﺘﻢ ﺗﺸﻐﻴﻠﻬﺎ؟
  • تشغيل: عدد اﻟﺒﻴﺎﻧﺎت التي يتم تشغيلها الآن؟

التشغيل عبر وصلة[edit]

What you should see if you click on the example link in this section

An alternative way of communicating with QuickStatements is to use a URL instead of cutting and pasting commands into the import window. For example, a command to add to Emile Justin Merlot (Q37887397)VIAF ID (P214)"96480189" with source imported from Wikimedia project (P143)Wikimedia Commons (Q565) is Q37887397 TAB P214 TAB "96480189" TAB S143 TAB Q565. You can also generate a prefilled QuickStatements window with https://quickstatements.toolforge.org/#/v1= Q37887397%7CP214 %7C%2296480189%22%7C S143%7CQ565 or https://quickstatements.toolforge.org/#/v1=Q37887397%7CP214%7C%2296480189%22%7CS143%7CQ565. The steps of converting V1 syntax to URL are:

  1. replace TAB with "|" and newline with "||"
  2. apply URL encoding to the string, which will replace "|" with "%7C", double quote with "%22", space with "%20", slash "/" with "%2F", etc.[4]
  3. put https://quickstatements.toolforge.org/#/v1= in front of it

Many templates on Commons, like c:Template:Creator or c:Template:Artwork use that technique to package information that can be imported to Wikidata into a clickable URL.

تلميحات:

  • لا يمكن أن يحتوي المسار على أية مسافات، استبدل TAB بـ "%09"، وعلامتي التنصيص بـ"%22"، والمساحة بـ"%20" ، ونهاية السطر بـ"%0A" والشرطة "/" with "%2F".
  • يمكن إضافة البيانات التي تحتوي على مدخلات المسار التي تحتوي على "_" أو " " من خلال واجهة عادية ولكن ليس من خلال المسار، على سبيل المثال هذا المسار تم إنتاجه بواسطة الأداة ويعمل، ومع ذلك، إذا قمت بالنقر فوقه أو قمت بقصه ولصقه، فسوف ينتهي بك الأمر في صفحة ذات مسار مختلف قليلا، وهذا لا يعمل.
  • [[File:Commons to Wikidata QuickStatements.svg|20px|link=https://tools.wmflabs.org/quickstatements/index_old.html/#v1=Q37887397%09P214%09%2296480189%22%09S143%09Q565]] يقوم بترميز مسار داخل أيقونة يدوية قابلة للنقر: (انقر فوقها ولكن لا تنقر فوق "run"، ولن يعمل الضغط عليها لأن هذا العنصر يحتوي بالفعل على هذه الخاصية).
  • يمكن تحديد الصفحات التي تحتوي على مسارات بيانات سريعة من خلال Special:LinkSearch (راجع هنا) أو من خلال استدعاء استعلام قاعدة بيانات externallinks table (انظر على سبيل المثال هنا).
  • [[File:Commons to Wikidata QuickStatements.svg|20px|link=https://quickstatements.toolforge.org/#/v1=Q37887397%7CP214%7C%2296480189%22%7CS143%7CQ565]] will encode the URL within a handy clickable icon: (click it but do not click "run"; pressing it will not work since that item already has that property).
  • Pages with QuickStatements URLs may be located through Special:LinkSearch (see here) or through a database query calling externallinks table (see for example here).

Clients[edit]

- Python

الحدود[edit]

الإصدار الثاني من الأداة لا يستطيع القيام بالتالي:

  • يضع مرتبة ranks للبيانات
  • ضبط التعليقات عند إزالة البيانات
  • يحدد التقويم لبيان التاريخ
  • يحدد الدقة أو الكوكب لبيان الإحداثيات
  • إضافة المسارات ببعض الحروف مثل "_" or "="
  • إضافة البيانات للعناصر المحولة
  • إضافة بيان ثاني بنفس الخاصية والقيمة لكن بمعرفات مختلفة، بما أن المعرفات الإضافية ستتم إضافتها للبيان الأول

Note that for using QuickStatements, an account needs to be autoconfirmed. Also there is no way for users using bot accounts to mark their edits as bot edit (but there is an open ticket to address that).

الأسئلة الشائعة[edit]

هل يمكن لبيانات سريعة إضافة البيانات المرجعية بأكثر من ادعاء واحد؟
نعم، يمكن لبيانات سريعة الحالية إضافة المراجع التي لديها على سبيل المثال كل من imported from Wikimedia project (P143) وretrieved (P813) (انظر هنا) أو كل من stated in (P248) وpage(s) (P304).
كيف يمكنني تجربة بيانات سريعة؟
استخدم Wikidata Sandbox (Q4115189).
كيف أقوم بالإبلاغ عن المشكلات المتعلقة بالأداة؟
تحقق مع المستخدمين الآخرين في صفحة النقاش أو في Wikidata:Project chat، يجب الإبلاغ عن الأخطاء المؤكدة التي تم إصلاحها في صفحة Bitbucket الخاصة بالأداة.
أين أقترح ميزات جديدة؟
يمكنك أن تسأل في صفحة Bitbucket الخاصة بالأداة أو في User:Magnus Manske/quick statements2، ولكن كن على علم أننا نبقي ماغنوس مشغولا!
ما هو الحد الأقصى لعدد الأوامر التي يمكنني إدخالها دفعة واحدة؟

غير موثق، تم اختباره بالفعل بأكثر من 11000 أمر، ولكن لاحظ أن هذه الدفعات الكبيرة ستستغرق عدة ساعات حتى تكتمل.

أفضل الممارسات[edit]

  • تسمح بيانات سريعة بإجراء تعديلات تتراوح من بيان واحد إلى تشغيلات متعددة الآلاف للعناصر، يجب أن تتم عمليات التشغيل الكبيرة أو التي يُحتمَل أن تكون مثيرة للجدل من خلال عملية موافقة موضحة في Wikidata:Bots.
  • يجب على المستخدمين تجنب إنشاء عناصر مكررة.
  • يجب أن تحتوي جميع البيانات على مراجع حسب Help:Sources، قد يكون ذلك أقل أهمية بالنسبة للمعرفات، مثل VIAF ID (P214) أو RKDartists ID (P650)، إلخ.
  • المستخدمون الذين يقومون بإجراء التعديلات مسؤولون عن إصلاح تغييراتهم أو التراجع عنها في حالة العثور على مشكلات، راجع إزالة البيانات.

Using the API to start batches[edit]

If you are logged in on QuickStatements, you can get a token on your user page. That page also contains information about how to use the token to submit batches programmatically. You need to have submitted at least one server-side batch manually before for this to work!

Edit groups[edit]

QuickStatements V2 creates edit groups for all individual batches. You may discuss individual edit groups, or rollback the whole edit group.

EditGroups is another external tool, not part of QuickStatements. Currently it works on Wikidata, and there is also an instance for Commons. On other Wikibase instances, it may be unavailable.

انظر أيضاً[edit]

Tools that export to QuickStatements[edit]

References[edit]

  1. https://wikidata-todo.toolforge.org/quick_statements.php
  2. 2.0 2.1 2.2 2.3 syntax works only in QuickStatements version 2
  3. Note that due to the way computers operate with floating-point numbers the input format of version 2 may produce undesired results when working with decimal numbers.
  4. https://www.url-encode-decode.com/ is a handy URL encoder/decoder