User:Karima Rafes/draft:Extension LinkedWiki 3.0

DRAFT of the future page

 { "type": "Feature", "geometry": { "type":"Point", "coordinates":[-122.3988, 37.8013] }, "properties": { "title": "Exploratorium", "description": "", "marker-symbol": "museum", "marker-size": "large", "marker-color": "0050d0" } }

The LinkedWiki extension allows to reuse the Linked Data in your Wiki. You are able to reuse Wikidata or another source directly with a SPARQL query. This extension gives also Lua functions to build your module in order to write your data in your RDF database.

Configuration of your SPARQL endpoints
Often, the configuration of endpoints is not trivial and very different in function of RDF database. In the configuration of the extension, you can declare correctly public endpoints and also your private endpoints.

The extension supports the endpoints with credentials where the users of your Wiki can reuse your private data without seeing your credentials.

See details : Configuration of the LinkedWiki extension

Module : Lua class to read/write data in your database
Generally in Wiki for users, a page is a object where they want write/read a property. Unfortunately, your ontology can be complex and the contributor are rarely experts in RDF or in SPARQL.

The extension can simplify the job of contributors and developers without imposing a specific ontology.

We built a Lua class where you can build your own module (for example an infobox) where you can write or read a property via a simple function. This function will use the description of your ontology in the configuration of the extension in order to save correctly this property in your database.

See details : Class Linkedwiki for Lua

Parser : Reuse your data in your wiki
The extension gives parser functions #SPARQL and #WSPARQL in order to reuse your data or the Linked Data in your wiki.

You can use a specific endpoint or reuse a endpoint already defined in he configuration of the extension.

It's possible to customize the result of your SPARQL query via templates or via widgets

See details :
 * #sparql : Reuse your data and the Linked Data in a wiki page with the parser function #sparql
 * #wsparql : Reuse your data and the Linked Data in your widget


 * reuse your data in a page with templates with a parser function. Example:
 * print the result of your query in a mediawiki widget. Thus, you can build by yourself new widgets for your Wiki. Example with the Google maps widget with Worldwide Earthquakes :

Build your SPARQL query (Work in progress)
The LinkedWiki extension gives two SPARQL editors. Flint Editor works with SPARQL endpoint 1.1 or 1.0 but sometimes, it doesn't work for example with Wikidata.

We develop a new SPARQL editor where you can select in one click an endpoint already defined in your configuration and read (and write, if you want) via SPARQL directly in this editor.

TODO insert screenshot

See details : Test your queries : Test and save your SPARQL queries directly in your wiki. Work in progress (experimental)

Visualization (Work in progress)
We tested several tools to insert nice visualization of your data in your wiki.

See details : Visualization

Download instructions
For the version 3.x, you need to use the master version. It's tested with PHP7 and Mediawiki 1.27 (but it works also with PHP5 and Mediawiki 1.25+).

You can download the last version with this link.

Installation
To install this extension, add the following to LocalSettings.php:

If, after the installation, you have errors about CURL in the log, probably you need to install the lib php5-curl in your server.

Configuration
Wikidata is the endpoint (read only) by default of your wiki.

If you add add a new endpoint and change the default endpoint of your wiki, you can change the file : extension/Linkedwiki/extension.json

For example : TODO insert examples


 * See details of parameters : Parameters
 * Examples of other endpoints : List of configurations

= Mailing list / Google Group =
 * FAQ and problems : http://groups.google.com/group/linkedwiki

Work in progress

 * Add autocompletion tools for Wikidata
 * Tools to configure any RDF database

=See also= TODO
 * Wikidata examples
 * SPARQL examples
 * Tutorial SPARQL in french (Wikiversity)
 * W3C Recommendation Sparql 1.0
 * W3C Working Draft Sparql 1.1
 * Stats and tree Git of LinkedWiki