Extension:VisualData/ja

Category:GPL licensed extensions/ja
MediaWiki 拡張機能マニュアル
VisualData
リリースの状態: 安定Category:Stable extensions/ja
実装 フック Category:Hook extensions/ja, 特別ページ Category:Special page extensions/ja
説明 VisualData is a full-fledged metadata management framework based on json-schema able to easily record, organize and query collection of data on your wiki.
作者 thomas-topway-it (thomas-topway-itトーク)
最新バージョン 1.0.9 (2025-02-07)
互換性の方針 master は後方互換性を維持しています。
MediaWiki 1.35+Category:Extensions with manual MediaWiki version/ja
データベースの変更 はい
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード Category:Extensions in Wikimedia version control/ja
Wikisphere
  • $wgVisualDataTrackingCategoryForms
  • $wgVisualDataCreateJobsWarningLimit
  • $wgVisualDataDisableSlotsNavigation
  • $wgVisualDataQueryProcessorPrintoutsLimit
  • $wgVisualDataEditDataNamespaces
  • $wgVisualDataDisableSidebarLink
  • $wgVisualDataTrackingCategoryJsonData
  • $wgVisualDataTrackingCategoryButtons
  • $wgVisualDataDisableVersionCheck
  • $wgVisualDataMaptilerApiKey
  • $wgVisualDataTrackingCategoryQueries
  • $wgVisualDataDebugPath
  • visualdata-caneditdata
  • visualdata-canmanageschemas
translatewiki.net で翻訳を利用できる場合は、VisualData 拡張機能の翻訳にご協力ください
Category:All extensions/ja

VisualData is a full-fledged metadata management framework based on json-schema able to easily record, organize and query collection of data on your wiki.

It is characterized by a strong emphasis on the UI/UX side and aims to present itself as a lightweight or modern alternative to Semantic MediaWiki and Cargo.

Key-features

  • Based on json-schema and slots
  • forms and pop-up forms auto-generated from json-schema
  • Integrated SchemaBuilder to easily create json-schema compliant schemas, with nested items and OOUI widgets
  • Forms are validated with industry-standard ajv-validator
  • SMW's style inline queries and result formats
  • Can import/store/query large amount of data (with hierarchical structure) in specific articles/the entire wiki, and to rebuild them in minutes
  • completed with an uninstall script: test the extension and opt-out if it doesn't meet your requirements!


check out live demos and Release notes for the latest improvements


UI 要素

The extension adds the following interface elements to your wiki (some of them only for authorized users and/or sysops)

  • A sidebar section where to access all special pages offered by the extension



  • The action tab "Edit data" by which to assign schemas to article and fill-in them through automatically generated OOUI forms



  • and a namespace tab where to access the slot with json-data registered within an article through the extension



The visibility of each of them can be managed using the global parameters below.


インストール

  • ダウンロードして、ファイルを extensions/ フォルダー内の VisualData という名前のディレクトリ内に配置します。
  • run composer install --no-dev in the extension folder. This will install the required libraries[1]
  • 以下のコードを LocalSettings.php の末尾に追加します
wfLoadExtension( 'VisualData' );
  • Run php maintenance/run.php update (this will install the required tables)
  • Yes 完了 – ウィキの Special:Version に移動して、拡張機能が正しくインストールされたことを確認します。

Make sure to run

php maintenance/run.php ./extensions/VisualData/maintenance/RebuildData.php

after each update of the extension when indicated in the Release notes. This will drop/recreate the tables based on the data stored on the wiki

Main sections

New article UI
Schema Builder & File upload
Edit data
Result formats
Browse data
Maintenance scripts

Rights and privileges

この拡張機能は、以下の利用者権限を作成します。 They can be both included manually in the LocalSettings.php or to be managed through the interface (special page Special:UserRights). Sysops and bureaucrats are assigned with the complete set of permissions by default.

権限

権限説明
visualdata-caneditdataCan edit metadata related to wiki articles by editing/assigning json-schemas to them
visualdata-canmanageschemasCan create/edit/delete schemas through the SchemaBuilder

Example configuration

$wgGroupPermissions['*']["visualdata-caneditdata"] = true;
$wgGroupPermissions['*']["visualdata-canmanageschemas"] = false;

$wgVisualDataDisableSidebarLink = false;
$wgVisualDataDisableSlotsNavigation = false;
$wgVisualDataCreateJobsWarningLimit = 0;
$wgVisualDataEditDataNamespaces =  [ 0, 4, 2226, 2230 ];
$wgVisualDataTrackingCategoryJsonData = false;
$wgVisualDataTrackingCategoryForms = false;
$wgVisualDataTrackingCategoryQueries = false;
$wgVisualDataTrackingCategoryButtons = false;
$wgVisualDataMaptilerApiKey = '';

// @Attention the same namespace is also used by Extension:JsonConfig and Extension:LinkedWiki
define("NS_DATA", 2220);
define("NS_DATA_TALK", 2221);
$wgExtraNamespaces[NS_DATA] = "Data";
$wgExtraNamespaces[NS_DATA_TALK] = "Data_talk";

グループ

グループCan edit dataCan manage schemas
sysop, bureaucratYes  Yes  
visualdata-adminYes  Yes  
visualdata-editorYes  N  

グローバル パラメーター

変数説明既定
$wgVisualDataDisableSlotsNavigationhide slots tab on the navigation panelfalse
$wgVisualDataDisableSidebarLinkhide VisualData's links section on the sidebarfalse
$wgVisualDataEditDataNamespacesdefault namespaces with editable metadata 0, 4 (Main, Project)
$wgVisualDataJsonDataTrackingCategoryadd a tracking category to articles with datafalse
$wgVisualDataCreateJobsWarningLimitnumber of jobs created without emitting a notice0
$wgVisualDataDisableVersionCheckdisable version check of the extensionfalse

既知の問題点

  • in some MediaWiki versions and configurations, the ResourceLoader may generate syntax errors when bundling the Javascript files. In this case please use $wgResourceLoaderDebug = true; in LocalSettings.php, this will include separately each file and should solve the problem.
  • rename of schemas and properties must be kept in synch with property and schema names hardcoded in parser functions. This will be solved implementing a query and form builder (see #Roadmap)
  • queries require that the first printout exists, otherwise the row will not show. This could be solved using DUAL keyword
  • the SchemaBuilder and the form processor do not yet support the directives oneOf, anyOf and support for the $ref keyword

ロードマップ

  • handle visibility for content-blocks (Forms)
  • handle visibility based on multiselect input widgets (check if has items)
  • add oneOf, anyOf and allOf support to form generator and SchemaBuilder (the SchemaBuilder will contain a select on the schema main panel)
  • add tuple and $ref keyword to SchemaBuilder (properties panel, besides 'add field', 'add content block', etc.)
  • add additional properties to SchemaBuilder (additional panel)
  • add query and form builder: this will store queries and forms as json schemas so that rename of schemas or properties can be updated within such schemas, not in the wikitext. The parser function will add queries and forms by their names or code
  • UI for bulk-edit of json data in the BrowseData special page
  • Ajax navigation for datatables, SearchPanes and SearchBuilder


Additionally:

  • version control for schemas and related data, so that edits of the schema constrain to the data related to the previous data structure
  • version control notice shown through Extension:Echo and/or complying better design practice
  • partial editing of schemas and field operations like Firebase's ArrayUnion, ArrayRemove, etc.
  • preload json-ld/schema.org entities as json-schemas
  • associate json-ld/schema.org vocabulary to user-defined schemas


Release notes

Extension:VisualData/Release notes


サポートとバグ

Please post error messages in the Talk page of the extension or use Phabricator for technical contributions. Updates will be occasionally posted on the MediaWiki's Wikitech mailing list.

For professional support please write at the email address posted here

関連項目

References

Test it out !

WikiSphere

Category:Page metadata extensions/ja Category:Data extraction extensions/ja Category:Database extensions/ja Category:Data management extensions/ja Category:Table extensions/ja Category:Page content extensions/ja
  1. although the extension works without additional libraries, they are required to handle rename of schemas and properties, and to support preload-data override
Category:AfterImportPage extensions/ja Category:All extensions/ja Category:AlternateEdit extensions/ja Category:ArticleUndelete extensions/ja Category:BeforeInitialize extensions/ja Category:BeforePageDisplay extensions/ja Category:ContentAlterParserOutput extensions/ja Category:ContentGetParserOutput extensions/ja Category:Data extraction extensions/ja Category:Data management extensions/ja Category:Database extensions/ja Category:EditPage::showEditForm:initial extensions/ja Category:Extensions in Wikimedia version control/ja Category:Extensions with manual MediaWiki version/ja Category:GPL licensed extensions/ja Category:Hook extensions/ja Category:LoadExtensionSchemaUpdates extensions/ja Category:MediaWikiServices extensions/ja Category:MultiContentSave extensions/ja Category:OutputPageParserOutput extensions/ja Category:PageDeleteComplete extensions/ja Category:PageRenderingHash extensions/ja Category:PageSaveComplete extensions/ja Category:Page content extensions/ja Category:Page metadata extensions/ja Category:ParserAfterTidy extensions/ja Category:ParserFirstCallInit extensions/ja Category:ParserPreSaveTransformComplete extensions/ja Category:RandomPageQuery extensions/ja Category:RevisionFromEditComplete extensions/ja Category:ScribuntoExternalLibraries extensions/ja Category:SidebarBeforeOutput extensions/ja Category:SkinBuildSidebar extensions/ja Category:SkinTemplateNavigation::Universal extensions/ja Category:Special page extensions/ja Category:Stable extensions/ja Category:Table extensions/ja