Methods for storing metadata associated with individual files?

后端 未结 5 2078
太阳男子
太阳男子 2020-12-31 16:02

Given a collection of files which will have associated metadata, what are the recommended methods for storing this metadata?

Some files formats support storing metad

5条回答
  •  别那么骄傲
    2020-12-31 16:43

    I would basically make a metadata DB which held this information:

    RESOURCE_TABLE
    RESOURCE_ID
    RESOURCE_TYPE (folder, doctype, web link, other)
    RESOURCE_URL (any URL)

    NOTES_TABLE
    NOTE_ID
    RESOURCE_NO
    RESOURCE_NOTE (long text)

    TAGS_TABLE
    TAG_ID
    RESOURCE_NO
    TAG_TEXT

    Then I would use the note field textual notes to the file/folder/resource. Choose if you would use 1:1 or 1:N for this.

    The tags field I would use to store any number of searchable parameters like YEAR, PROJECT, and other values that will describe and group your content.

    Then you could add tables for owner, stakeholders, and other organisation info etc.

提交回复
热议问题