-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperson_history_json.json
30 lines (30 loc) · 1.49 KB
/
person_history_json.json
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
{
"proto": {
"id": "?_person$anchor",
"dateOfBirth": "?birth$list",
"dateOfDeath": "?death$list",
"occupation": "?occupation$list",
"node history": {
"event": "?event$anchor",
"eventLabel": "?eventLabel",
"role": "?roleLabel",
"start": "?start",
"end": "?end"
}
},
"$prefixes": {
"bds": "http://www.bigdata.com/rdf/search#",
"crm": "http://www.cidoc-crm.org/cidoc-crm/",
"bioc": "http://ldf.fi/schema/bioc/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"idm": "https://www.intavia.eu/idm/",
"idmcore": "http://www.intavia.eu/idm-core/"
},
"$where": [
"?personProxy idmcore:person_proxy_for|idmcore:group_proxy_for ?_person",
"OPTIONAL {?birthEvent crm:P98_brought_into_life ?personProxy;(crm:P4_has_time-span|crm:P4_has_time_span)/rdfs:label ?birth .}",
"OPTIONAL {?deathEvent crm:P100_was_death_of ?personProxy ; (crm:P4_has_time-span|crm:P4_has_time_span)/rdfs:label ?death .}",
"OPTIONAL {?personProxy bioc:has_occupation/rdfs:label ?occupation .}",
"OPTIONAL {?personProxy idmcore:inheres_in|bioc:bearer_of ?role . OPTIONAL {?role rdfs:label ?roleLabel .} ?event idmcore:had_participant_in_role|bioc:had_participant_in_role ?role . ?event rdfs:label ?eventLabel . OPTIONAL {?event crm:P4_has_time_span/crm:P82a_begin_of_the_begin ?start} OPTIONAL {?event crm:P4_has_time_span/crm:P82b_end_of_the_end ?end}}"
]
}