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

Added header to default special URIs

parent ee018c9a
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,8 @@ class SpecialFunction extends AbstractSpecialFunction{
$data['params'] = $params;
$base = $conf['view']['standard'];
$base['type'] = $modelFile;
$base['root'] = $conf['root'];
$base['home'] = $conf['basedir'];
$base['this']['value'] = $uri;
$base['this']['curie'] = Utils::uri2curie($uri);
$base['this']['contentType'] = $acceptContentType;
......
{%for h in base.header %}
PREFIX {{h.prefix}}: <{{h.ns}}>
{%endfor%}
SELECT DISTINCT ?resource WHERE {
{%if base.args.arg0 %}GRAPH <{{base.args.arg0}}>{ {%endif%}
[] a ?resource .
{%if base.args.arg0 %} } {%endif%}
}
<div style='float:center'>
<a href='{{base.home}}'>Home</a> | <a href='{{base.home}}/special/classes'>Classes</a> | <a href='{{base.home}}/special/namedGraphs'>Named Graphs</a>
</div>
......@@ -9,6 +9,7 @@
</head>
<body>
<h1>Classes available</h1>
{%include "header.inc"%}
<ul>
{% if r.resource.value != null %}
<!-- Only one class available -->
......
......@@ -9,6 +9,7 @@
</head>
<body>
<h1>Instances of {{base.args.arg0}}</h1>
{%include "header.inc"%}
<ul>
{% for row in r %}
<li><a href='{{ row.resource.value }}'>{{row.resource.curie}}</a></li>
......
......@@ -9,9 +9,10 @@
</head>
<body>
<h1>Graphs available in the triple store</h1>
{%include "header.inc"%}
<ul>
{% for row in r %}
<li><a href='{{base.baseUrl}}special/index/{{ row.g.curie|urlencode }}'>{{row.g.curie}}</a></li>
<li>{{row.g.curie}}</li>
{% endfor %}
</ul>
</body>
......
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