Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
40093bb1
Commit
40093bb1
authored
13 years ago
by
alangrafu
Committed by
GIT_AUTHOR_NAME
13 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'development'
parents
d03179fd
8d2dab15
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README
+7
-39
7 additions, 39 deletions
README
settings.default.inc.php
+24
-30
24 additions, 30 deletions
settings.default.inc.php
with
31 additions
and
69 deletions
README
+
7
−
39
View file @
40093bb1
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: 201
10925
version: 201
20113
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.
This diff is collapsed.
Click to expand it.
settings.default.inc.php
+
24
−
30
View file @
40093bb1
<?
<?
$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'
);
?>
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment