Core extensionVersion 0.1.14

GraphWiki

The semantic foundation for your MediaWiki.

Overview

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.

Features

Structured statements

Create and edit resource links and literal values alongside a page’s readable description.

Current content in RDF

Read and write current managed page content and derived relationships through the configured triplestore.

SPARQL query editor

Write queries with syntax highlighting, formatting, and graph-aware autocomplete. SELECT and ASK queries use the configured backend.

Native page workflows

Keep graph state aligned with managed page edits, moves, deletion, restoration, and imports.

MediaWiki revision history

Keep historical revisions in MediaWiki and expose native history, comparisons, and activity to extensions.

Installation

Run commands from your MediaWiki installation directory. The source repository requires GitLab access. Replace the example endpoints with your own triplestore and wiki addresses.

  1. Get the extension

    Place the canonical repository in the GraphWiki extension directory. Review the release and configuration notes before enabling it.

    From the MediaWiki directory
    git clone https://git.dobriy.ai/semantic/graphwiki.git extensions/GraphWiki
  2. Connect the triplestore

    Add the extension and backend settings to LocalSettings.php. Configure any backend authentication in private server configuration.

    LocalSettings.php
    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/';
  3. Update MediaWiki’s schema

    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.

    From the MediaWiki directory
    php maintenance/run.php update --quick
  4. Check the installation

    Confirm GraphWiki appears in Special:Version. Open a readable page, check its Statements tab, and run a SPARQL query through Special:Search.

Screenshots

Open original ↗