-
Notifications
You must be signed in to change notification settings - Fork 0
/
aac.sparql
47 lines (47 loc) · 1.61 KB
/
aac.sparql
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
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?uri ?name ?birth_year ?birth_place ?death_year ?death_place ?gender ?nationality ?object_links
WHERE {
BIND(<???> AS ?uri)
OPTIONAL {
?uri rdfs:label ?name.
}
OPTIONAL {
?uri crm:P92i_was_brought_into_existence_by ?o1.
?o1 crm:P4_has_time-span ?o2.
?o2 crm:P82a_begin_of_the_begin ?birth_year.
}
OPTIONAL {
?uri crm:P92i_was_brought_into_existence_by ?o3.
?o3 crm:P7_took_place_at ?o4.
?o4 rdfs:label ?birth_place.
}
OPTIONAL {
?uri crm:P93i_was_taken_out_of_existence_by ?o5.
?o5 crm:P4_has_time-span ?o6.
?o6 crm:P82a_begin_of_the_begin ?death_year.
}
OPTIONAL {
?uri crm:P93i_was_taken_out_of_existence_by ?o7.
?o7 crm:P7_took_place_at ?o8.
?o8 rdfs:label ?birth_place.
}
OPTIONAL {
?uri crm:P2_has_type ?o9.
?o9 rdfs:label ?gender.
}
OPTIONAL {
?uri crm:P107i_is_current_or_former_member_of ?o10.
?o10 rdfs:label ?nationality.
}
OPTIONAL{
SELECT * {
?o11 a crm:E22_Man-Made_Object;
crm:P108i_was_produced_by ?o12;
foaf:homepage ?object_links.
?o12 crm:P14_carried_out_by ?uri.
}
}
} limit 5