-
Notifications
You must be signed in to change notification settings - Fork 1
/
list_people.html
46 lines (41 loc) · 1.52 KB
/
list_people.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
[[!--
$ pwd
/home/researchspace/antheia/researchspace/data/templates
$ cat http%3A%2F%2Fwww.metaphacts.com%2Fresource%2Flist_people.html
View at: http://vm-seldon.oerc.ox.ac.uk:10214/resource/list_people
--]]
<h1>List of known people in MMM data</h1>
<semantic-query
query='
PREFIX ecrm: <http://erlangen-crm.org/current/>
SELECT (COUNT (DISTINCT ?person) AS ?num_persons) WHERE {
?person a ecrm:E21_Person .
}'
template='<p>Number of people found: {{> template}}</p>'
>
<template id="template">
{{#each bindings}}
{{num_persons.value}}
{{/each}}
</template>
</semantic-query>
<semantic-table
query='
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX efrbroo: <http://erlangen-crm.org/efrbroo/>
PREFIX mmm-actors: <http://ldf.fi/mmm/actor/>
PREFIX mmms: <http://ldf.fi/schema/mmm/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX ecrm: <http://erlangen-crm.org/current/>
SELECT DISTINCT ?person ?personname WHERE {
?person a ecrm:E21_Person ; skos:prefLabel ?personname
} LIMIT 100000'
column-configuration='[
{"displayName": "Person", "variableName": "person" }
]'
no-result-template="No people."
options='{"enableSort": true}'
>
</semantic-table>
<hr/>