Structured statements
Create and edit resource links and literal values alongside a page’s readable description.
The semantic foundation for your MediaWiki.
GraphWiki connects readable wiki pages with structured knowledge. It brings statements, RDF storage, and SPARQL into MediaWiki, so people can work with the explanation and the data in the same place.
Create and edit resource links and literal values alongside a page’s readable description.
Read and write current managed page content and derived relationships through the configured triplestore.
Write queries with syntax highlighting, formatting, and graph-aware autocomplete. SELECT and ASK queries use the configured backend.
Inspect the query expanded for execution and browse SELECT results in a paginated table.
Keep graph state aligned with managed page edits, moves, deletion, restoration, and imports.
Keep historical revisions in MediaWiki and expose native history, comparisons, and activity to extensions.
Run commands from your MediaWiki installation directory. The source repository requires GitLab access. Replace the example endpoints with your own triplestore and wiki addresses.
Place the canonical repository in the GraphWiki extension directory. Review the release and configuration notes before enabling it.
git clone https://git.dobriy.ai/semantic/graphwiki.git extensions/GraphWikiAdd the extension and backend settings to LocalSettings.php. Configure any backend authentication in private server configuration.
wfLoadExtension( 'GraphWiki' );
$wgGraphWikiTriplestoreEnabled = true;
$wgGraphWikiTriplestoreQueryEndpoint = 'https://your-triplestore.example/sparql';
$wgGraphWikiTriplestoreUpdateEndpoint = 'https://your-triplestore.example/update';
$wgGraphWikiTriplestoreDefaultGraph = 'https://your-wiki.example/id/graph/current';
$wgGraphWikiCanonicalInstanceBase = 'https://your-wiki.example/id/';Run the native updater to create GraphWiki’s promotion and prefix tables. For an existing wiki, follow the repository’s reconciliation instructions to populate current graph state.
php maintenance/run.php update --quickConfirm GraphWiki appears in Special:Version. Open a readable page, check its Statements tab, and run a SPARQL query through Special:Search.