diff --git a/classes/Utils.php b/classes/Utils.php index 3407c62c052e6b0294756685138fd67bb08f6c47..8f1d17dbe2571a56aad84d94da1d1069652bb5fc 100644 --- a/classes/Utils.php +++ b/classes/Utils.php @@ -157,6 +157,9 @@ class Utils{ case 'nt': $ser = ARC2::getNTriplesSerializer(); break; + case 'json': + $ser = ARC2::getRDFJSONSerializer(); + break; case 'rdf': $ser = ARC2::getRDFXMLSerializer(); break; diff --git a/common.inc.php b/common.inc.php index e4a1d795da8aea40cd77cea41d310d863d60b76f..0def982e2084c4ddb36c48f983e9719dc59f4476 100644 --- a/common.inc.php +++ b/common.inc.php @@ -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'); diff --git a/install.sh b/install.sh index eae44714df66c1608492b64e21c6e8788bda5304..3096417d76a26c2657906b7d0c6410d80c459b88 100755 --- a/install.sh +++ b/install.sh @@ -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 ..