-
Notifications
You must be signed in to change notification settings - Fork 1
/
mss_by_collection_author.html
130 lines (121 loc) · 4.38 KB
/
mss_by_collection_author.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[[!--
$ pwd
/home/researchspace/antheia/researchspace/data/templates
$ cat http%3A%2F%2Fwww.metaphacts.com%2Fresource%2Fwho_collects.html
--]]
<h1>Manuscripts of works by author in collection</h1>
<p>What manuscripts by
<semantic-query
query='
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?actorName WHERE
{
<[[urlParam "actor"]]> skos:prefLabel ?actorName
}'
template='{{> template}}'
>
<template id="template">
{{#each bindings}}
<a href="/resource/?uri=[[urlParam "actor"]]">{{actorName.value}}</a>
{{/each}}
</template>
</semantic-query>
in collection of
<semantic-query
query='
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?collName WHERE
{
<[[urlParam "collector"]]> skos:prefLabel ?collName
}'
template='{{> template}}'
>
<template id="template">
{{#each bindings}}
<a href="/resource/?uri=[[urlParam "collector"]]">{{collName.value}}</a>
{{/each}}
</template>
</semantic-query>
?
</p>
<semantic-query
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 (COUNT (DISTINCT *) AS ?num_mss) WHERE {
VALUES ( ?actor ?collector )
{
( <[[urlParam "actor" ]]> <[[urlParam "collector" ]]> )
}
?wce mmms:carried_out_by_as_author ?actor ;
efrbroo:R16_initiated ?w.
?mpe ecrm:P108_has_produced ?m .
?m a efrbroo:F4_Manifestation_Singleton ;
mmms:manuscript_work ?w .
{
{
?m ecrm:P51_has_former_or_current_owner ?collector .
}
UNION
{
?m ecrm:P46i_forms_part_of ?col .
?col ecrm:P51_has_former_or_current_owner ?collector .
}
}
} LIMIT 10000'
template='<p>Number of manuscript/work combinations: {{> template}}</p>'
>
<template id="template">
{{#each bindings}}
{{num_mss.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 ?actor ?collector ?w ?wname ?m ?mname ?curloc WHERE {
VALUES ( ?actor ?collector )
{
( <[[urlParam "actor" ]]> <[[urlParam "collector" ]]> )
}
?wce mmms:carried_out_by_as_author ?actor ;
efrbroo:R16_initiated ?w.
?mpe ecrm:P108_has_produced ?m .
?m a efrbroo:F4_Manifestation_Singleton ;
mmms:manuscript_work ?w .
{
{
?m ecrm:P51_has_former_or_current_owner ?collector .
}
UNION
{
?m ecrm:P46i_forms_part_of ?col .
?col ecrm:P51_has_former_or_current_owner ?collector .
}
}
?w skos:prefLabel ?wname .
?m skos:prefLabel ?mname .
# ?m <http://ldf.fi/schema/mmm/last_known_location_bodley> ?curloc .
} LIMIT 1000'
column-configuration='[
{"variableName": "m", "displayName": "Manuscript"},
{"variableName": "w", "displayName": "Work"}
]'
no-result-template="No manuscripts."
></semantic-table>
<!--
{"variableName": "curloc", "displayName": "Current location"}
-->
<hr/>