{"id":13556868,"url":"https://github.com/rdfio/RDFIO","last_synced_at":"2025-04-03T10:31:38.091Z","repository":{"id":53569457,"uuid":"2667807","full_name":"rdfio/RDFIO","owner":"rdfio","description":"RDF triples import, export and PHP SPARQL endpoint for Semantic MediaWiki","archived":false,"fork":false,"pushed_at":"2021-03-23T19:31:22.000Z","size":1538,"stargazers_count":29,"open_issues_count":15,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-26T07:21:47.995Z","etag":null,"topics":["arc","converters","mediawiki","mysql","rdf","rdf-triples","semantic","semantic-mediawiki","smw","sparql"],"latest_commit_sha":null,"homepage":"http://www.mediawiki.org/wiki/Extension:RDFIO","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdfio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-28T20:42:38.000Z","updated_at":"2024-05-05T15:30:49.000Z","dependencies_parsed_at":"2022-09-12T20:17:01.153Z","dependency_job_id":null,"html_url":"https://github.com/rdfio/RDFIO","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdfio%2FRDFIO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdfio%2FRDFIO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdfio%2FRDFIO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdfio%2FRDFIO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdfio","download_url":"https://codeload.github.com/rdfio/RDFIO/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246984627,"owners_count":20864481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arc","converters","mediawiki","mysql","rdf","rdf-triples","semantic","semantic-mediawiki","smw","sparql"],"created_at":"2024-08-01T12:04:03.676Z","updated_at":"2025-04-03T10:31:38.063Z","avatar_url":"https://github.com/rdfio.png","language":"PHP","funding_links":[],"categories":["PHP","mysql"],"sub_categories":[],"readme":"RDFIO Extension for Semantic MediaWiki\n======================================\n\n[![Build Status](https://img.shields.io/circleci/project/github/rdfio/RDFIO.svg)](https://circleci.com/gh/rdfio/RDFIO)\n[![Test Coverage](https://img.shields.io/codecov/c/github/rdfio/RDFIO/master.svg)](https://codecov.io/gh/rdfio/RDFIO)\n[![Code Climate Maintenance](https://img.shields.io/codeclimate/maintainability/rdfio/RDFIO)](https://codeclimate.com/github/rdfio/RDFIO)\n[![Code Climate Tech Debt](https://img.shields.io/codeclimate/tech-debt/rdfio/RDFIO)](https://codeclimate.com/github/rdfio/RDFIO)\n[![Code Climate Issues](https://img.shields.io/codeclimate/issues/rdfio/RDFIO)](https://codeclimate.com/github/rdfio/RDFIO/issues)\n[![Codacy Grade](https://app.codacy.com/project/badge/Grade/4c2af982043d449fbdda26983ef9b199)](https://app.codacy.com/gh/rdfio/RDFIO/dashboard)\n[![Latest Stable Version](https://img.shields.io/packagist/v/rdfio/rdfio.svg)](https://packagist.org/packages/rdfio/rdfio)\n[![Licence](https://img.shields.io/packagist/l/rdfio/rdfio.svg)]()\n\n![Screenshot of the SPARQL Endpoint shipped with RDFIO](http://i.imgur.com/PMMIHZ4.png)\n\nUpdates\n-------\n\n**Sep 4, 2017:** Our paper on RDFIO was just published! If you use RDFIO in scientific work, please cite:\u003cbr\u003e\nLampa S, Willighagen E, Kohonen P, King A, Vrandečić D, Grafström R, Spjuth O\u003cbr\u003e \n[RDFIO: extending Semantic MediaWiki for interoperable biomedical data management](https://jbiomedsem.biomedcentral.com/articles/10.1186/s13326-017-0136-y)\u003cbr\u003e\n*Journal of Biomedical Semantics*. **8**:35 (2017). DOI: [10.1186/s13326-017-0136-y](https://dx.doi.org/10.1186/s13326-017-0136-y).\n\nIntroduction\n------------\n\nThis extension extends the RDF import and export functionality in Semantic\nMediaWiki by providing import of arbitrary RDF triples (not only OWL\nontologies, as before (see about [Ontology import](http://semantic-mediawiki.org/wiki/Help:Ontology_import),\nand a SPARQL endpoint that allows write operations.\n\nTechnically, RDFIO implements the PHP/MySQL based triple store (and its\naccompanying SPARQL Endpoint) provided by the [ARC2](http://arc.semsol.org/)\nlibrary. For updating wiki pages with new triples on import/sparql update, the\nWOM extension is used.\n\nThe RDF import stores the original URI of all imported RDF entities (in\na special property), which can later be used by the SPARQL endpoint,\ninstead of SMW's internal URIs, which thus allows to expose the imported\nRDF data \"in its original formats\", with its original URIs. This allows\nto use SMW as a collaborative RDF editor, in workflows together with\nother semantic tools, from which it is then possible to \"export,\ncollaboratively edit, and import again\", to/from SMW.\n\nThis extensions was initially developed as part of a\n[Google Summer of Code 2010 project](http://www.mediawiki.org/wiki/User:SHL/GSoC2010),\nand further extended as part of a [FOSS OPW 2014 project](https://www.mediawiki.org/wiki/Extension:RDFIO/Template_matching_for_RDFIO).\n\nInstallation\n------------\n\n### Easiest: Use the ready-made Virtual Machine\n\nThe 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. \n\n**Steps:**\n\n1. Download the `.ova` file from [doi.org/10.6084/m9.figshare.5383966.v1](https://doi.org/10.6084/m9.figshare.5383966.v1)\n2. In VirtualBox (should be similar in VMWare), select _\"File \u003e Import appliance\"_\n3. Click the folder icon\n4. Locate the `.ova` file you downloaded\n5. Click _\"Next\"_, _\"Agree\"_ to the license, and finally _\"Import\"_, to start the import\n6. Start the virtual machine\n7. Click log in (No password required)\n8. Click the icon on the desktop\n9. You will now see a local wiki installation with an RDFIO enabled wiki, in a browser!\n10. Enjoy!\n\n### Easy: Vagrant box\n\nAnother quite easy way, is to use the [RDFIO Vagrant\nbox](https://github.com/rdfio/rdfio-vagrantbox), which will automatically set\nup MediaWiki, SemanticMediaWiki and RDFIO in a virtual machine in under 20\nminutes.\n\n### Medium-hard: Install semi-manually using composer\n\n#### Install dependencies\n\n- [Composer](https://getcomposer.org/)\n  - See [this page](https://www.mediawiki.org/wiki/Composer) for installation instructions.\n- [MediaWiki](https://www.mediawiki.org)\n  - See [this page](https://www.mediawiki.org/wiki/Installation) for installation instructions.\n- [Semantic MediaWiki](https://www.semantic-mediawiki.org)\n  - See [this page](http://semantic-mediawiki.org/wiki/Help:Installation) for installation instructions.\n  - To show the \"Semantic factbox\" on all pages, make sure to include this in your LocalSettings.php file:\n\n```php\n$smwgShowFactbox = SMW_FACTBOX_NONEMPTY;\n```\n\n#### Installation steps\n\nAssuming you have followed the steps above to install the dependencies for RDFIO:\n\n1. Install RDFIO by executing the following commands in a terminal:\n\n   ```bash\n   cd \u003cwiki_folder\u003e\n   composer require rdfio/rdfio --update-no-dev\n   ```\n\n2. Log in to your wiki as a super user\n3. Browse to `http://[your-domain]/wiki/Special:RDFIOAdmin`\n4. Click the \"Setup\" button to set up ARC2 database tables.\n5. 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.\n   \n#### Optional but recommended steps\n\n* 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:\n\n   ```\n   * Semantic Tools\n   ** Special:RDFIOAdmin|RDFIO Admin\n   ** Special:RDFImport|RDF Import\n   ** Special:SPARQLEndpoint|SPARQL Endpoint\n   ** Special:SPARQLImport|SPARQL Import\n   ```\n\n* Create the article \"MediaWiki:Smw_uri_blacklist\" and make sure it is empty (you might need to add some nonsense content like `{{{\u003c!--empty--\u003e}}}`).\n\n#### Test that it works\n\n* Access the **SPARQL endpoint** at `http://[url-to-your-wiki]/Special:SPARQLEndpoint`\n* Access the **RDF Import page** at `http://[url-to-your-wiki]/Special:RDFImport`\n* Access the **SPARQL Import page** at `http://[url-to-your-wiki]/Special:SPARQLImport`\n* 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`.\n\n### Additional configuration\n\nThese 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:\n\n```php\n# ---------------------------------------------------------------\n#  RDFIO Configuration\n# ---------------------------------------------------------------\n# An associative array with base uris as keys and corresponding \n# prefixes as the items. Example:\n# array( \n#       \"http://example.org/someOntology#\" =\u003e \"ont1\",\n#       \"http://example.org/anotherOntology#\" =\u003e \"ont2\"\n#      );\n# $rdfiogBaseURIs = array();\n# ---------------------------------------------------------------\n# Query by /Output Equivalent URIs SPARQL Endpoint \n# (overrides settings in HTML Form)\n# \n# $rdfiogQueryByEquivURI = false;\n# $rdfiogOutputEquivURIs = false;\n#\n# $rdfiogTitleProperties = array(\n#  'http://semantic-mediawiki.org/swivt/1.0#page',\n#  'http://www.w3.org/2000/01/rdf-schema#label',\n#  'http://purl.org/dc/elements/1.1/title',\n#  'http://www.w3.org/2004/02/skos/core#preferredLabel',\n#  'http://xmlns.com/foaf/0.1/name',\n#  'http://www.nmrshiftdb.org/onto#spectrumId'\n# );\n# ---------------------------------------------------------------\n# Allow edit operations via SPARQL from remote services\n#\n# $rdfiogAllowRemoteEdit = false;\n# ---------------------------------------------------------------\n```\n\nDependencies\n------------\n\n- PHP 5.3 - latest (SMW [might have more strict deps](https://www.semantic-mediawiki.org/wiki/Help:Compatibility))\n- MySQL (MariaDB unfortunatly not supported yet. See [#48](https://github.com/rdfio/RDFIO/issues/48))\n- [MediaWiki](mediawiki.org) - Tested with 1.27 - 1.29\n- [Semantic MediaWiki Extension](http://www.mediawiki.org/wiki/Extension:Semantic_MediaWiki) - Tested with 2.4 - 3.0-alpha\n- [The ARC2 RDF library for PHP](https://github.com/semsol/arc2) - Latest version on github should work\n\nKnown limitations\n-----------------\n\n- RDFIO does not yet support all the features of [SMW's vocabulary import](https://www.semantic-mediawiki.org/wiki/Help:Import_vocabulary).\n\nBugs, new feature request and contact information\n-------------------------------------------------\n\nPlease reports bugs and feature requests in the\n[issue tracker](https://github.com/rdfio/RDFIO/issues) here on Github.\n\nLinks\n-----\n\n- [RDFIO's page on MediaWiki.org](https://www.mediawiki.org/wiki/Extension:RDFIO)\n- [RDFIO project page on pharmb.io (where it is partly developed)](https://pharmb.io/project/rdfio/)\n\nRelated work\n------------\n\n- [FresnelForms](http://is.cs.ou.nl/OWF/index.php5/Fresnel_Forms)\n- [KnowledgeWiki](http://knoesis.org/node/2696)\n- [LinkedData Extension](https://www.mediawiki.org/wiki/Extension:LinkedWiki)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdfio%2FRDFIO","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdfio%2FRDFIO","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdfio%2FRDFIO/lists"}