From aecd14f307aa9a15d3b73778373a1de33be35cf4 Mon Sep 17 00:00:00 2001 From: erlehmann Date: Tue, 2 Dec 2008 04:51:44 +0000 Subject: [PATCH] dublin core in the database git-svn-id: http://yolanda.mister-muffin.de/svn@399 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/yolanda/model/entities.py | 38 ++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/trunk/yolanda/model/entities.py b/trunk/yolanda/model/entities.py index 0cb50fb..9809b57 100644 --- a/trunk/yolanda/model/entities.py +++ b/trunk/yolanda/model/entities.py @@ -3,5 +3,41 @@ from elixir import * class Video(Entity): using_options(tablename='videos') - title = Field(Unicode(255)) + # Important: Keep this in sync with upload.py ! + + # Dublin Core terms + dc_title = Field(Unicode(255)) + dc_creator = Field(Unicode(255)) + dc_subject = Field(UnicodeText) + + dc_abstract = Field(UnicodeText) + + dc_contributor = Field(Unicode(255)) + + dc_created = Field(DateTime) + dc_valid = Field(DateTime) + dc_available = Field(DateTime) + dc_issued = Field(DateTime) + dc_modified = Field(DateTime) + dc_dateAccepted = Field(DateTime) + dc_dateCopyrighted = Field(DateTime) + dc_dateSubmitted = Field(DateTime) + + dc_identifier = Field(Unicode(255)) + dc_source = Field(Unicode(255)) + dc_language = Field(Unicode(3)) # see ISO 639-3 + + dc_extent = Field(Interval) + + dc_spatial = Field(Unicode(255)) + dc_temporal = Field(DateTime) + + dc_rightsHolder = Field(Unicode(255)) + + # Creative Commons properties + cc_commercial = Field(Boolean) + cc_sharealike = Field(Boolean) + cc_derivatives = Field(Boolean) + + # everything else sha256 = Field(String(64))