Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (62 sloc) 2.02 KB
---
layout: page
title: Publications
rdf_prefix_path: "_data/prefix.sparql"
weight: 100
---
{% capture query %}
SELECT DISTINCT ?publication WHERE {
{
?publication dct:creator <http://aksw.org/NatanaelArndt>
} UNION {
?publication dct:creator [ ?num <http://aksw.org/NatanaelArndt> ]
}
OPTIONAL {
{
?publication dct:issued ?issued
} UNION {
?publication dct:isPartOf ?collection .
?collection dct:issued ?issued
}
}
}
ORDER BY DESC(?issued)
{% endcapture %}
{% assign resultset = page.rdf | sparql_query: query %}
{% for result in resultset %}
<!-- {{ result.publication }} -->
<div class="posts">
<div>
<a href="{{ result.publication.page_url }}">
<h3 class="post-link">{{ result.publication | rdf_property: "dct:title" }}</h3>
</a>
{% assign creators = result.publication | rdf_container: "dct:creator" %}
<span class="meta post-date">
<em>by</em>
{% for creator in creators %}
<span class="author">{{ creator | rdf_property: "foaf:name" }}</span>{% unless forloop.last %}, {% endunless %}
{% endfor %}
<br/>
{% assign collection = result.publication | rdf_property: "dct:isPartOf" %}
{% if collection %}
<em>in</em>
{% if collection.iri %}
<span class="journal">
{% assign editors = collection | rdf_container: "bibtex:editor" %}
{{ collection | rdf_property: "dct:title" }}
{% if editors.size > 0 %}
(Editors:
{% for editor in editors %}
<span class="editor">{{ editor | rdf_property: "foaf:name" }}</span>{% unless forloop.last %}, {% endunless %}
{% endfor %}
){% endif %}</span>,
<span class="date">{{ collection | rdf_property: "dct:issued" }}</span>
{% else %}
<span class="journal">{{ collection }}</span>
{% endif %}
<br/>
{% endif %}
</span>
</div>
</div>
{% endfor %}