Semantic MediaWiki 5.0.0

From semantic-mediawiki.org
Semantic MediaWiki 5.0.0Semantic MediaWiki 5.0.0
This page is a translated version of the page Semantic MediaWiki 5.0.0 and the translation is 100% complete.

Semantic MediaWiki 5.0.0
Date de sortie: 10 03 2025
Version précédente : Semantic MediaWiki 4.2.0
Version suivante : Semantic MediaWiki 5.0.1
Compatible avec (en) : MW 1.39.0 - 1.43.x
Dernière version :
SMW 5.0.2

La version 5.0.0 de Semantic MediaWiki est une version principale. C'est une version de fonctionnalité où l'interface de navigation (Special:Browse) et la factbox ont été réécrits pour ajouter quelques options nouvelles de formatage pour le format des tables. En plus de quelques corrections de bogues et de maintenance, elle contient aussi des améliorations de performances et des mises à jour de traductions des messages système. Voir les notes de version en anglais ci-dessous pour les informations supplémentaires.

Veuillez vous reporter aux pages d'aide concernant l'installation ou la mise à jour de Semantic MediaWiki pour avoir les instructions détaillées sur la manière de faire ceci.

Semantic MediaWiki 5.0.0

Released on March 10, 2025.

Summary

This release mainly brings support for recent versions of MediaWiki and PHP. Upgrading is recommended for anyone using MediaWiki 1.41 or later.

Compatibility

  • Added support for MediaWiki 1.42 and 1.43
  • Dropped support for MediaWiki older than 1.39
  • Improved compatibility with PHP 8.3 and above
  • Dropped support for PHP older than 8.1

For more detailed information, see the compatibility matrix.

Highlights

User Interface Changes

Some user interface changes are deployed to make user-facing front-end components more intuitive and mobile-friendly by using Codex from Wikimedia Foundation:

  • Start using Codex Design tokens and improve various styles (#5786)
  • Rewrite Special:Browse and its factbox (#5788)
  • Style SMW tabs similar to Codex (#5997)
  • Use new Factbox component at the bottom of the page (#5804)
  • Minor visual improvement to Factbox (#5845)
  • Minor cleanups on tab styles (#5991)
  • Use semantically correct heading and drop custom heading styles (#5992)

Performance

  • Use SVGs for logos (#5756)
  • Convert base64 images into actual files (#5761)
  • Clean up tooltip-related ResourceLoader modules (#5762)
  • Minor clean up to SMW Tippy styles (#5769)
  • Clean up single-use ResourceLoader modules (#5777)

New Features and Enhancements

  • Support additional formatting options on the table/broadtable result format (|+width=, |+height=, |+link= and |+thclass=) (#5739)
  • Allow RDF link in the head element to be disabled (#5776)
  • Update Schema.org vocabulary from version 14 to 28 (Commit cc5a1db), fix in Skos vocabulary (Commit 7740dd6)

Breaking Changes

  • #6021 ChangePropagationDispatchJob: Don't presume job will be run on same server

    The param 'dataFile' and 'checkSum' have been dropped in ChangePropagationDispatchJob. No longer is a temp file created, instead the contents is supplied in the 'data' param.

  • #6044 Remove deprecated class alias

The following class aliases were removed as they were deprecated:

  • \SMW\Localizer
  • \SMW\Message
  • \SMW\Lang\Lang
  • \SMWSerializer
  • \SMWTurtleSerializer
  • \SMWRDFXMLSerializer
  • SMWRDFResultPrinter
  • SMWEmbeddedResultPrinter
  • SMWDSVResultPrinter
  • SMWAggregatablePrinter
  • SMW\PropertyAnnotator
  • SMW\PropertySpecificationLookup
  • SMW\PropertyRestrictionExaminer
  • SMWResultArray
  • SMWQueryResult
  • \SMW\ApplicationFactory
  • \SMWSql3SmwIds
  • SMW\DeferredCallableUpdate
  • SMW\DeferredTransactionalCallableUpdate
  • SMW\InTextAnnotationParser
  • SMW\UrlEncoder
  • SMW\QueryResultPrinter
  • SMWIResultPrinter
  • SMW\ExportPrinter
  • SMW\ResultPrinter
  • SMWResultPrinter
  • SMW\FileExportPrinter
  • SMW\ListResultPrinter
  • SMWQueryParser
  • SMW\SQLStore\CompositePropertyTableDiffIterator
  • SMW\DBConnectionProvider
  • SMWPropertyValue
  • SMWStringValue
  • \SMW\MediaWiki\Database
  • SMWDIString
  • SMWStore
  • SMWUpdateJob
  • SMWRefreshJob
  • SMWSemanticData
  • SMWDIWikiPage
  • SMWDIProperty
  • SMWDISerializer
  • SMWDataValueFactory
  • SMWDataItemException
  • SMWSQLStore3Table
  • SMWDIConcept
  • SMWTableResultPrinter
  • SMWExportPrinter
  • SMWCategoryResultPrinter
  • SMWListResultPrinter
  • SMWSparqlStore
  • SMWSparqlDatabase4Store
  • SMWSparqlDatabaseVirtuoso
  • SMWSparqlDatabase
  • SMWSQLStore3
  • SMWDescription
  • SMWThingDescription
  • SMWClassDescription
  • SMWConceptDescription
  • SMWNamespaceDescription
  • SMWValueDescription
  • SMWConjunction
  • SMWDisjunction
  • SMWSomeProperty
  • SMWPrintRequest
  • SMW\SQLStore\PropertiesCollector
  • SMW\SQLStore\UnusedPropertiesCollector
  • SMWExpElement
  • SMWExpResource
  • SMWExpNsResource
  • SMWExpLiteral
  • SMWSQLStore3QueryEngine
  • SMW\ParserParameterFormatter
  • SMW\ParameterFormatterFactory
  • SMWRequestOptions
  • SMWStringCondition
  • SMW\Hash
  • SMWBoolValue
  • SMW\FormatFactory
  • SMW\SubobjectParserFunction
  • SMW\RecurringEventsParserFunction
  • SMW\SQLStore\TableDefinition
  • SMWContainerSemanticData

SMWSearch alias was kept.

Upgrading

Be advised that the SMWSearch feature (and so the SEARCHFORMSCHEMA feature) is not working yet. See issue #5782. If you use those features, change the MediaWiki $wgSearchType parameter to something other than SMWSearch.

If you use the ElasticStore or the SPARQLStore feature, make sure you have the $smwgDefaultStore set to SMW\Elastic\ElasticStore or SMW\SPARQLStore\SPARQLStore (the aliases SMWElasticStore and SMWSparqlStore were removed).

There is no need to run the "update.php" maintenance script or any of the rebuild data scripts (but it is still advisable to do so to make table optimizations on the database).

Contributors

See Also

The parser function was called multiple times but with a different language code ("en") which is to be avoided as content of a page is generally expected to be represented by a single language.