Skip to content
Snippets Groups Projects
Commit 5af2ce02 authored by alangrafu's avatar alangrafu
Browse files

Adding json export

Also, fixed typo in configuration
parent ee8388e0
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,9 @@ class Utils{
case 'nt':
$ser = ARC2::getNTriplesSerializer();
break;
case 'json':
$ser = ARC2::getRDFJSONSerializer();
break;
case 'rdf':
$ser = ARC2::getRDFXMLSerializer();
break;
......
......@@ -26,6 +26,7 @@ $conf['resource']['url_delimiter'] = "%u";
$conf['http_accept']['html'] = array('text/html');
$conf['http_accept']['rdf'] = array('application/rdf+xml');
$conf['http_accept']['ttl'] = array('text/n3', 'application/x-turtle', 'application/turtle', 'text/turtle');
$conf['http_accept']['json'] = array('application/json', 'application/x-javascript', 'text/javascript', 'text/x-javascript', 'text/x-json');
$conf['http_accept']['nt'] = array('text/plain');
......
......@@ -81,7 +81,7 @@ LODSPEAKR_HOME=`pwd`/
\$conf['home'] = '$LODSPEAKR_HOME';
\$conf['basedir'] = '$basedir';
\$conf['debug'] = false;
\$conf['use_external_uris'] = fasle;
\$conf['use_external_uris'] = false;
#If you want to add/overrid a namespace, add it here
\$conf['ns']['local'] = '$ns';
......@@ -99,11 +99,13 @@ cp $root_htaccess $parent_htaccess
cd views
ln -s default.view.rdf default.view.nt
ln -s default.view.rdf default.view.ttl
ln -s default.view.rdf default.view.json
ln -s owl:Class.view.html rdfs:Class.view.html
cd ../models
ln -s default.model.rdf default.model.nt
ln -s default.model.rdf default.model.ttl
ln -s default.model.rdf default.model.json
ln -s owl:Class.model.html rdfs:Class.view.html
cd ..
......
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