Skip to content
Snippets Groups Projects
Commit 40093bb1 authored by alangrafu's avatar alangrafu Committed by GIT_AUTHOR_NAME
Browse files

Merge branch 'development'

parents d03179fd 8d2dab15
No related branches found
No related tags found
No related merge requests found
lodspeakr - Simple Publishing Kit for Linked Open Data lodspeakr - Simple Publishing Kit for Linked Open Data
author: Alvaro Graves (alvaro@graves.cl) author: Alvaro Graves (alvaro@graves.cl)
version: 20110925 version: 20120113
Simplest Installation Simplest Installation
--------------------- ---------------------
...@@ -9,45 +9,13 @@ Just run ...@@ -9,45 +9,13 @@ Just run
bash < <(curl -s http://lodspeakr.org/install) bash < <(curl -s http://lodspeakr.org/install)
Simple Installation Alternative methods of installation available at
-------------------
* Download the source or clone the repository from http://github.com/alangrafu/lodspeakr https://github.com/alangrafu/lodspeakr/wiki/Installation
* Inside lodspeakr/ run ./install.sh
Manual Installation
-------------------- That's it. You should be able to serve your data in RDF/XML, Turtle, Ntriples, JSONRDF and RDFa.
* Download the source or clone the repository from http://github.com/alangrafu/lodspeakr Documentation available at
* Edit settings.default.inc.php and change the following values: https://github.com/alangrafu/lodspeakr/wiki
** $conf['endpoint']['host'] Point to the SPARQL endpoint with your data
** $conf['basedir'] The base URL in which slopds will be locations (e.g., http://example.org, http://example.com/data)
** $conf['ns']['local'] Defines your local namespace
*** If you want, you can add more namespaces as $conf['ns']['myns'] = 'http://namespacesite.com/'
** $conf['home'] Defines where is LODSPeaKr located (i.e., /var/www/html/mydata/lodspeakr)
* mv settings.default.inc.php settings.inc.php
Give write permissions to your http server on cache/ and meta/ dirs as well as meta/db.sqlite database.
This can be done in different ways depending on your configuration.
* If you are in ther same group as the httpd user
** chmod -R g+w cache meta
* If you want to assign those dirs to your webserver
** sudo chown -R www-apache meta cache
NOTE: You must check what is the name of the user for your server. Common names are
* www
* www-apache
* apache2
* httpd
That's it. You should be able to serve your data in RDF/XML, Turtle, Ntriples and RDFa.
Templating
----------
Soon.
<? <?
$conf['endpoint']['host'] = 'http://myendpoint/sparql/'; # Where is LODSPeaKr's root located? (don't include word 'lodspeakr')
$conf['endpoint']['config']['show_inline'] = 0; $conf['basedir'] = 'http://foo/bar/'; #include final slash
$conf['basedir'] = 'http://mybaseurl/';
# What is the namespace of your data?
$conf['ns']['rdf'] = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'; $conf['ns']['local'] = 'http://foo/bar/data/';
$conf['ns']['rdfs'] = 'http://www.w3.org/2000/01/rdf-schema#'; #If you want to add/overrid a namespace, add it here
$conf['ns']['dcterms'] = 'http://purl.org/dc/terms/'; $conf['ns']['other'] = 'http://example.org/data/';
$conf['ns']['foaf'] = 'http://xmlns.com/foaf/0.1/';
$conf['ns']['skos'] = 'http://www.w3.org/2004/02/skos/core#'; #Where is your SPARQL endpoint
$conf['ns']['og'] = 'http://opengraphprotocol.org/schema/'; $conf['endpoint']['host'] = 'http://myendpoint/sparql';
$conf['ns']['owl'] = 'http://www.w3.org/2002/07/owl#';
$conf['ns']['local'] = 'http://shai-hulud/testCMS/'; $conf['home'] = '/Users/alvarograves/github/lodspeakr/'; #change to the location of LODSPeaKr in the dir tree
$conf['ns']['ov'] = 'http://open.vocab.org/terms/';
$conf['ns']['conv'] = 'http://purl.org/twc/vocab/conversion/'; $conf['debug'] = false; #Ugly dump of queries and values obtained
$conf['mirror_external_uris'] = false; #TRUE is local namespace != basedir
$conf['model']['directory'] = 'models/'; #include trailing slash!
$conf['model']['extension'] = '.model'; /*ATTENTION: By default this application is available to
$conf['model']['default'] = 'default'; * be exported and copied (its configuration)
* by others. If you do not want that,
$conf['view']['directory'] = 'views/'; #include trailing slash! * turn the next option as false
$conf['view']['extension'] = '.view'; */
$conf['view']['default'] = 'default'; $conf['export'] = true;
$conf['view']['standard']['baseUrl'] = $conf['basedir'];
$conf['resource']['url_delimiter'] = "%u";
$conf['http_accept']['html'] = array('text/html', 'application/xhtml');
$conf['http_accept']['rdf'] = array('application/rdf+xml');
$conf['http_accept']['ttl'] = array('text/n3', 'application/turtle', 'application/turtle', 'text/turtle');
$conf['http_accept']['nt'] = array('text/plain');
?> ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment