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

Adding search service

parent f9c00662
No related branches found
No related tags found
No related merge requests found
{%include "../../includes/header.inc"%}
<div class="container-fuild">
<h1>Results searching for "{{lodspk.args.arg0}}"</h1>
<ul>
{% for row in models.main %}
<li><a href="{{ row.resource.value }}">{{row.label.curie}}</a></li>
{% endfor %}
</ul>
</div>
</body>
</html>
[
{%for i in models.main%}{%if !forloop.first && models.main|length > 1%},{%endif%}
{ "value": "{{i.label.value}}", "uri": "{{i.resource.value}}"}
{%endfor%}
]
SELECT DISTINCT ?resource ?label WHERE {
{
GRAPH ?g {
?resource rdfs:label ?label .
}
}UNION{
?resource rdfs:label ?label .
}
FILTER(regex(str(?label), "{{lodspk.args.arg0}}", "i"))
}
LIMIT 10
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