LinkedWiki-Mediawiki Extension: Difference between revisions

From artserver wiki
No edit summary
Line 22: Line 22:
And finally run yarn install:
And finally run yarn install:
  yarn install --production=true
  yarn install --production=true
Load the extension in LocalSettings.php, by adding to it:
wfLoadExtension( 'LinkedWiki' );

Revision as of 10:55, 15 May 2020


The LinkedWiki extension lets you reuse Linked Data in your wiki. You can get data from Wikidata or another source directly with a SPARQL query. This extension also provides Lua functions for building your modules so that you can write your data in your RDF database.

installation

You will need to install yarn , I have followed the instructions in https://classic.yarnpkg.com/en/docs/install/#debian-stable which as I have problems with the yarn packed from the Debian Stable apt source.


cd extensions
git clone https://github.com/wikimedia/mediawiki-extensions-LinkedWiki.git LinkedData
cd LinkedData

Install composer (locally). I prefer not to have composer installed system wide, so I will install it in the LinkedData extension dir.

curl -sS https://getcomposer.org/installer | php

Run composer install, to install the dependencies

php composer.phar install --no-dev

And finally run yarn install:

yarn install --production=true

Load the extension in LocalSettings.php, by adding to it:

wfLoadExtension( 'LinkedWiki' );
Code_Notes +
Date"Date" is a type and predefined property provided by Semantic MediaWiki to represent date values.
2020 +