Skip to content
Snippets Groups Projects
Commit 04ace20f authored by esikkala's avatar esikkala
Browse files

Actors: add birth/death date columns

parent 83eab912
No related branches found
No related tags found
No related merge requests found
...@@ -57,21 +57,41 @@ export const INITIAL_STATE = { ...@@ -57,21 +57,41 @@ export const INITIAL_STATE = {
makeLink: true, makeLink: true,
sortValues: false, sortValues: false,
numberedList: false, numberedList: false,
minWidth: 200, minWidth: 150,
}, },
{ {
id: 'birthPlace', id: 'birthPlace',
label: 'Place of birth', label: 'Place of birth/formation',
desc: 'Birth place description', desc: 'Birth place description',
valueType: 'object', valueType: 'object',
makeLink: true, makeLink: true,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
minWidth: 150 minWidth: 200
},
{
id: 'birthDateTimespan',
label: 'Date of birth/formation',
desc: 'Date of birth/formation description',
valueType: 'object',
makeLink: false,
sortValues: true,
numberedList: false,
minWidth: 200
},
{
id: 'deathDateTimespan',
label: 'Date of death/dissolution',
desc: 'Date of death/dissolution description',
valueType: 'object',
makeLink: false,
sortValues: true,
numberedList: false,
minWidth: 200
}, },
{ {
id: 'place', id: 'place',
label: 'Place / nationality', label: 'Activity location',
desc: 'Activity location', desc: 'Activity location',
valueType: 'object', valueType: 'object',
makeLink: true, makeLink: true,
......
...@@ -23,6 +23,20 @@ export const actorProperties = ` ...@@ -23,6 +23,20 @@ export const actorProperties = `
BIND(?birthPlace__id as ?birthPlace__dataProviderUrl) BIND(?birthPlace__id as ?birthPlace__dataProviderUrl)
} }
UNION UNION
{
?id crm:P98i_was_born/crm:P4_has_time-span ?birthDateTimespan__id .
?birthDateTimespan__id skos:prefLabel ?birthDateTimespan__prefLabel .
OPTIONAL { ?birthDateTimespan__id crm:P82a_begin_of_the_begin ?birthDateTimespan__start }
OPTIONAL { ?birthDateTimespan__id crm:P82b_end_of_the_end ?birthDateTimespan__end }
}
UNION
{
?id crm:P100i_died_in/crm:P4_has_time-span ?deathDateTimespan__id .
?deathDateTimespan__id skos:prefLabel ?deathDateTimespan__prefLabel .
OPTIONAL { ?deathDateTimespan__id crm:P82a_begin_of_the_begin ?deathDateTimespan__start }
OPTIONAL { ?deathDateTimespan__id crm:P82b_end_of_the_end ?deathDateTimespan__end }
}
UNION
{ {
?id mmm-schema:person_place ?place__id . ?id mmm-schema:person_place ?place__id .
?place__id skos:prefLabel ?place__prefLabel . ?place__id skos:prefLabel ?place__prefLabel .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment