Extension:Spark
Spark Release status: beta |
|
---|---|
File:Spark-logo.png | |
Implementation | Tag , Search, Extended syntax |
Description | Adds a <spark /> tag that enables embedding Spark mash-ups. The spark library was created by Denny Vrandecic and Andreas Harth. |
Author(s) | Jeroen De Dauwtalk |
Latest version | 1.0.0 |
MediaWiki | >= 1.35.0 |
License | GNU General Public License 3.0 or later |
Download | |
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the Spark extension if it is available at translatewiki.net |
Spark is a JavaScript library that allows the simple integration of data from all over the Web in any HTML page, using a rich set of visualisations. This extension enabled embedding of spark mashups using <spark />
tags.
About
Spark is a JavaScript library that allows the simple integration of data from all
over the Web in any HTML page, using a rich set of visualizations. This extension
enabled embedding of spark mashups using <spark />
tags.
Spark as described on the Spark website:
Spark is a library that enables HTML authors to create mashups more easily than ever before. Using standard Web technologies like SPARQL, RDF, HTML5, and JavaScript, Spark can query external knowledge sources (so called triple stores or SPARQL endpoints), and then visualise the results.
With Spark, website developers can create visually appealing mashups without having to write a single line of JavaScript, but merely using some markup elements describing the source of the data that is to be shown, a query to select the appropriate data, and selecting one from an expandable set of visualisations and their parameters.
This MediaWiki extension, unsurprisingly titled Spark, adds a <spark>
tag to MediaWiki
which is equivalent to <div class="spark">
as described in the spark library documentation.
All parameters (except the class="spark" one) can just be copied over between spark divs
in web pages, and the <spark>
tag in MediaWiki.
Feature overview
- Visualization of data obtained via SPARQL queries.
- Support for all Spark visualizations.
- Use of the native Spark syntax, which can be copied from native spark divs to the spark tag and back.
Download
<translate> The extension can be retrieved directly from Git</translate> [?]:
- <translate> Browse code</translate>
- <translate> Some extensions have tags for stable releases.</translate>
- <translate> Browse tags</translate>
- <translate> Select the tag</translate>
- <translate> Click "snapshot"</translate>
- <translate> Each branch is associated with a past MediaWiki release.</translate> <translate> There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).</translate>
- <translate> Browse branches</translate>
- <translate> Select a branch name</translate>
- <translate> Click "<tvar name=1>⧼extdist-submit-version⧽</tvar>"</translate>
<translate> Extract the snapshot and place it in the <tvar name=name>extensions/Spark/</tvar> directory of your MediaWiki installation.
If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows: </translate>
cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Spark.git
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/Spark</tvar>|Download]] and move the extracted <tvar name=name>
Spark
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Spark - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'Spark' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Usage
Spark tag
Version
This is a copy of the release notes file in the repo, which might be more up to date then this page.
- Version 0.2 / 201x-0x-xx
- Added README, INSTALL, COPYTING and RELEASE-NOTES
- Version 0.1 / 2011-05-30
Initial release with these features:
<spark>
tag
Internationalization
Spark is fully internationalized. Translation of Spark messages is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.
Authors
Spark has been written by Jeroen De Dauw. It includes the Spark library created by Denny Vrandečić and Andreas Harth.
See also
- Semantic MediaWiki - extension that lets you store and query data within the wiki's pages and makes it available via the semantic web.