- desc = []
- altname = ignore_nil {agent[:dbpedia][:birthName].first} || ignore_nil {agent[:foaf][:name].first}

- comments = ignore_nil {agent[:rdfs][:comment]} || ignore_nil {agent[:dbpedia][:abstract]} || []

- if comments.empty?
  - desc.push altname unless agent[:heading].include? altname

  - birth = ignore_nil {agent[:dbpedia][:birthYear].first} || ignore_nil {agent[:dbpedia][:birthDate].first} || ignore_nil {agent[:foaf][:birthday].first}
  - birth = Date.parse(birth).year.to_s if ! birth.nil? and birth.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}.*$/)
  - death = ignore_nil {agent[:dbpedia][:deathYear].first} || ignore_nil {agent[:dbpedia][:deathDate].first}
  - death = Date.parse(death).year.to_s if ! death.nil? and death.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}.*$/)

  - life_dates = "#{birth}-" unless birth.nil?
  - life_dates += "#{death}" unless death.nil?
  - desc.push life_dates

.description= desc.compact.join('; ')

= comments.first.truncate(250, :separator => '. ', :omission => '.')
- desc = []
- altname = ignore_nil {agent[:dbpedia][:birthName].first} || ignore_nil {agent[:foaf][:name].first}

- comments = ignore_nil {agent[:rdfs][:comment]} || ignore_nil {agent[:dbpedia][:abstract]} || []

- if comments.empty?
  - desc.push altname unless agent[:heading].include? altname

  - birth = ignore_nil {agent[:dbpedia][:birthYear].first} || ignore_nil {agent[:dbpedia][:birthDate].first} || ignore_nil {agent[:foaf][:birthday].first}
  - birth = Date.parse(birth).year.to_s if ! birth.nil? and birth.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}.*$/)
  - death = ignore_nil {agent[:dbpedia][:deathYear].first} || ignore_nil {agent[:dbpedia][:deathDate].first}
  - death = Date.parse(death).year.to_s if ! death.nil? and death.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}.*$/)

  - life_dates = "#{birth}-" unless birth.nil?
  - life_dates += "#{death}" unless death.nil?
  - desc.push life_dates

.description= desc.compact.join('; ')

= ignore_nil {comments.first.truncate(250, :separator => '. ', :omission => '.')}
Add summaries to Concept, Agent results
Add summaries to Concept, Agent results
