Wikidata:ツール/プログラマー向け

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Wikidata:Tools/For programmers and the translation is 57% complete.
プログラマー向け

コマンドラインツール

Screenshot of wikidata-taxonomy.
  • Wikibase API
    • Wikibase-CLIRead and edit Wikidata or any Wikibase instance from the command line
  • Wikidata Query Service
  • Wikidata dumps

データアクセスライブラリ

名前 言語 Wikibase API WDQS JSON dumps
読み取り 書き込み
wikibase-sdk JavaScript Yes via wikibase-edit Yes via wikibase-dump-filter
Wikidata Toolkit (docs) Java Yes Yes No Yes
WikiClientLibrary (docs, [2]) .NET Yes Yes No Yes[3]
go-wikidata (docs) Go Yes No No No
WikidataR (docs) R Yes QS[1] Yes No
WikidataQueryServiceR (docs) R No No Yes No
JsonDumpReader PHP No No No Yes
sparesults (docs) Rust No No Yes No
Wikidata for Ruby Ruby Yes No No No
  1. While WikidataR doesn't support writing via the Wikibase Action API, it supports writing via QuickStatements.

Pythonライブラリ

名前 型ヒント Wikibase API WDQS JSON dumps
読み取り 書き込み
Pywikibot (docs) Yes Partial[1] Partial[2] Yes No
Wikibase Integrator (docs) Yes Partial[3] Partial[3] Yes Yes
Wikidata Integrator No Partial Partial Yes No
qwikidata (docs) Yes LDI[4] No Yes Yes
wikidata (docs) Yes LDI[4] No No No
  1. Pywikibot does not support e.g. wbgetclaims. Also note that a major API change is planned. (phab:T186200)
  2. Pywikibot does not support wbsetqualifier or wbsetreference. (phab:T186198)
  3. 3.0 3.1 There are several API actions not (yet) supported by Wikibase Integrator. ([1])
  4. 4.0 4.1 While qwikidata and the wikidata package don't support the Wikibase Action API, they support the Linked Data Interface.

バッチ検証

Wikidata Integrator (Q31743627) is the only one of these libraries that has native support validation of items against entity schemas (code example needed).

Simplifying libraries

The following libraries either simplify an existing API, automatically resolve labels or provide property-specific functions.

Entitree Helper
A JavaScript helper package (using TypeScript) based on wikidata-sdk to easily query and process data.
by Germartin1
Wikipedia Tools (for Humans)
wptoolsは、MediaWikiインスタンスからデータを取得し、ウィキデータをよりさらけだし、Wikimedia APIの拡張を容易にするためのPythonライブラリ。「for Humans」をつけているのは、それが目標のため。
by Siznax
wikidatanpm
クエリをより簡単にするJavascriptライブラリ
by MCheca5
wikirepo
Python based Wikidata framework for easy dataframe extraction.
by AndrewTavis


データ品質

Wikidata:WikiProject Schemas#Tools 参照


GraphQL

GraphQL
Development of a GraphQL API inspired by Tpt's original implementation below. There are a bit more features.
GraphQL API
GraphQL APIは、ウィキデータのコンテンツと対話することを可能にします。APIエンドポイントのURIは https://tptools.toolforge.org/wdql.php です。Relay仕様に対応しています。
by Tpt


インポートツール

Catmandu-Wikidata
ETLフレームワーク「Catmandu」用に、ウィキデータからエンティティをインポートするPerlモジュール
by JakobVoss
RaiseWikibase

A Python tool for fast inserts into a Wikibase instance. RaiseWikibase 1) uploads up to a million entities and wikitexts per hour, 2) fills data directly into the MariaDB database, and 3) can create a bot account for the wrappers of the Wikibase API.

by RShigapov
elastic-wikidata

Simple Python CLI to load subsets of Wikidata into ElasticSearch from a dump or SPARQL query. Automatically paginates SPARQL queries for bulk loading.

by Kdutia
Wikidata Subset Search Engine
ウィキデータのサブセットを提供するElasticSearchインスタンスを設定するためのツール
by Maxlath

その他のデータセット

QRank

A ranking signal for Wikidata. Periodically (re)computed from Wikimedia pageviews, available for bulk download. For an introduction, see the README file.

by Sascha
Wikidata Lang
言語コードまたはウィキデータのQ番号IDでアクセス可能な、183言語のJSON/JSインデックス。
by Maxlath

その他

Tool Translate

Offers a centralized, user-friendly way for The Community (TM) to provide translations for tools.

by Magnus Manske

関連項目