Self-host Semantic MediaWiki
7.3.1Structured data and semantic queries for MediaWiki wikis
- Stars
- 632
- Requires
- MediaWiki, PHP
What is Semantic MediaWiki?
Semantic MediaWiki (SMW) is a MediaWiki extension — free and open-source — that lets a wiki store and query structured data within its pages, turning it into a flexible knowledge management system. Editors annotate pages with wikitext markup so links and values become meaningful properties; that data can then be queried and rendered as dynamic tables, lists, timelines or maps, searched and organized, and published as Semantic Web / linked data so other systems can consume it. A compatibility matrix governs supported stacks: SMW 7.3.x runs on PHP 8.1-8.5 with MediaWiki 1.43-1.46 and gives full SQL support to MySQL 5.7.0+, SQLite 3.24.0+ and PostgreSQL 10+, with an optional ElasticStore index on Elasticsearch 7.10.2 or OpenSearch 1.3.x+, plus triplestore backends such as Fuseki, Blazegraph and Sesame. You install it with Composer inside an existing MediaWiki, then enable it in LocalSettings.php, run the update script and rebuild the semantic data; SMW has no container image of its own. The master branch already carries a 7.4.0-alpha version number, and prebuilt file releases are no longer published — you generate your own when a host lacks command line access. Most user documentation lives on the project wiki at semantic-mediawiki.org, which was unreachable during this research pass.
Should you self-host Semantic MediaWiki?
Semantic MediaWiki scores 57/100 on selfhost.directory (how scoring works) and ranks #14 of 31 in Wikis. It has 632 GitHub stars.
It shipped 6 stable releases in the past year. The latest, 7.3.1, came out on 28 September 2026. New versions land roughly every 4 weeks.
Setup is moderate: expect some configuration beyond a single command. It is Other-licensed and written mostly in PHP.
Its closest alternative on selfhost.directory is outline (78/100, 41 096 stars). It scores higher overall, so compare the two before you pick. See Semantic MediaWiki vs outline side by side.
Features
- Custom namespaces for properties, concepts and schemas
- Extension framework / ecosystem
- Granular user permissions
- Linked data / Semantic Web export
- Maintenance scripts for data rebuilds
- Pluggable storage backendsTriplestore support was documented for SMW 3.2.x and older in the compatibility matrix.
- Result formats
- Semantic queries
- SPARQL support
- Structured data annotations
Semantic MediaWiki README
More in Wikis
siliconSilicon Notes is a self-hosted, open-source personal knowledge base with Markdown editing, bi-directional links, full-text search, and page history.- TracTrac is an enhanced wiki and issue tracking system for software development projects, offering integrated wiki, version control (Subversion/Git), and ticket management in a minimalistic web-based interface.
tsailunTsailun is an open-source, self-hosted wiki for teams. Stores docs as HTML files, supports multiple spaces, full-text search, file attachments, and automatic versioning.
WW-CMS is a self-hosted, open-source flat-file wiki for artists and experimental projects, with Markdown editing, media management, and graph view — no database needed.
WackoWikiWackoWiki is a light and handy Wiki-engine.
WeKnoraTencent's open-source knowledge framework for teams: self-hosted RAG Q&A with citations, agents with sandboxed skills, and auto-generated wikis on swappable LLMs.
WikiDocs📗 Just a databaseless markdown flat-file wiki
Wiki-GoOpen-source, self-hosted flat-file wiki in Go with Markdown editing, full-text search, version history, access rules, comments and kanban boards. No database needed.
Wiki.jsWiki.js is a self-hosted, open-source wiki engine with a live-preview markdown editor, two-way Git sync and OIDC/LDAP/SAML sign-in, running on Node.js plus PostgreSQL.
wiki-serverA self-hosted, open-source Federated Wiki server in Node.js that enables collaborative writing across distributed wiki instances with plugin extensibility.- WiKissWiKiss is a lightweight, self-hosted wiki engine designed for simplicity and ease of deployment, requiring only PHP and no external database.
WorldLoomSelf-hosted offline worldbuilding and storywriting app with rich-text articles, maps, manuscripts, timelines, and HTML export. Node.js, file-based storage, no database.
0 comments