Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

数据结构 Database schema

Radium Zheng edited this page Aug 5, 2017 · 1 revision

MongoDB 中有如下 collection #entity_sentence 熟语资料

entity_sentence
{
    field_text
    field_tags
    [
        <reference>
    ]
    
    field_audio 
    [
        <reference>
    ]
    field_annotations  //单字注解
    [
        indices:[]
        text:[]
        explanation:[]
    ]
    field_notes  //解说
    field_metaphor //比喻义
    field_source
    {
        source:<reference>
        metadata: //Page number, etc.
    }
}

#entity_tag 标签资料

entity_tag
{
    field_title
    field_description
}

#entity_audio 音频资料

entity_audio
{
    _id
    field_filename:
    field_speaker:<reference>
}

#entity_speaker 发音人资料

entity_speaker
{
    _id
    field_title:
    field_description:
    field_accent:
}

#entity_source 词条出处资料

entity_source
{
    field_title
    field_description
}

#entity_glyph 自造字信息

entity_glyph
{
    field_ids
    field_kanjivg
}
Clone this wiki locally