-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperson-institution.txt
155 lines (136 loc) · 5.83 KB
/
person-institution.txt
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#These queries were for the SnapDrgn workshop at KCL.
#Use the BM collection endpoint at http://collection.britishmuseum.org/sparql
#Extract people born before AD 10
PREFIX crm: <http://erlangen-crm.org/current/>
PREFIX fts: <http://www.ontotext.com/owlim/fts#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?person ?name ?birthdate ?nationality
where
{
?person skos:inScheme <http://collection.britishmuseum.org/id/person-institution> .
?person crm:P98i_was_born ?birth .
?birth crm:P4_has_time-span ?date .
?date crm:P82a_begin_of_the_begin ?birthdate .
?person crm:P131_is_identified_by ?appellation .
?person bmo:PX_nationality ?national .
?national skos:prefLabel ?nationality .
?appellation rdfs:label ?name .
FILTER(?birthdate <= "0010-01-01"^^xsd:date) .
}
#Extract Romans
PREFIX crm: <http://erlangen-crm.org/current/>
PREFIX fts: <http://www.ontotext.com/owlim/fts#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?person ?name ?birthdate ?nationality ?profession ?gender
where
{
?person skos:inScheme <http://collection.britishmuseum.org/id/person-institution> .
?person crm:P98i_was_born ?birth .
?birth crm:P4_has_time-span ?date .
?date crm:P82a_begin_of_the_begin ?birthdate .
?person crm:P131_is_identified_by ?appellation .
?person bmo:PX_nationality ?national .
?national skos:prefLabel ?nationality .
?appellation rdfs:label ?name .
?person bmo:PX_profession ?profession .
?person bmo:PX_gender ?gender .
FILTER( ?national = <http://collection.britishmuseum.org/id/thesauri/nationality/Roman> ) .
FILTER( ?birthdate <= "1000-01-01"^^xsd:date ) .
}
#Extract Roman rulers
PREFIX crm: <http://erlangen-crm.org/current/>
PREFIX fts: <http://www.ontotext.com/owlim/fts#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?person ?name ?birthdate ?nationality ?profession ?gender
where
{
?person skos:inScheme <http://collection.britishmuseum.org/id/person-institution> .
?person crm:P98i_was_born ?birth .
?birth crm:P4_has_time-span ?date .
?date crm:P82a_begin_of_the_begin ?birthdate .
?person crm:P131_is_identified_by ?appellation .
?person bmo:PX_nationality ?national .
?national skos:prefLabel ?nationality .
?appellation rdfs:label ?name .
?person bmo:PX_profession ?profession .
?person bmo:PX_gender ?gender .
FILTER( ?national = <http://collection.britishmuseum.org/id/thesauri/nationality/Roman> ) .
FILTER( ?birthdate <= "1000-01-01"^^xsd:date ) .
FILTER( ?profession = <http://collection.britishmuseum.org/id/thesauri/profession/ruler> ) .
}
#Extract Greeks
PREFIX crm: <http://erlangen-crm.org/current/>
PREFIX fts: <http://www.ontotext.com/owlim/fts#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?person ?name ?birthdate ?nationality ?profession ?gender
where
{
?person skos:inScheme <http://collection.britishmuseum.org/id/person-institution> .
?person crm:P98i_was_born ?birth .
?birth crm:P4_has_time-span ?date .
?date crm:P82a_begin_of_the_begin ?birthdate .
?person crm:P131_is_identified_by ?appellation .
?person bmo:PX_nationality ?national .
?national skos:prefLabel ?nationality .
?appellation rdfs:label ?name .
?person bmo:PX_profession ?profession .
?person bmo:PX_gender ?gender .
FILTER( ?national = <http://collection.britishmuseum.org/id/thesauri/nationality/Greek> ) .
FILTER( ?birthdate <= "1000-01-01"^^xsd:date ) .
}
#Find Augustus only
PREFIX crm: <http://erlangen-crm.org/current/>
PREFIX fts: <http://www.ontotext.com/owlim/fts#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?person ?name ?birthdate ?nationality ?profession ?gender
where
{
?person skos:inScheme <http://collection.britishmuseum.org/id/person-institution> .
?person crm:P98i_was_born ?birth .
?birth crm:P4_has_time-span ?date .
?date crm:P82a_begin_of_the_begin ?birthdate .
?person crm:P131_is_identified_by ?appellation .
?person bmo:PX_nationality ?national .
?national skos:prefLabel ?nationality .
?appellation rdfs:label ?name .
?person bmo:PX_profession ?profession .
?person bmo:PX_gender ?gender .
FILTER(?national = <http://collection.britishmuseum.org/id/thesauri/nationality/Roman>) .
FILTER(?birthdate <= "1000-01-01"^^xsd:date) .
FILTER(?profession = <http://collection.britishmuseum.org/id/thesauri/profession/ruler> ) .
FILTER( ?name = "Augustus" ) .
}
#Roman officials
PREFIX crm: <http://erlangen-crm.org/current/>
PREFIX fts: <http://www.ontotext.com/owlim/fts#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT *
where
{
?person skos:inScheme <http://collection.britishmuseum.org/id/person-institution> .
?person rdfs:label ?label .
?person crm:P3_has_note ?note .
?person bmo:PX_profession ?profession .
?person bmo:PX_nationality ?nationality .
?nationality skos:prefLabel ?nat .
FILTER(?profession = <http://collection.britishmuseum.org/id/thesauri/profession/official> ) .
FILTER( ?nationality = <http://collection.britishmuseum.org/id/thesauri/nationality/Roman> ) .
}