Support Semantic MediaWiki 7.0#112
Merged
Merged
Conversation
Require Semantic MediaWiki 7.0 and raise the extension to 7.0.0-alpha; the
major version now tracks the supported SMW major (skipping 5.x and 6.x).
Migrate Semantic MediaWiki's deprecated data-item class aliases to their
canonical 7.0 namespaces (SMW\DataItems\{Property,WikiPage,Blob,Uri} and
SMW\DataModel\SemanticData) in both production code and test mocks.
Refresh CI to a per-row MariaDB LTS spread (10.11/11.4/11.8/12.3) across
MediaWiki 1.43-1.45 and PHP 8.1-8.4, bump actions/checkout and
codecov-action to v6, and make coverage status informational so it never
gates CI.
Remove dead legacy CI: .scrutinizer.yml, tests/travis, and the orphaned
phpmd.xml.
The EasyRdf catch branch referenced an undeclared `self::$Logger`, so any EasyRdf failure during JSON-LD generation raised an "undeclared static property" Error on a normal page view instead of degrading gracefully. Route the message through MediaWiki's LoggerFactory instead.
Document how to report vulnerabilities privately via GitHub private vulnerability reporting, the disclosure process, and where to report issues that actually belong to MediaWiki or Semantic MediaWiki.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #112 +/- ##
=========================================
Coverage 82.43% 82.43%
Complexity 80 80
=========================================
Files 7 7
Lines 205 205
=========================================
Hits 169 169
Misses 36 36 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
paladox
reviewed
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for Semantic MediaWiki 7.0 and raises Semantic Meta Tags to
7.0.0-alpha. Following the convention for these extensions, the major version tracks the supported Semantic MediaWiki major directly (jumping from 4.x, skipping 5.x and 6.x).Changes
Requirements & version
extension.json:version→7.0.0-alpha(requirements already declared MediaWiki>= 1.43and Semantic MediaWiki>= 7.0.0).composer.json:branch-alias.dev-master→7.0.0-dev.RELEASE-NOTES.md: new7.0.0-alphaentry.Source migration (Semantic MediaWiki 7.0 API)
SMW\DIProperty→SMW\DataItems\PropertySMW\DIWikiPage→SMW\DataItems\WikiPageSMWDIBlob→SMW\DataItems\BlobSMWDIUri→SMW\DataItems\UriSMW\SemanticData→SMW\DataModel\SemanticData\OutputPagereference with the namespacedMediaWiki\Output\OutputPage.BeforePageDisplay,OutputPageParserOutput) are MediaWiki-core hooks and remain valid in MW 1.43+. The extension registers no Semantic MediaWiki hooks, so SMW 7.0's hook renames do not affect it.CI & tooling
main.yml: per-row MariaDB LTS spread (10.11/11.4/11.8/12.3) across MediaWiki 1.43–1.45 and PHP 8.1–8.4; bumpactions/checkoutandcodecov/codecov-actiontov6.codecov.yml: project + patch coverage status set toinformationalso coverage never gates CI.unit/integrationcomposer scripts..scrutinizer.yml,tests/travis/, and the orphanedphpmd.xml.Bug fix (separate commit)
JsonLDSerializerreferenced an undeclaredself::$Loggerin its EasyRdfcatchbranch, so any EasyRdf failure during JSON-LD generation raised an "undeclared static property"Erroron a normal page view instead of degrading gracefully. The message is now routed through MediaWiki'sLoggerFactory.Security policy (separate commit)
SECURITY.mddocumenting private vulnerability reporting. This is unrelated to the version bump, so it is kept as its own commit.Verification
Run in the docker-compose-ci stack (MediaWiki 1.43 + Semantic MediaWiki
dev-master+ MariaDB 11.8):composer analyze— clean (lint + PHPCS + minus-x, exit 0, no warnings).composer phpunit— 80 tests, 160 assertions, OK (including the database-backed integration tests).index.php, notaction=parse, since this extension injects content at page-display time): the property-derived<meta name="keywords">/<meta name="description">tags and the JSON-LD<script type="application/ld+json">block all render correctly with no PHP errors.