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

Added starting index of available services

Move special/index to special/classes
Added special/namedGraphs
parent ba6a5db7
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ class SpecialFunction extends AbstractSpecialFunction{
$viewFile = $conf['special']['uri'].".".$f.$conf['view']['extension'].".".$extension;
$modelFile = $conf['special']['uri'].".".$f.$conf['model']['extension'].".".$extension;
if(!(is_dir($conf['model']['directory'].$modelFile) || is_file($conf['model']['directory'].$modelFile)) || !is_file($conf['view']['directory'].$viewFile)){
throw new Exception('Method does not exist!');
throw new Exception('<h1>Method does not exist!</h1><br/>This means that <tt>'.$conf['model']['directory'].$modelFile.'</tt> or <tt>'.$conf['view']['directory'].$viewFile."</tt> (or both) don't exist.<br/>Please refer to this tutorial to create one.<br/>");
}
$endpoints = $context['endpoints'];
array_pop($params);
......
File moved
SELECT DISTINCT ?g WHERE {
GRAPH ?g{
?s ?p ?o .
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:local="http://localhost/lodspeakr/"
version="XHTML+RDFa 1.0" xml:lang="en">
<head>
<title>Main</title>
<link href="http://localhost/lodspeakr//lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<h1>Services available</h1>
<ul>
<li><a href='special/classes'>List of classes in the triple store</a></li>
<li><a href='special/namedGraphs'>Named graphs in the triple store</a></li>
</ul>
</body>
</html>
File moved
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" {% for i, ns in base.ns %}xmlns:{{i}}="{{ns}}"
{%endfor%}version="XHTML+RDFa 1.0" xml:lang="en">
<head>
<title>Graphs available in the triple store</title>
<link href="{{base.baseUrl}}/lodspeakr/css/basic.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<h1>Graphs available in the triple store</h1>
<ul>
{% for row in r %}
<li><a href='{{base.baseUrl}}special/index/{{ row.g.curie|urlencode }}'>{{row.g.curie}}</a></li>
{% endfor %}
</ul>
</body>
</html>
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