PHPackages                             rdfio/rdfio - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. rdfio/rdfio

ActiveMediawiki-extension

rdfio/rdfio
===========

RDFIO extension for importing data in RDF format to Semantic MediaWiki

v3.0.2(8y ago)29743↓100%12[12 issues](https://github.com/rdfio/RDFIO/issues)[3 PRs](https://github.com/rdfio/RDFIO/pulls)GPL-2.0PHP

Since Oct 26Pushed 1y ago6 watchersCompare

[ Source](https://github.com/rdfio/RDFIO)[ Packagist](https://packagist.org/packages/rdfio/rdfio)[ Docs](https://mediawiki.org/wiki/Extension:RDFIO)[ RSS](/packages/rdfio-rdfio/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (27)Used By (0)

RDFIO Extension for Semantic MediaWiki
======================================

[](#rdfio-extension-for-semantic-mediawiki)

[![Build Status](https://camo.githubusercontent.com/4c07a9b24a4ec902bb1cb26935105bf379d4a19ed77339a832499c4e0c870f08/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f726466696f2f524446494f2e737667)](https://circleci.com/gh/rdfio/RDFIO)[![Test Coverage](https://camo.githubusercontent.com/0ca61a4e188dbf6e3da34031c1bc143b2c1d3192b07592e9823460b85d079e1e/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f726466696f2f524446494f2f6d61737465722e737667)](https://codecov.io/gh/rdfio/RDFIO)[![Code Climate Maintenance](https://camo.githubusercontent.com/ef3f32f2c4b9f480e8dd922522ce7182da70b4efb20a112e5793d13d6666c5b2/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f726466696f2f524446494f)](https://codeclimate.com/github/rdfio/RDFIO)[![Code Climate Tech Debt](https://camo.githubusercontent.com/e666fc09c638a9f1cf791e713b57fd86764d03fec3addc09840ebf26878fbec6/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f746563682d646562742f726466696f2f524446494f)](https://codeclimate.com/github/rdfio/RDFIO)[![Code Climate Issues](https://camo.githubusercontent.com/f3e731f9debee40559b2a01426f61e351693b26acf3ff7d2af2b6d32d839bfc5/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6973737565732f726466696f2f524446494f)](https://codeclimate.com/github/rdfio/RDFIO/issues)[![Codacy Grade](https://camo.githubusercontent.com/3d457865e90e743a6d64c7796e371e27dd40734fc17268ee619b702176d64b60/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3463326166393832303433643434396662646461323639383365663962313939)](https://app.codacy.com/gh/rdfio/RDFIO/dashboard)[![Latest Stable Version](https://camo.githubusercontent.com/eb6d61b61dfce6f4a079e90f9f94431b396bdac64f01f7cb66d5018a9bd45b7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726466696f2f726466696f2e737667)](https://packagist.org/packages/rdfio/rdfio)![Licence](https://camo.githubusercontent.com/d20e7687e5f1f9e5cc312fd484e40dd76a18ff02a815c84403499c9b3280f1be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726466696f2f726466696f2e737667)

[![Screenshot of the SPARQL Endpoint shipped with RDFIO](https://camo.githubusercontent.com/bed3033b9e955b23a772287a041824b41e1cd560dc16636fabf07e8a458bc6f8/687474703a2f2f692e696d6775722e636f6d2f504d4d49485a342e706e67)](https://camo.githubusercontent.com/bed3033b9e955b23a772287a041824b41e1cd560dc16636fabf07e8a458bc6f8/687474703a2f2f692e696d6775722e636f6d2f504d4d49485a342e706e67)

Updates
-------

[](#updates)

**Sep 4, 2017:** Our paper on RDFIO was just published! If you use RDFIO in scientific work, please cite:
Lampa S, Willighagen E, Kohonen P, King A, Vrandečić D, Grafström R, Spjuth O
[RDFIO: extending Semantic MediaWiki for interoperable biomedical data management](https://jbiomedsem.biomedcentral.com/articles/10.1186/s13326-017-0136-y)
*Journal of Biomedical Semantics*. **8**:35 (2017). DOI: [10.1186/s13326-017-0136-y](https://dx.doi.org/10.1186/s13326-017-0136-y).

Introduction
------------

[](#introduction)

This extension extends the RDF import and export functionality in Semantic MediaWiki by providing import of arbitrary RDF triples (not only OWL ontologies, as before (see about [Ontology import](http://semantic-mediawiki.org/wiki/Help:Ontology_import), and a SPARQL endpoint that allows write operations.

Technically, RDFIO implements the PHP/MySQL based triple store (and its accompanying SPARQL Endpoint) provided by the [ARC2](http://arc.semsol.org/)library. For updating wiki pages with new triples on import/sparql update, the WOM extension is used.

The RDF import stores the original URI of all imported RDF entities (in a special property), which can later be used by the SPARQL endpoint, instead of SMW's internal URIs, which thus allows to expose the imported RDF data "in its original formats", with its original URIs. This allows to use SMW as a collaborative RDF editor, in workflows together with other semantic tools, from which it is then possible to "export, collaboratively edit, and import again", to/from SMW.

This extensions was initially developed as part of a [Google Summer of Code 2010 project](http://www.mediawiki.org/wiki/User:SHL/GSoC2010), and further extended as part of a [FOSS OPW 2014 project](https://www.mediawiki.org/wiki/Extension:RDFIO/Template_matching_for_RDFIO).

Installation
------------

[](#installation)

### Easiest: Use the ready-made Virtual Machine

[](#easiest-use-the-ready-made-virtual-machine)

The absolute easiest way to try out RDFIO is to import the [Ready-made Virtual Machine with RDFIO 3.0.2 (with MW 1.29 and SMW 2.5)](https://doi.org/10.6084/m9.figshare.5383966) into VirtualBox or VMWare, and just start browsing the local wiki installation.

**Steps:**

1. Download the `.ova` file from [doi.org/10.6084/m9.figshare.5383966.v1](https://doi.org/10.6084/m9.figshare.5383966.v1)
2. In VirtualBox (should be similar in VMWare), select *"File &gt; Import appliance"*
3. Click the folder icon
4. Locate the `.ova` file you downloaded
5. Click *"Next"*, *"Agree"* to the license, and finally *"Import"*, to start the import
6. Start the virtual machine
7. Click log in (No password required)
8. Click the icon on the desktop
9. You will now see a local wiki installation with an RDFIO enabled wiki, in a browser!
10. Enjoy!

### Easy: Vagrant box

[](#easy-vagrant-box)

Another quite easy way, is to use the [RDFIO Vagrant box](https://github.com/rdfio/rdfio-vagrantbox), which will automatically set up MediaWiki, SemanticMediaWiki and RDFIO in a virtual machine in under 20 minutes.

### Medium-hard: Install semi-manually using composer

[](#medium-hard-install-semi-manually-using-composer)

#### Install dependencies

[](#install-dependencies)

- [Composer](https://getcomposer.org/)
    - See [this page](https://www.mediawiki.org/wiki/Composer) for installation instructions.
- [MediaWiki](https://www.mediawiki.org)
    - See [this page](https://www.mediawiki.org/wiki/Installation) for installation instructions.
- [Semantic MediaWiki](https://www.semantic-mediawiki.org)
    - See [this page](http://semantic-mediawiki.org/wiki/Help:Installation) for installation instructions.
    - To show the "Semantic factbox" on all pages, make sure to include this in your LocalSettings.php file:

```
$smwgShowFactbox = SMW_FACTBOX_NONEMPTY;
```

#### Installation steps

[](#installation-steps)

Assuming you have followed the steps above to install the dependencies for RDFIO:

1. Install RDFIO by executing the following commands in a terminal:

    ```
    cd
    composer require rdfio/rdfio --update-no-dev
    ```
2. Log in to your wiki as a super user
3. Browse to `http://[your-domain]/wiki/Special:RDFIOAdmin`
4. Click the "Setup" button to set up ARC2 database tables.
5. If you already have semantic annotations in your wiki, you need to go to the article "Special:SMWAdmin" in your wiki, and click "Start updating data", and let it complete, in order for the data to be available in the SPARQL endpoint.

#### Optional but recommended steps

[](#optional-but-recommended-steps)

- Edit the MediaWiki:Sidebar page and add the following wiki snippet, as an extra menu (I use to place it before just the "\* SEARCH" line), which will give you links to the main functionality with RDFIO from the main links in the left sidebar on the wiki:

    ```
    * Semantic Tools
    ** Special:RDFIOAdmin|RDFIO Admin
    ** Special:RDFImport|RDF Import
    ** Special:SPARQLEndpoint|SPARQL Endpoint
    ** Special:SPARQLImport|SPARQL Import

    ```
- Create the article "MediaWiki:Smw\_uri\_blacklist" and make sure it is empty (you might need to add some nonsense content like `{{{\}}}`).

#### Test that it works

[](#test-that-it-works)

- Access the **SPARQL endpoint** at `http://[url-to-your-wiki]/Special:SPARQLEndpoint`
- Access the **RDF Import page** at `http://[url-to-your-wiki]/Special:RDFImport`
- Access the **SPARQL Import page** at `http://[url-to-your-wiki]/Special:SPARQLImport`
- Optionally, if you want to really see that it works, try adding some semantic data to wiki pages, and then check the database (using phpMyAdmin e.g.) to see if you get some triples in the table named `arc2store_triple`.

### Additional configuration

[](#additional-configuration)

These are some configuration options that you might want to adjust to your specific use case. That goes into your `LocalSettings.php` file. Find below a template with the default options, which you can start from, add to your `LocalSettings.php` file and modify to your liking:

```
# ---------------------------------------------------------------
#  RDFIO Configuration
# ---------------------------------------------------------------
# An associative array with base uris as keys and corresponding
# prefixes as the items. Example:
# array(
#       "http://example.org/someOntology#" => "ont1",
#       "http://example.org/anotherOntology#" => "ont2"
#      );
# $rdfiogBaseURIs = array();
# ---------------------------------------------------------------
# Query by /Output Equivalent URIs SPARQL Endpoint
# (overrides settings in HTML Form)
#
# $rdfiogQueryByEquivURI = false;
# $rdfiogOutputEquivURIs = false;
#
# $rdfiogTitleProperties = array(
#  'http://semantic-mediawiki.org/swivt/1.0#page',
#  'http://www.w3.org/2000/01/rdf-schema#label',
#  'http://purl.org/dc/elements/1.1/title',
#  'http://www.w3.org/2004/02/skos/core#preferredLabel',
#  'http://xmlns.com/foaf/0.1/name',
#  'http://www.nmrshiftdb.org/onto#spectrumId'
# );
# ---------------------------------------------------------------
# Allow edit operations via SPARQL from remote services
#
# $rdfiogAllowRemoteEdit = false;
# ---------------------------------------------------------------
```

Dependencies
------------

[](#dependencies)

- PHP 5.3 - latest (SMW [might have more strict deps](https://www.semantic-mediawiki.org/wiki/Help:Compatibility))
- MySQL (MariaDB unfortunatly not supported yet. See [\#48](https://github.com/rdfio/RDFIO/issues/48))
- [MediaWiki](mediawiki.org) - Tested with 1.27 - 1.29
- [Semantic MediaWiki Extension](http://www.mediawiki.org/wiki/Extension:Semantic_MediaWiki) - Tested with 2.4 - 3.0-alpha
- [The ARC2 RDF library for PHP](https://github.com/semsol/arc2) - Latest version on github should work

Known limitations
-----------------

[](#known-limitations)

- RDFIO does not yet support all the features of [SMW's vocabulary import](https://www.semantic-mediawiki.org/wiki/Help:Import_vocabulary).

Bugs, new feature request and contact information
-------------------------------------------------

[](#bugs-new-feature-request-and-contact-information)

Please reports bugs and feature requests in the [issue tracker](https://github.com/rdfio/RDFIO/issues) here on Github.

Links
-----

[](#links)

- [RDFIO's page on MediaWiki.org](https://www.mediawiki.org/wiki/Extension:RDFIO)
- [RDFIO project page on pharmb.io (where it is partly developed)](https://pharmb.io/project/rdfio/)

Related work
------------

[](#related-work)

- [FresnelForms](http://is.cs.ou.nl/OWF/index.php5/Fresnel_Forms)
- [KnowledgeWiki](http://knoesis.org/node/2696)
- [LinkedData Extension](https://www.mediawiki.org/wiki/Extension:LinkedWiki)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 88.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~2 days

Total

23

Last Release

3192d ago

Major Versions

v2.4.0 → v3.0.02017-08-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/30ee2db092d914eb9d2a139349959f50db19e5b049537914f1a086a8b8be1080?d=identicon)[samuell](/maintainers/samuell)

---

Top Contributors

[![samuell](https://avatars.githubusercontent.com/u/125003?v=4)](https://github.com/samuell "samuell (602 commits)")[![zahara](https://avatars.githubusercontent.com/u/647957?v=4)](https://github.com/zahara "zahara (75 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (2 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

arcconvertersmediawikimysqlrdfrdf-triplessemanticsemantic-mediawikismwsparqlmediawikiRDFLinked DataSemantic MediaWiki

### Embed Badge

![Health badge](/badges/rdfio-rdfio/health.svg)

```
[![Health](https://phpackages.com/badges/rdfio-rdfio/health.svg)](https://phpackages.com/packages/rdfio-rdfio)
```

###  Alternatives

[mediawiki/semantic-media-wiki

An extension to MediaWiki that lets you store and query structured data within wiki pages

586361.8k33](/packages/mediawiki-semantic-media-wiki)[mediawiki/maps

Adds various mapping features to MediaWiki

84145.0k3](/packages/mediawiki-maps)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[mediawiki/semantic-result-formats

Provides additional result formats for queries using Semantic MediaWiki

51180.7k1](/packages/mediawiki-semantic-result-formats)[mediawiki/semantic-cite

A Semantic MediaWiki extension to manage citation resources.

2310.2k1](/packages/mediawiki-semantic-cite)[mediawiki/semantic-extra-special-properties

Provides extra special properties for Semantic MediaWiki

3074.6k1](/packages/mediawiki-semantic-extra-special-properties)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
