aleph.model.metadata

Metadata

class aleph.model.metadata.Metadata

Imports

  • object

Summary

Handle all sorts of metadata normalization for documents.

__init__(self)
add_country(self, country)
add_date(self, obj)
add_domain(self, domain)
add_email(self, email)
add_keyword(self, kw)
add_language(self, language)
add_phone_number(self, number)
add_url(self, url)
author(self, author)
columns(self, columns)
countries(self, countries)
dates(self, dates)
domains(self, domains)
emails(self, emails)
encoding(self, encoding)
extension(self, extension)
file_name(self, file_name)
file_size(self, file_size)
file_title(self)

The file title is a human-readable interpretation of the file name. It is used for labelling or as a backup title. It should not be used to generate an actual file system path.

has_meta(self, name)
headers(self, headers)
keywords(self, keywords)
languages(self, languages)
mime_type(self, mime_type)
pdf_version(self, pdf_version)
phone_numbers(self, phone_numbers)
source_url(self, source_url)
summary(self, summary)
tables(self, tables)
title(self, title)
to_meta_dict(self)

Generate ElasticSearch form.

update_meta(self)
urls(self, urls)