Commit e240dd98 authored by alexandre's avatar alexandre

Removed RDF index test templatetag

parent 06b6a772
<ul>
{% for author in authors %}
<li>{{ author.0 }}</li>
{% endfor %}
</ul>
from django import template
from aasniff import AAApp
register = template.Library()
class Conf(object):
SNIFFERS = [
'HttpSniffer',
'HtmlSniffer',
]
STORE = {
'ENGINE': 'sqlite',
'NAME': 'aasniff.sqlite',
}
@register.inclusion_tag('partials/all_authors.html')
def all_authors():
app = AAApp(conf=Conf)
query = app.graph.query("""
SELECT DISTINCT ?object
WHERE {
?subject <http://purl.org/dc/terms/contributor> ?object.
}
""")
return { "authors": query }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment