Semantic MediaWiki and related extensions
|
This document contains migration information both for users and administratiors as well as developers when upgrading from Semantic MediaWiki 2.5.x to Semantic MediaWiki 3.0.x. Please consult the respective RELEASE-NOTES when upgrading from an earlier version of Semantic MediaWiki.
list
format in HTML elementslist
, ol
and ul
formats to facilitate stylingplainlist
formattemplate
format becomes alias of the plainlist
formattemplate
parameter is used when present, even if format is not template
#
sep
, propsep
, valuesep
?
as prefix for template argumentstemplate arguments
parametercolumns
parameterFor details also see the change description.
SMW_
prefix you must now migrate to the new maintenance script names. See the help pages on maintenance scrips for further information.$smwgExportResourcesAsIri
for further information.DIProperty::findPropertyID
, deprecated since 2.1, use PropertyRegistry::findPropertyIdByLabelDIProperty::getPredefinedPropertyTypeId
, deprecated since 2.1, use PropertyRegistry::getPropertyValueTypeByIdDIProperty::findPropertyLabel
, deprecated since 2.1, use PropertyRegistry::findPropertyLabelByIdDIProperty::registerProperty
, deprecated since 2.1, use PropertyRegistry::registerPropertyDIProperty::registerPropertyAlias
, deprecated since 2.1, use PropertyRegistry::registerPropertyAliasPropertyValue::makeUserProperty
, use DataValueFactory::getInstance()->newPropertyValueByLabel;PropertyValue::makeProperty
, use DataValueFactoryRequestContext
from the ResultPrinter
class; If for some reason someone requires access to the RequestContext
then it is suggested to use RequestContext::getMain()
.smwAddToRDFExport
to SMW::Exporter::Controller::AddExpData
Store::getPropertySubjects
is to return an Iterator
hence an array
type check should be avoided and if necessary use iterator_to_array
to transform a result instance into a standard array::register( 'SMW::Property::initProperties', function( $propertyRegistry ) {$propertyRegistry->registerProperty( '__FOO', '_txt', 'Foo' ); $propertyRegistry->registerPropertyDescriptionByMsgKey( '__FOO', 'a-mediawiki-msg-key-with-a-description' ); return true;} );