-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathteam.html
63 lines (58 loc) · 1.44 KB
/
team.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
---
layout: basic
---
{% assign rootResource = site.rootResource | rdf_get %}
{% assign teams = rootResource | rdf_property: "schema:organizer", nil, true %}
{% include strings.html %}
{% capture persons_query %}
SELECT distinct ?person ?role_name
WHERE {
<{{ rootResource }}> schema:organizer ?team .
?team ?p ?person .
?person foaf:name ?person_name .
OPTIONAL {
Select distinct ?person ?role_name where {
?person a schema:Person ;
dw:role ?role .
?role rdfs:label ?role_name .
FILTER(langMatches(lang(?role_name), "{{ site.language }}"))
}
}
}
order by ?person_name
{% endcapture %}
{% assign persons = rootResource | sparql_query: persons_query %}
<div class="content-header">
<h1>
{{ str_general_chair }}
</h1>
</div>
<div class="contact-list">
<ul>
{% for person in persons %}
{% assign role = person.person | rdf_property: "dw:role" %}
{% if role %}
<li>
{% include components/person.html organizer=person.person %}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="content-header">
<h1>
{{ str_dw_team }}
</h1>
</div>
<div class="contact-list">
<ul>
{% for person in persons %}
{% assign role = person.person | rdf_property: "dw:role" %}
{% unless role %}
<li>
{% include components/person.html organizer=person.person %}
</li>
{% endunless %}
{% endfor %}
</ul>
</div>