-
Notifications
You must be signed in to change notification settings - Fork 4
LexDbInternals
BenjaminWaldron edited this page May 17, 2005
·
17 revisions
The LexDB uses a PostgreSQL database to provide a source of lexical items for client applications such as the LKB. These lexical items are stored as revisions in a table named rev.
This has the following structure. The first 4 fields, which hard-coded into every LexDB, have the following definitions:
name TEXT NOT NULL,
userid TEXT DEFAULT user NOT NULL,
modstamp TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL,
dead BOOLEAN DEFAULT 'f' NOT NULL
Following these are the user-defined fields specific to a particular LexDB. These are obtained from the .fld file provided to the script install-lexdb. They are also stored in the public.fld table of the LexDB for later reference. The following are the user-defined fields used by the ERG LexDB:
type TEXT
orthography TEXT
keyrel TEXT
altkey TEXT
alt2key TEXT
keytag TEXT
altkeytag TEXT
compkey TEXT
ocompkey TEXT
pronunciation TEXT
complete TEXT
semclasses TEXT
preferences TEXT
classifier TEXT
selectrest TEXT
jlink TEXT
comments TEXT
exemplars TEXT
usages TEXT
lang TEXT
country TEXT
dialect TEXT
domains TEXT
genres TEXT
register TEXT
confidence real DEFAULT 1
source TEXT
... TO DO
Home | Forum | Discussions | Events