LexBuild

LexBuild Database Tables

  • TABLE - EUI:

    This table is used for generating EUI in LexBuild.

    FieldTypeNullIndexDefaultExtraDescription
    idINTNo   EUI number

  • TABLE - USERS (JavaDb) USER (MySql):

    This table stores information for all users in this tool.

    FieldTypeNullKeyDefaultExtraDescription
    idINTNoPRI0Auto_IncrementUser's ID
    fullNameVARCHAR(32)Yes Null Full name
    userNameVARCHAR(32)No Guest User name for the account
    passwordVARCHAR(32)Yes Null Encrypted Password
    userTypeINTNo 0 Account type:
    • 0: inactive
    • 1: user
    • 2: manager
    • 3: administrator
    eMailVARCHAR(32)Yes Null Email address
    officeVARCHAR(20)Yes Null Office phone number
    homeVARCHAR(20)Yes Null Home phone number
    eNotifyVARCHAR(8)No True Notified by Email
    lastLoginVARCHAR(10)Yes Null Last login date (use for review list)

  • TABLE - LEX_RECORD:

    This table stores all information for all (approved) lexical record in lexicon. lastAction flag represent the status of last action.

    • Create (1): records are new and created.
    • Modify (2): records exist in Lexicon before and modified.
    • Delete (3): records are deleted.
    • Pending (4): records are submitted for modifying, deleting, restoring and waiting for approval.
    • Restore (5): records were deleted and restored.

    FieldTypeNullKeyDefaultExtraDescription
    euiVARCHAR(8)NoPRI0 EUI
    baseVARCHAR(150)NoIndexed  Base form
    categoryVARCHAR(5)NoIndexednoun Category
    cSignatureVARCHAR(20)No None Creation Signature
    mSignatureVARCHAR(20)No None Modification Signature
    aSignatureVARCHAR(20)No None Approval Signature
    lastActionINTNoIndexedNone(0) Create(1)/Modify(2)/Delete(3)/Pending(4)/Restore(5)
    cDateVARCHAR(10)Yes Null Created date
    mDateVARCHAR(10)Yes Null Modified date
    aDateVARCHAR(10)Yes Null Approved date
    lexRecordLONG VARCHAR (TEXT)No   Lexicon Record

    Sometimes, there is an operation mistake to make eui=E0000000 and this required manual fix by
    delete from LEX_RECORD where eui='E0000000'

    Other useful SQL command:
    select count(*) from LEX_RECORD where mSignature='mccreedy' and mDate like '2017%'
    select count(*) from LEX_RECORD where cSignature='nace' and cDate > '2016-07' and cDate < '2017-01'
    select count(*) from LEX_RECORD where lastAction != 3 and lexRecord like '%class_type=TBD%'

  • TABLE - LEX_RECORD_TEMP:

    This table stores all information for all records waiting for approval. It includes newly added lexical records, modified lexical records, and deleted lexical records, and restored records. Records are deleted from this table after they are approved. In other words, this table should be empty if all records are marked as approved.

    FieldTypeNullKeyDefaultExtraDescription
    euiVARCHAR(8)NoPRI0 EUI
    baseVARCHAR(150)NoIndexed  Base form
    categoryVARCHAR(5)NoIndexednoun Category
    cSignatureVARCHAR(20)No None Creation Signature
    mSignatureVARCHAR(20)No None Modification Signature
    aSignatureVARCHAR(20)No None Approval Signature
    lastActionINTNoIndexedNone(0) Create(1)/Modify(2)/Delete(3)/Restore(5)/lock+create(11)/lock+modify(12)
    cDateVARCHAR(10)Yes Null Created date
    mDateVARCHAR(10)Yes Null Modified date
    aDateVARCHAR(10)Yes Null Approved date
    lexRecordLONG VARCHAR (TEXT)No   Lexicon Record

  • TABLE - LEX_RECORD_DENY:

    This table stores all denied records during the approval process. In general, all submitted lexRecord are validated by linguists and should be approved. In case there is a mistake, the manager should contact (eMail) the linguist to modify the submitted lexRecords for approval. Deny should not be used in practice. This table keeps records for all denied submission.

    FieldTypeNullKeyDefaultExtraDescription
    euiVARCHAR(8)NoPRI0 EUI
    baseVARCHAR(150)NoIndexed  Base form
    categoryVARCHAR(5)NoIndexednoun Category
    cSignatureVARCHAR(20)No None Creation Signature
    mSignatureVARCHAR(20)No None Modification Signature
    aSignatureVARCHAR(20)No None Approval Signature
    lastActionINTNoIndexedNone(0) Create(1)/Modify(2)/Delete(3)/Restore(5)
    cDateVARCHAR(10)Yes Null Created date
    mDateVARCHAR(10)Yes Null Modified date
    aDateVARCHAR(10)Yes Null Approved date
    lexRecordLONG VARCHAR (TEXT)No   Lexicon Record

  • TABLE - INFL_VARS:

    This table stores all inflectional variables of lexical records. This table is used for finding the close match. In order to find the best results of close match, this table should be updated with the latest Inflectional variables (INFL_VARS_TEMP).

    FieldTypeNullKeyDefaultExtraDescription
    inflVarLcVARCHAR(150)NoIndexed0 Inflectional variables, Lowercase
    inflVarVARCHAR(150)No 0 Inflectional variables
    catINT  0 Category
    inflectionINT  0 Inflection
    euiVARCHAR(8)NoIndexed0 EUI
    unInflVARCHAR(150)No 0 Uninflected variables
    citationVARCHAR(150)    Citation form

  • TABLE - INFL_VARS_TEMP:

    This table stores all inflectional variables of lexical records which are submitted for approval. This table is used in LexAccess and close match. The content of this table should be moved to INFL_VARS when the record is approved.

    FieldTypeNullKeyDefaultExtraDescription
    inflVarLcVARCHAR(150)NoIndexed0 Inflectional variables, Lowercase
    inflVarVARCHAR(150)No 0 Inflectional variables
    catINT  0 Category
    inflectionINT  0 Inflection
    euiVARCHAR(8)NoIndexed0 EUI
    unInflVARCHAR(150)No 0 Uninflected variables
    citationVARCHAR(150)    Citation form

  • TABLE - NEW_TERMS:

    This table stores terms (base) for new lexical records. These new terms come from nominalization or other field while build the Lexicon. Basically, these new terms should be added into Lexicon and this table should be empty.

    FieldTypeNullIndexDefaultExtraDescription
    idINTNoIndexed0Auto_IncrementNew term's ID
    termVARCHAR(150)NoIndexed0 Inflectional variables
    catVARCHAR(5)  0 Category
    euiVARCHAR(8)  0 Ref. Eui
    sourceNotesVARCHAR(60)  0 Notes

  • TABLE - LEX_RECORD_COMMENTS:

    This table is used for the comments on lexical records. These comments are used internally between lexBuilder and don't go to public. One record is used for one Eui.

    FieldTypeNullIndexDefaultExtraDescription
    euiVARCHAR(8)NoPRI0 EUI
    mDateVARCHAR(10)Yes Null Last Modified date
    modifierVARCHAR(20)No None Last modifier
    commentsLONG VARCHAR (TEXT)No   Comments