Create an index.php file and put it in your wiki target directory:
Now you need a .htaccess file (or alternatively tweak the Apache configuration directly). If your server supports mod_headers, you can let Apache handle GET requests and send the "MS-Author-Via" Header:
Otherwise (w/o the mod_headers module), you have to route GET request through the PHP script, too:
Place the .htaccess file in the wiki directory.
Make sure the index.php script has write privileges for the wiki directory.
Now you should be able to use a SPARQL-enabled RDF editor such as Tabulator to create and edit RDF documents.
Play with a demo installation.
/* ARC2 static class inclusion */
include_once('path/to/arc/ARC2.php');
/* configuration */
$config = array(
// no config needed for now
);
/* instantiation */
$wiki = ARC2::getComponent('DataWikiPlugin', $config);
/* request handling */
$wiki->go();
Now you need a .htaccess file (or alternatively tweak the Apache configuration directly). If your server supports mod_headers, you can let Apache handle GET requests and send the "MS-Author-Via" Header:
# indicate SPARQL Update friendliness
Header set MS-Author-Via: SPARQL
# enable rewrites
RewriteEngine on
RewriteBase /path/to/wiki
# redirect POSTs to the Wiki script
RewriteCond %{REQUEST_METHOD} POST
RewriteRule !^index\.php index.php [L]
# redirect 404s to the Wiki script
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !^index\.php index.php [L]
Otherwise (w/o the mod_headers module), you have to route GET request through the PHP script, too:
# enable rewrites RewriteEngine on RewriteBase /path/to/wiki # redirect requests to the Wiki script RewriteRule !^index\.php index.php [L]
Place the .htaccess file in the wiki directory.
Make sure the index.php script has write privileges for the wiki directory.
Now you should be able to use a SPARQL-enabled RDF editor such as Tabulator to create and edit RDF documents.
Play with a demo installation.
Download
- The latest version of this plugin is available in the plugin download section.
Features and Limitations
- Support for simple INSERTs and DELETEs
- Documents are saved as .rdf (RDF/XML) files
- Automatic file deletion when all triples are removed
- No support for sub-directories yet
