Skip to content
Snippets Groups Projects
Commit c27ed258 authored by alvaro's avatar alvaro
Browse files

Merge branch 'master' of https://github.com/alangrafu/lodspeakr

parents 6c0892bd e1693ee6
No related branches found
No related tags found
No related merge requests found
{%for h in base.header %}
PREFIX {{h.prefix}}: <{{h.ns}}>
{%endfor%}
SELECT DISTINCT ?resource WHERE {
{
{%if base.args.arg0 %}GRAPH <{{base.args.arg0}}>{%else%} GRAPH ?g {%endif%} {
?x a ?resource .
}
}UNION{
?x a ?resource .
}
}order by ?resource
{%for h in lodspk.header %}
PREFIX {{h.prefix}}: <{{h.ns}}>
{%endfor%}
SELECT DISTINCT ?resource WHERE {
{
GRAPH ?g{
?resource a {{lodspk.args.arg0}}
}
}UNION{
?resource a {{lodspk.args.arg0}}
}
}order by ?resource
limit 1000
SELECT DISTINCT ?g WHERE {
GRAPH ?g{
[] ?p ?resource .
}
}
order by ?g
SELECT ?p ?o WHERE {
{
GRAPH ?g{
<{{uri}}> ?p ?o.
}
}UNION{
<{{uri}}> ?p ?o .
}
}
SELECT ?s ?p WHERE {
{
GRAPH ?g{
?s ?p <{{uri}}> .
}
}UNION{
?s ?p <{{uri}}> .
}
}
<h4>Endpoint: {{lodspk.endpoint.local}}</h4>
<div style='float:center'>
<a href='{{lodspk.home}}'>Home</a> | <a href='{{lodspk.home}}classes'>Classes</a> | <a href='{{lodspk.home}}namedGraphs'>Named Graphs</a>
</div>
<?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 lodspk.ns %}xmlns:{{i}}="{{ns}}"
{%endfor%}version="XHTML+RDFa 1.0" xml:lang="en">
<head>
<title>My new Service</title>
<link href="css/basic.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<h1>Classes available</h1>
{%include "../header.inc"%}
<ul>
{% for row in models.main %}
<li><a href="{{lodspk.baseUrl}}instances/{{ row.resource.curie }}">{{row.resource.curie}}</a></li>
{% endfor %}
</ul>
</body>
</html>
<?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>Instances of {{lodspk.args.arg0}}</title>
<link href="../css/basic.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<h1>Instances of class {{lodspk.args.arg0}}</h1>
{%include "../header.inc"%}
<ul>
{% for row in models.main %}
<li><a href="{{ row.resource.value }}">{{row.resource.curie}}</a></li>
{% endfor %}
</ul>
</body>
</html>
<?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>Named Graphs</title>
<link href="css/basic.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<h1>Named graphs available</h1>
{%include "../header.inc"%}
<ul>
{% for row in models.main %}
<li>{{row.g.value}}</li>
{% endfor %}
</ul>
</body>
</html>
<?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 lodspk.ns %}xmlns:{{i}}="{{ns}}"
{%endfor%}version="XHTML+RDFa 1.0" xml:lang="en">
<head>
<title>Page about {{lodspk.this.value}}</title>
<link href="{{lodspk.home}}css/basic.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="alternate" type="application/rdf+xml" title="RDF/XML Version" href="{{lodspk.this.value}}.rdf" />
<link rel="alternate" type="text/turtle" title="Turtle Version" href="{{lodspk.this.value}}.ttl" />
<link rel="alternate" type="text/plain" title="N-Triples Version" href="{{lodspk.this.value}}.nt" />
<link rel="alternate" type="application/json" title="RDFJSON Version" href="{{lodspk.this.value}}.json" />
</head>
<body about="{{lodspk.this.value}}">
<h1>Default view</h1>
<div style='margin-top: 40px'>
<table>
<tr><th>Subject</th><th>Predicate</th><th>Object</th></tr>
{% for row in models.po %}
<tr>
<td>{%if forloop.first%}<a href='{{lodspk.this.value}}'>{{lodspk.this.curie}}</a>{%endif%}</td>
<td style='background-color:#c9f9c9'><a href='{{row.p.value}}'>{{row.p.curie}}</a></td>
<td style='background-color:#c9f9c9'>
{%if row.o.uri == 1%}
<a rev='[{{row.p.curie}}]' href='{{row.o.value}}'>{{row.o.curie}}</a>
{%else%}
{{row.o.value}}
{%endif%}
</td>
</tr>
{% endfor %}
<tr><td></td><td><a href='{{lodspk.this.value}}'>{{lodspk.this.curie}}</a></td><td></td></tr>
{% for row in models.sp %}
<tr>
<td style='background-color:#c9f9c9'><a href='{{row.s.value}}'>{{row.s.curie}}</a></td>
<td style='background-color:#c9f9c9'><a rel='{{row.s.curie}}' href='{{row.p.value}}'>{{row.p.curie}}</a></td>
<td>{%if forloop.first%}<a href='{{lodspk.this.value}}'>{{lodspk.this.curie}}</a>{%endif%}</td>
</tr>
{% endfor %}
<tr><th>Subject</th><th>Predicate</th><th>Object</th></tr>
</table>
</div>
</div>
<br/>
</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