Difference between revisions of "Mediawiki with Fuseki triplestore backen"

From /

Line 8: Line 8:
=Running Fuseki=
=Running Fuseki=
[[Fuseki SPARQL server]]
See '''[[Fuseki SPARQL server]]'''
=SMW Setting for Fuseki=
=SMW Setting for Fuseki=

Revision as of 14:01, 23 May 2020

In this page I will go over the steps required to setup Semantic Mediawiki with a Triple Storage graph database, with Apache Jena Fuseki, [1] SPARQL server.

According to SMW documentation:[2]

By default, Semantic MediaWiki (SMW) stores all data in the same relational database (usually, a MySQL database) that is used by MediaWiki. This ensures a simple setup, but a relational database is not an ideal type of storage for semantic data. A more natural data model for SMW data is RDF, a data format that organizes information in graphs rather than in fixed database tables.

See more in SMW2.0 Release Notes [3]

Running Fuseki

See Fuseki SPARQL server


SMW Setting for Fuseki

With SMW installed and enabled

enableSemantics( 'localhost' );

The following settings are added to LocalSettings.php

$smwgDefaultStore = 'SMWSparqlStore';
$smwgSparqlRepositoryConnector = 'fuseki';

$smwgSparqlEndpoint["query"] = 'http://localhost:3030/triplewiki/query';
$smwgSparqlEndpoint["update"] = 'http://localhost:3030/triplewiki/update';
$smwgSparqlEndpoint["data"] = '';

Test queries

In Fuseki interface

All Page type properties:


Note: SWIVT is the Semantic Wiki Vocabulary and Terminology[4]

PREFIX foaf: <>
PREFIX rdf: <>
PREFIX rdfs: <>
PREFIX owl: <>
PREFIX triplewiki: <http://localhost/triplestorage/index.php/>
PREFIX swivt: <>

{?o swivt:page ?v}

Code_Notes +
Date"Date" is a type and predefined property provided by Semantic MediaWiki to represent date values.
2020 +