Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:VisualData

From mediawiki.org
Translate this page
Languages:


MediaWiki extensions manual
VisualData
Release status: stable
ImplementationHook,Special page
DescriptionVisualData is a full-fledged metadata management framework based on json-schema able to easily record, organize and query collection of data on your wiki.
Author(s)thomas-topway-it (thomas-topway-ittalk)
Latest version1.1.2 (2025-10-20)
Compatibility policyMaster maintains backward compatibility.
MediaWiki1.35+
Database changesYes
  • $wgVisualDataTrackingCategoryForms
  • $wgVisualDataCreateJobsWarningLimit
  • $wgVisualDataDisableSlotsNavigation
  • $wgVisualDataQueryProcessorPrintoutsLimit
  • $wgVisualDataEditDataNamespaces
  • $wgVisualDataDisableSidebarLink
  • $wgVisualDataTrackingCategoryJsonData
  • $wgVisualDataTrackingCategoryButtons
  • $wgVisualDataDisableVersionCheck
  • $wgVisualDataMaptilerApiKey
  • $wgVisualDataTrackingCategoryQueries
  • $wgVisualDataDebugPath
  • visualdata-caneditdata
  • visualdata-canmanageschemas
LicenseGNU General Public License 2.0 or later
Download
ExampleWikisphere
Translate the VisualData extension if it is available at translatewiki.net


VisualData is a full-fledged metadata management framework based onjson-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 toExtension:Semantic MediaWiki andCargo.

Key-features

[edit]
  • Based onjson-schema andslots
  • forms and pop-up forms auto-generated from json-schema
  • IntegratedSchemaBuilder to easily create json-schema compliant schemas, with nested items and OOUI widgets
  • Forms are validated with industry-standardajv-validator
  • SMW's style inlinequeries and full-featured result formats likeDatatable,Carousel,Calendar,Map, and more
  • 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 anuninstall script: test the extension and opt-out if it doesn't meet your requirements!

check outlive demos andRelease notes for the latest improvements

UI elements

[edit]

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 theglobal parameters below.

Installation

[edit]
  • Download and place the file(s) in a directory calledVisualData in yourextensions/ folder.
  • runcomposer install --no-dev in the extension folder. This will install the required libraries[1]
  • Add the following code at the bottom of yourLocalSettings.php
wfLoadExtension('VisualData');
  • Runphp maintenance/run.php update (this will install the required tables)
  • YesDone – Navigate toSpecial:Version on your wiki to verify that the extension is successfully installed.

Make sure to runphpmaintenance/run.php./extensions/VisualData/maintenance/RebuildData.php after each update of the extension when indicated in theRelease notes. This will drop/recreate the tables based on the data stored on the wiki.

Main sections

[edit]
New article UI
Schema Builder & File upload
Edit data
Forms
Queries
Result formats
Browse data
Maintenance scripts
Miscellaneous

Rights and privileges

[edit]

The extension creates the followinguser rights.They can be both included manually in theLocalSettings.php or to be managed through the interface (special pageSpecial:UserRights).Sysops and bureaucrats are assigned with the complete set of permissions by default.

Rights

[edit]
rightdescription
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

[edit]
$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:LinkedWikidefine("NS_DATA",2220);define("NS_DATA_TALK",2221);$wgExtraNamespaces[NS_DATA]="Data";$wgExtraNamespaces[NS_DATA_TALK]="Data_talk";

Groups

[edit]
groupCan edit dataCan manage schemas
sysop,bureaucratYes Yes 
visualdata-adminYes Yes 
visualdata-editorYes N  

Global parameters

[edit]
variabledescriptiondefault
$wgVisualDataDisableSlotsNavigationhide slots tab on the navigation panelfalse
$wgVisualDataDisableSidebarLinkhide VisualData's links section on the sidebarfalse
$wgVisualDataEditDataNamespacesdefault namespaces with editable metadata 0, 4 (Main, Project)
$wgVisualDataTrackingCategoryJsonDataadd a tracking category to articles with datafalse
$wgVisualDataCreateJobsWarningLimitnumber of jobs created without emitting a notice0
$wgVisualDataDisableVersionCheckdisable version check of the extensionfalse


Known issues

[edit]
  • in some MediaWiki versions and configurations, theResourceLoader 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 (seeroadmap)
  • queries require that the first printout exists, otherwise the row will not show. This could be solved usingDUAL keyword
  • the SchemaBuilder and the form processor do not yet support the directivesoneOf,anyOf and support for the$ref keyword

Roadmap

[edit]
  • handle visibility for content-blocks (Forms)
  • handle visibility based on multiselect input widgets (check if has items)
  • addoneOf,anyOf andallOf support to form generator and SchemaBuilder (the SchemaBuilder will contain a select on the schema main panel)
  • addtuple 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 throughExtension:Echo and/or complying better design practice
  • partial editing of schemas and field operations like Firebase's ArrayUnion, ArrayRemove, etc.
  • preloadjson-ld/schema.org entities as json-schemas
  • associatejson-ld/schema.org vocabulary to user-defined schemas

Release notes

[edit]

Extension:VisualData/Release notes

Support & bugs

[edit]

Please post error messages in theTalk page of the extension or usePhabricator for technical contributions.Updates will be occasionally posted on the MediaWiki'sWikitech mailing list.

For professional support please write at the email address postedhere

See also

[edit]

MediaWiki pages

[edit]

External sites

[edit]

Test it out !

[edit]

WikiSphere

References

[edit]
  1. although the extension works without additional libraries, they are required to handle rename of schemas and properties, and to supportpreload-data override
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:VisualData&oldid=8137754"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp