-
Notifications
You must be signed in to change notification settings - Fork 3
/
sparnatural-config.backup.ttl
331 lines (270 loc) · 16.6 KB
/
sparnatural-config.backup.ttl
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
@prefix : <http://ontologies.sparna.fr/sparnatural-demo-dbpedia#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://data.sparna.fr/ontologies/sparnatural-demo-dbpedia> .
<http://data.sparna.fr/ontologies/sparnatural-demo-dbpedia> rdf:type owl:Ontology ;
owl:imports <http://data.sparna.fr/ontologies/sparnatural-config-core> ,
<http://data.sparna.fr/ontologies/sparnatural-config-datasources> .
#################################################################
# Object Properties
#################################################################
### http://data.sparna.fr/ontologies/sparnatural-demo-dbpedia#description
:description rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#SearchProperty> ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( :Artwork
:Movement
:Museum
:Person
)
] ;
rdfs:range :Search ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://www.w3.org/2000/01/rdf-schema#comment>" ;
rdfs:label "description"@en ,
"description"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#author
:author rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#AutocompleteProperty> ;
rdfs:domain :Artwork ;
rdfs:range :Person ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/author>" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#search_rdfslabel_bifcontains> ;
rdfs:label "auteur"@fr ,
"author"@en .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#birthDate
:birthDate rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#TimeProperty-Date> ;
rdfs:domain :Person ;
rdfs:range :Date ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/birthDate>" ;
rdfs:label "birth date"@en ,
"date de naissance"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#birthPlace
:birthPlace rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#AutocompleteProperty> ;
rdfs:domain :Country ;
rdfs:range :Person ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "^(<http://dbpedia.org/ontology/birthPlace>/<http://dbpedia.org/ontology/country>)" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#search_rdfslabel_bifcontains> ;
rdfs:label "birth place of"@en ,
"lieu de naissance de"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#bornIn
:bornIn rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#ListProperty> ;
rdfs:domain :Person ;
rdfs:range :Country ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/birthPlace>/<http://dbpedia.org/ontology/country>" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#list_rdfslabel_alpha> ;
rdfs:label "born in"@en ,
"né à / né en"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#country
:country rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#ListProperty> ;
owl:inverseOf :countryOf ;
rdfs:domain :Museum ;
rdfs:range :Country ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/country>" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#list_rdfslabel_count> ;
rdfs:label "country"@en ,
"pays"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#countryOf
:countryOf rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#AutocompleteProperty> ;
rdfs:domain :Country ;
rdfs:range :Museum ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "^<http://dbpedia.org/ontology/country>" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#search_rdfslabel_bifcontains> ;
rdfs:label "country of"@en ,
"pays de"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#created
:created rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#AutocompleteProperty> ;
rdfs:domain :Person ;
rdfs:range :Artwork ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "^<http://dbpedia.org/ontology/author>" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#search_rdfslabel_bifcontains> ;
rdfs:label "a créé"@fr ,
"created"@en .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#deathPlace
:deathPlace rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#AutocompleteProperty> ;
rdfs:domain :Country ;
rdfs:range :Person ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#search_rdfslabel_bifcontains> ;
rdfs:label "death place of"@en ,
"lieu de décès de"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#deathYear
:deathYear rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#TimeProperty-Year> ;
rdfs:domain :Person ;
rdfs:range :Date ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/deathDate>" ;
rdfs:label "année de décès"@fr ,
"death year"@en .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#diedIn
:diedIn rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#ListProperty> ;
rdfs:domain :Person ;
rdfs:range :Country ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/deathPlace>/<http://dbpedia.org/ontology/country>" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#list_rdfslabel_alpha> ;
rdfs:label "died in"@en ,
"mort à / mort en"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#displayedAt
:displayedAt rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#AutocompleteProperty> ;
owl:inverseOf :displays ;
rdfs:domain :Artwork ;
rdfs:range :Museum ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/museum>" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#search_rdfslabel_bifcontains> ;
rdfs:label "displayed at"@en ,
"exposée à"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#displays
:displays rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#NonSelectableProperty> ;
rdfs:domain :Museum ;
rdfs:range :Artwork ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "^<http://dbpedia.org/ontology/museum>" ;
rdfs:label "displays"@en ,
"expose"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#label
:label rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#SearchProperty> ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( :Artwork
:Movement
:Museum
:Person
)
] ;
rdfs:range :Search ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://www.w3.org/2000/01/rdf-schema#label>" ;
rdfs:label "label"@en ,
"label"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#movement
:movement rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#ListProperty> ;
rdfs:domain :Person ;
rdfs:range :Movement ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/movement>" ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#list_rdfslabel_count> ;
rdfs:label "mouvement"@fr ,
"movement"@en .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#movementIncludes
:movementIncludes rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf <http://data.sparna.fr/ontologies/sparnatural-config-core#AutocompleteProperty> ;
rdfs:domain :Movement ;
rdfs:range :Person ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#datasource> <http://data.sparna.fr/ontologies/sparnatural-config-datasources#search_rdfslabel_bifcontains> ;
rdfs:label "participant"@en ,
"participant"@fr .
#################################################################
# Classes
#################################################################
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#Artwork
:Artwork rdf:type owl:Class ;
rdfs:subClassOf <http://data.sparna.fr/ontologies/sparnatural-config-core#SparnaturalClass> ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#faIcon> "fad fa-paint-brush" ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/Artwork>" ;
rdfs:label "Artwork"@en ,
"Oeuvre"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#Country
:Country rdf:type owl:Class ;
rdfs:subClassOf <http://data.sparna.fr/ontologies/sparnatural-config-core#SparnaturalClass> ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#faIcon> "fad fa-globe-africa" ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/Country>" ;
rdfs:label "Country"@en ,
"Pays"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#Date
:Date rdf:type owl:Class ;
rdfs:subClassOf rdfs:Literal ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#faIcon> "fad fa-calendar-alt" ;
rdfs:label "Date"@en ,
"Date"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#Movement
:Movement rdf:type owl:Class ;
rdfs:subClassOf <http://data.sparna.fr/ontologies/sparnatural-config-core#SparnaturalClass> ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#faIcon> "fad fa-palette" ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://www.w3.org/2004/02/skos/core#Concept>" ;
rdfs:label "Mouvement"@fr ,
"Movement"@en .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#Museum
:Museum rdf:type owl:Class ;
rdfs:subClassOf <http://data.sparna.fr/ontologies/sparnatural-config-core#SparnaturalClass> ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#faIcon> "fad fa-university" ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/Museum>" ;
rdfs:label "Museum"@en ,
"Musée"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#Person
:Person rdf:type owl:Class ;
rdfs:subClassOf <http://data.sparna.fr/ontologies/sparnatural-config-core#SparnaturalClass> ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#faIcon> "fad fa-male" ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#sparqlString> "<http://dbpedia.org/ontology/Person>" ;
rdfs:label "Person"@en ,
"Personne"@fr .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#Search
:Search rdf:type owl:Class ;
rdfs:subClassOf rdfs:Literal ;
<http://data.sparna.fr/ontologies/sparnatural-config-core#faIcon> "fad fa-search" ;
rdfs:label "Rechercher"@fr ,
"Search"@en .
### http://xmlns.com/foaf/0.1/Person
<http://xmlns.com/foaf/0.1/Person> rdf:type owl:Class .
#################################################################
# Individuals
#################################################################
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#semapps_list_dbpedia
:semapps_list_dbpedia rdf:type owl:NamedIndividual ,
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#SparqlDatasource> ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#queryString> """SELECT DISTINCT ?uri (STR(?theLabel) AS ?label)
WHERE {
{
SELECT DISTINCT ?uri
WHERE {
?domain a $domain .
?domain $property ?uri .
# Note how the range criteria is not used in this query
}
}
SERVICE <http://dbpedia.org/sparql> {
?uri <http://www.w3.org/2000/01/rdf-schema#label> ?theLabel .
FILTER(lang(?theLabel) = 'fr')
}
}
ORDER BY ?label""" .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#semapps_list_person
:semapps_list_person rdf:type owl:NamedIndividual ,
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#SparqlDatasource> ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#queryString> """SELECT DISTINCT ?uri ?label
WHERE {
?domain a $domain .
?domain $property ?uri .
# Note how the range criteria is not used in this query
?uri <http://virtual-assembly.org/pair#lastName> ?lastName .
?uri <http://virtual-assembly.org/pair#firstName> ?firstName .
BIND(CONCAT(?firstName, \" \", ?lastName) AS ?label )
}
ORDER BY ?label""" .
### http://ontologies.sparna.fr/sparnatural-demo-dbpedia#semapps_list_preferredLabel
:semapps_list_preferredLabel rdf:type owl:NamedIndividual ,
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#SparqlDatasource> ;
<http://data.sparna.fr/ontologies/sparnatural-config-datasources#queryString> """SELECT ?uri ?count (CONCAT(STR(?theLabel), ' (', STR(?count), ')') AS ?label)
WHERE {
{
SELECT DISTINCT ?uri (COUNT(?domain) AS ?count)
WHERE {
?domain a $domain .
?domain $property ?uri .
# Note how the range criteria is not used in this query
}
GROUP BY ?uri
}
?uri <http://virtual-assembly.org/pair#preferedLabel> ?theLabel .
FILTER(lang(?theLabel) = \"\" || lang(?theLabel) = $lang)
}
ORDER BY DESC(?count)""" .
### Generated by the OWL API (version 4.5.9.2019-02-01T07:24:44Z) https://github.com/owlcs/owlapi