Semantic MediaWiki and related extensions
|
The repository extension is meant to change the SESP repository itself in providing additional services that can be enabled via the $sespgEnabledPropertyList
setting.
Each extension is expected to be represented by a definition and a corresponding PropertyAnnotator
implementation.
Expand the property definition in definitions.json
with something like:
_ETX1
defines an external referenceid
(___EXT1
) defines the internal reference for values that are stored and fetched fromtype
(num
) declares the expected data type of a valuealias
(sesp-property-ext-1
) declares a message key for the label aliaslabel
(Ext ID
) free caption formdesc
(sesp-property-ext-1-desc
) declares a message key for the decription of a propertyExamples
PropertyAnnotator implementation
MyExt1PropertyAnnotator
) that implements the PropertyAnnotator
interface, placed in the corresponding folder, and contain the details required for the value annotation supported by the related propertyMyExt1PropertyAnnotatorTest
) to test the newly added functionalityDispatchingPropertyAnnotator
DispatchingPropertyAnnotator
test to cover the newly added serviceThe local extension mechanism has been introduced to avoid having to alter the SESP
repository directly and instead provide a method for simple local adaptation.
$sespgLocalDefinitions
contains encapsulate property definitions that are only valid locally to a wiki and are loaded from the LocalSettinsg.php
.
callback
which expects a callable instance (either as static or Closure)Examples
← README | Configuration | migration-to-200.md "Migration to 2.0.0" →