aleph.model.metadata

Metadata

class aleph.model.metadata.Metadata

Imports

  • object

Summary

Handle all sorts of metadata normalization for documents.

__init__(self)
_meta_add(self, field, value)
_meta_text(self, field, value)
add_country(self, country)
add_keyword(self, kw)
add_language(self, language)
author(self, author)
authored_at(self, date)
columns(self, columns)
countries(self, countries)
crawler(self, crawler)
date(self, date)
dates(self)
encoding(self, encoding)
extension(self, extension)
file_name(self, file_name)
file_size(self, file_size)
has_meta(self, name)
headers(self, headers)
keywords(self, keywords)
languages(self, languages)
mime_type(self, mime_type)
modified_at(self, date)
pdf_version(self, pdf_version)
published_at(self, date)
retrieved_at(self, date)
safe_file_name(self)

File name is a slugified version of the file title that is safe to use as part of a file system path.

source_url(self, source_url)
summary(self, summary)
title(self, title)
update_meta(self)