/
person.html
71 lines (67 loc) · 3.05 KB
/
person.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
rdf_prefix_path: "_data/prefixes.sparql"
layout: base
---
{% assign publicationTag = page.rdf | rdf_property: 'aksw:publicationTag' %}
{% if publicationTag %}
{% assign publicationTag = publicationTag | prepend: 'aksw/' %}
{% endif %}
{% include head.html page=page bibtag=publicationTag %}
<section class="section">
{% assign groups = page.rdf | rdf_inverse_property: "foaf:member", true %}
{% for group in groups %}
<a class="button is-rounded" href="{{ group.render_path | relativize_url }}">{{ group | rdf_property: "rdfs:label" }}</a>
{% endfor %}
</section>
<section class="section">
<div class="columns is-multiline">
<div class="column is-one-third">
{% include person_card.html person=page.rdf %}
</div>
<div class="column is-two-thirds content">
{{ page.rdf | rdf_property: "dct:description" | markdownify }}
{{ page.rdf | rdf_property: "site:content" | markdownify }}
</div>
<div class="column is-one-third content">
<h2>Projects</h2>
<ul>
{% capture project_query %}
SELECT DISTINCT ?project WHERE {
{
?resourceUri foaf:currentProject ?project
} UNION {
?project doap:maintainer ?resourceUri
}
}
{% endcapture %}
{% assign projects = page.rdf | sparql_query: project_query %}
{% for result in projects %}
<li><a href="{{ result.project.render_path | relativize_url }}">{{ result.project | rdf_property: "rdfs:label" }}</a></li>
{% endfor %}
</ul>
{% if publicationTag %}
<h2>Publications</h2>
<aside class="empty"></aside>
<div id="publications">
<div ex:role="view" ex:grouped="false" ex:orders=".year,.label" ex:directions="descending,ascending" ex:showSummary="true" ex:showDuplicates="false">
<div ex:role="lens" ex:itemTypes="Publication" style="display: none">
<span ex:content="if(.url <> '', concat('<a href=', .url, '>', .label, '</a>'), .label)"></span>
<span ex:if-exists=".author">
<span class="meta"><em>by</em> <strong class="author" ex:content=".author"></strong></span>
</span>
<span class="meta">
<span ex:content="if(exists(.booktitle), concat('<em>in</em> ', .booktitle), '')"></span>
<span class="journal" ex:content="if(exists(.journal), concat('<em>in</em> ', .journal), '')"></span>
<span ex:if-exists=".editor">(Editors: <span class="editor" ex:content=".editor"></span>)</span>
<a class="link" ex:href-content="id()" target="_blank">[Bibsonomy<span class="hideme"> of <span ex:content=".label"></span></span>]</a>
</span>
<span class="note" ex:content="if(exists(.note), concat('<br/><em>Note:</em> ', .note), '')"></span>
<span class="abstract" ex:content="if(exists(.abstract), concat('<br/><details><summary>Abstract</summary> ', .abstract, '</details>'), '')"></span>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</section>
{% include foot.html page=page %}