ویکی داده:دسترسی به دادهها
این صفحه، نقطهٔ آغازی برای شما است؛ اگر شما یک مؤسسه، شرکت یا سازمان هستید که تمایل دارید از دادههای ویکیداده استفاده کنید. برای استفاده از دادهها در پروژههای ویکیمدیا باید صفحه راهنمای مربوط به پروژههای ویکیمدیا را مطالعه کنید.
Contents
موارد مهم اولیه که باید بدانید
ویکیداده محدودهٔ وسیعی از دادههای عمومی درباره دنیای ما و نیز پیوند به سایر پایگاههای داده را فراهم میکند. این دادهها تحت پروانه CC0 «اهدای دامنه عمومی» منتشر میشوند. همه میتوانند دادههای این ویکی را ویرایش کنند و دادهها توسط جامعهٔ ویرایشگران ویکیداده نگهداری میشوند.
Changes to APIs and data formats used to access Wikidata are subject to the Stable Interface Policy. Changes to stable interfaces will be announced accordingly. Note that not all data sources mentioned on this page are considered stable interfaces.
چگونه میتوان از دادههای ویکیداده استفاده کرد؟
روشهای گوناگونی برای دسترسی و ویرایش دادههای ویکیداده وجود دارد. شما میتوانید به دادهها به صورت آیتمی یا گروهی از دادهها مانند دامپ دسترسی داشته باشید.
دسترسی در مرحله پیش از داده
به دادهها یا از طریق URI یا از طریق API مدیاویکی میتوان دسترسی پیدا کرد.
رابط دادههای پیوند شده
هر آیتم یا خصوصیت یک URI دائمی دارد که با کمک شناسهاش میتوانید آن را به دست آورید مثل Q42 یا P12 http://www.wikidata.org/entity/
برای مثال URI مربوط به مفهوم داگلاس آدامز عبارت است از http://www.wikidata.org/entity/Q42 با کمک آن میتوانید اطلاعاتی در مورد این شخص حقیقی به دست آورید. http://www.wikidata.org/wiki/Special:EntityData/
Appending an entity's ID to this prefix creates the "abstract" (format neutral) form of the data URL of the entity. When you request a Special:EntityData URL, the special page applies content negotiation to determine the format of Wikidata's output. Most likely you opened the URL in a normal Web browser, and an HTML page of Wikidata's data about the entity will be displayed, because a web browser prefers HTML over other formats. Linked data clients would receive Wikidata's data about the entity in a different format such as JSON or RDF, depending on the HTTP Accept: header of their request.
For cases in which it is inconvenient to use content negotiation (e.g. to view non-HTML content in a web browser), you can also access data about an entity in a specific format by extending the data URL with an extension suffix to indicate the content format that you want, such as .json, .rdf, .ttl or .nt. For example, http://www.wikidata.org/wiki/Special:EntityData/Q42.json leads to a JSON export for item Q42. Specific revisions can be obtained by appending a revision query parameter like so http://www.wikidata.org/wiki/Special:EntityData/Q42.json?revision=112.
API مدیاویکی
See the documentation of the API.
Caution: Some API modules, in particular those accessed via action=query, will return raw page content. For entity pages, that raw page content is not guaranteed to use any documented format or follow any standard structure. Raw page content should be treated as an opaque blob. For access to the canonical JSON form of entity pages, use the wbgetentities and wbsearchentities modules.
نقطههای پایان (اندپوینتهای) اسپارکل
شما میتوانید از طریق نقطه های پایان اسپارکل از دادههای ویکیداده جستار (کوئری) تهیه کنید. این کار توسط BlazeGraph از طریق Wikidata Query Service هم اکنون برای شما قابل انجام است. برای اطلاعات بیشتر راهنما و صفحههای جامعه ویکیداده را مطالعه کنید.
رباتها
با استفاده از ربات میتوان به API دسترسی پیدا کرد.
دسترسی به دامپها
با دانلود دامپهای موجود میتوانید به آخرین محتوای ویکیداده دسترسی پیدا کنید.
بروزرسانیهای افزایشی
از API تغییرات اخیر میتوانید ببینید کدام چوهره ها تغییر یافتهاند و دسترسی به داده برای هر آیتم آن را fetch کنید. به این طریق به صورت تصاعدی برای 30 روز بروزرسانی میکنید.
Best practices to follow
Wikidata offers you the data in Wikidata for free with no requirement to attribute under CC-0. We would however greatly appreciate if you would mention Wikidata as the origin of your data. This will allow us to ensure that the project stays around for a long time and provides you with up-to-date and high quality data. We will also promote the best projects using Wikidata's data. Some examples for attributing Wikidata: "Powered by Wikidata", "Powered by Wikidata Tags", "Powered by Wikidata data", "Powered by the magic of Wikidata", "Using Wikidata data", "With data from Wikidata", "Data from Wikidata", "Source: Wikidata", "Including data from Wikidata", ... You can also use one of the ready-made files from us.
You may use the Wikidata logo (see above), but should not do so in any way that implies endorsement by Wikidata, or the Wikimedia Foundation.
Please offer your users a way to report issues in the data and find a way to feed this back to Wikidata's editor community. We are currently working on streamlining this process. Until then please announce where you collect issues on the Project chat.
Examples and showcases
A number of great tools are being built on top of Wikidata. The external tools page collects them.
See also


