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

Adding instances and namedgraphs services

parent 15cb46c0
No related branches found
No related tags found
No related merge requests found
<div class="container-fuild">
<h1>Instances of class {{lodspk.args.arg0}}</h1>
<ul>
{% for row in models.main %}
<li><a href="{{ row.resource.value }}">{{row.resource.curie}}</a></li>
{% endfor %}
</ul>
</div>
</body>
</html>
SELECT DISTINCT ?resource WHERE {
{
GRAPH ?g{
?resource a {{lodspk.args.arg0}}
}
}UNION{
?resource a {{lodspk.args.arg0}}
}
}order by ?resource
limit {{lodspk.maxResults}}
<div class="container-fluid">
<h1>Named graphs available</h1>
{%if first.main.g%}
<ul>
{% for row in models.main %}
<li>{{row.g.value}}</li>
{% endfor %}
</ul>
{%else%}
<div class="alert alert-info">
<p>No named graphs found</p>
</div>
{%endif%}
</div>
</body>
</html>
SELECT DISTINCT ?g WHERE {
GRAPH ?g{
[] ?p ?resource .
}
}
order by ?g
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