Jump to content

Extension:EntitySchema

From mediawiki.org
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of the page Extension:EntitySchema and the translation is 53% complete.
MediaWiki 拡張機能マニュアル
EntitySchema
リリースの状態: 安定
実装 ContentHandler , ページの操作 , 特別ページ , API
説明 WikiページにShape Expression Schemasを格納できるようにする。
作者 ウィキデータ チーム
最新バージョン 継続的な更新
互換性の方針 スナップショットが MediaWiki とともにリリースされます。 master には後方互換性がありません。
MediaWiki master
データベースの変更 はい
  • $wgEntitySchemaSkippedIDs
  • $wgEntitySchemaNameBadgeMaxSizeChars
  • $wgEntitySchemaSchemaTextMaxSizeBytes
  • $wgEntitySchemaIsRepo
  • $wgEntitySchemaShExSimpleUrl
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
readme
EntitySchema 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

The EntitySchema extension allows storing Shape Expressions Schemas on wiki pages (using ShExC syntax), as well as validating entities against those Schemas using the ShEx2 — Simple Online Validator. For more information on enabling this second part, see #Configuration.

Requirements

Wikibase must be installed.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のEntitySchemaという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EntitySchema
    
  • Gitでのインストールの場合のみ、PHPの依存関係をインストールするためComposerを実行します。 (合併症の可能性についてはT173141を参照。)
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'EntitySchema' );
    
  • 必要に応じて設定します。
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

スキーマページでオプションの「check entities against this Schema」リンクを表示するための前提条件。

関連項目