Jump to content

Manual:MediaWikiのデータ管理法

From mediawiki.org
This page is a translated version of the page Manual:Managing data in MediaWiki and the translation is 63% complete.

MediaWiki は主に自由形式のテキストと画像を管理するために設計されました。 A limited amount of structure is available: namespaces , subpages and categories help to group similar pages together, while features like infoboxes and galleries help to structure the contents within each page.

However, MediaWiki by itself does not truly provide ways to manage structured data: data that can be queried, filtered, and in some cases displayed with visualizations including tables, charts, maps[1] and calendars. For that, a number of dedicated extensions exist.

The following table describes the extensions that can store the data edited by users in a MediaWiki database, from where it can then be queried.

This is not a list of all structured data functionality; the "See also" section lists other extensions and features that can be used for storing or displaying structured data.

機能
Semantic MediaWiki

Wikibase

Cargo
VisualData Bucket NeoWiki
主な使用事例 セマンティックウェブ標準に基づく、MediaWikiインストール内のデータ管理。 ウィキデータおよび他の編集可能なグラフ データベースの効率化。 MediaWiki インストレーション内でデータを管理。 Managing data within a MediaWiki installation based on JSON-schema. lightweight Lua interface for storing and accessing structured data on wiki pages Knowledge management system that combines collaborative editing and a knowledge graph
アプローチ データ (プロパティ) は標準のウィキテキスト内でまたはテンプレートによって注釈されます。 データ種別が"reference"の場合、文を用いた項目をプロパティで説明できます。[2] 引数は文を用いた項目を説明するために使います。 データはデータベース表に保存し、表単位でテンプレートに関連付けされています。 Data are stored in a dedicated slot with JSON content model Data is stored in buckets, which are database tables with specific columns that you can define Schemas can be defined and applied to wiki pages, stored in a dedicated slot as JSON data.
導入時期 2005 2012 2015 2022 (formerly known as PageProperties ) 2025 2026
対応するインストール 数千から百万未満[3] 数百から1万未満[4][5][6] 数百から1万未満[7] 利用不可 (新しい拡張機能または不明)
コミュニティ 190 人以上の開発者[8] 172 人以上の開発者[9] 63 人以上の開発者[10] (main developer) ECHOLOT project, Professinal Wiki, KM-A, BlueSpice Galaxy
ストレージ MediaWiki のデータベース、Elasticsearch と 5 種類の SPARQL ストレージ[11] MediaWiki のデータベース、Elasticsearch と SPARQL ストレージ (wikidata.org 向け Blazegraph) MediaWiki のデータベース (別のデータベース)[12] MediaWiki のデータベース MediaWiki database (MySQL/MariaDB) different SPARQL stores, currently Neo4J
プロパティの定義 ウィキ文の入力。 プロパティは自由に設定できます。 既定ではデータ種別ページ、あとで定義が可能。 Datatypes can be changed any time. プロパティは使用前に定義する必要があり、簡単には変更できません。[13] プロパティを使わず、データ表単位であらかじめ定義された (それでいて修正が可能な) フィールド欄一式を使いデータ表を定義。 Properties are defined through one or more json-schema defined through a SchemaBuilder Tables in the Bucket: namespace Form based schema editing
値の宣言 インライン ([[MyProperty::MyValue]]) もしくはテンプレート用。 Page Forms を伴うフォームに基づくデータエントリー ウィキベースの既定のフォーム型入力インターフェイス。 テンプレート内、パーサー関数を使用。 Page Forms を伴うフォームに基づくデータ入力。 Inline or popup OOUI forms automatically generated from JSON-schemas via Lua call of the bucket.put function Codex based form editing
定義済みのデータタイプ 18[14] 17[15][16] 18 4 (basic JSON-schema types) + 15 string formats 5 [17]
プロパティの管理 タイプの定義、要件のスキーマ、オントロジーの読み込み 個別設定もしくはウィキデータからオントロジーを読み込み プロパティを使わず、データ表単位であらかじめ定義された (それでいて修正が可能な) フィールド欄一式を使いデータ表を定義。 through a graphical interface (dedicated SchemaBuilder ) through a graphical interface
Page names and internal linking Pages have normal names and can be linked to with their names. Page names are stored with their Q-numbers (displaying labels in available languages). Internal linking must be done to the Q-number; you cannot link to a label. Pages have normal names and can be linked to with their names. Schemas are stored in a dedicated namespace and JSON-data in a dedicated slot associated to wiki articles. JSON-data can be accessed through an extension of the wiki interface MediaWiki pages can have schemas
インラインの問い合わせ はい、パーサ関数を利用 いいえ (外部SPARQL問い合わせ)、ただし計画中 Other extensions support inline querying of Wikibase data, including LinkedWiki and External Data . はい、パーサ関数を利用 はい、パーサ関数を利用 yes, with parser functions via the SQL store
外部への問い合わせ はい、API または SPARQL を用いて問い合わせ (RDVIO または LinkedWiki など特別な拡張機能経由で入手) はい、SPARQL問合せサービス はい、API を利用 はい、API を利用[18] API is not yet stable [19] yes, with an API or SPARQL endpoint
Result formats[20] ~ 75[21] 結果表示に定型はありません。データは次により表示される場合があります。
  • 問い合わせサービスあるいはその他の外部ツール
  • on wiki data access via LUA 経由のウィキ内のデータアクセス (問い合わせサポートなし)
  • Extension:LinkedWiki - 第三者
~ 25[22] 12+ (Json, Table, Datatable, Template, Calendar, Carousel, Map, pageid, pagetitle, count, raw, Lua ) [23]
開発 GitHub Gerrit Gerrit Gerrit GitHub GitHub
補完する拡張機能 ~ 40[24], e.g. Semantic Result Formats , Semantic Bundle , Semantic Scribunto ~12[25], e.g. Wikibase Repository , Wikibase Client , WikibaseLexeme , Query Service 2 (Page Forms, Page Schemas). Cargo provides some or all of the functionality of Semantic MediaWiki, Semantic Result Formats, Maps, Semantic Drilldown, Semantic Compound Queries, Semantic Internal Objects and Semantic Scribunto.[26] ContactManager Scribunto

代替の比較手段


脚注

  1. see also Wikimedia Maps
  2. https://www.semantic-mediawiki.org/wiki/Help:Reference_and_provenance_data
  3. https://wikiapiary.com/wiki/Extension:Semantic_MediaWiki
  4. https://wikiapiary.com/wiki/Extension:WikibaseRepository
  5. https://wikibase.world
  6. https://addshore.com/2024/10/visualizing-wikibase-connections-using-wikibase-world/
  7. https://wikiapiary.com/wiki/Extension:Cargo
  8. https://www.openhub.net/p/smw
  9. https://github.com/wikimedia/mediawiki-extensions-Wikibase
  10. https://github.com/wikimedia/mediawiki-extensions-Cargo
  11. https://www.semantic-mediawiki.org/wiki/Help:SPARQLStore
  12. Extension:Cargo/ダウンロードとインストール
  13. d:Help:Data type#Changing datatype
  14. https://www.semantic-mediawiki.org/wiki/Help:List_of_datatypes
  15. d:Special:ListDatatypes
  16. Some datatypes are defined by other extension: Math and Score both define one datatype, JsonConfig defines two, WikibaseLexeme defines three, and Wikibase defines ten.
  17. https://meta.weirdgloop.org/w/Extension:Bucket#Basic_usage
  18. Extension:VisualData/API
  19. https://meta.weirdgloop.org/w/Extension:Bucket
  20. 「結果フォーマット」とは当該のウィキが表組みやカレンダー、地図、タイムテーブルなどさまざまな形式でデータ表示する能力 (インラインの問い合わせ結果) を指す。
  21. https://www.semantic-mediawiki.org/wiki/Help:Result_formats
  22. Extension:Cargo/Display formats
  23. Extension:VisualData/Result_formats
  24. カテゴリ:Semantic MediaWiki の拡張機能
  25. カテゴリ:ウィキベースの拡張機能
  26. Extension:Cargo/Cargo and Semantic MediaWiki.

関連項目

  • Multi-Content Revisions – 同じウィキページにそれぞれ異なる独立したコンテンツ オブジェクトを管理する機能
  • WikiDB – 意味論的なプロパティにやや似たデータベース機能を提供
  • JsonConfig – JSON をウィキページに保存し (表形式ならびに地図データを含む)、Lua 経由でアクセス可能にする。問い合わせサポートなし
  • External Data – データのアクセス元は外部 URL、ローカル ファイル、SQL、MongoDB データベースのいずれか
  • Structured data across Wikimedia 2021-2023 project for improving structured data support in MediaWiki
  • カテゴリ:データ管理の拡張機能