Konsep
GolonganKata
Bases: BaseStrictDataTable
Word Class model such as nouns, verbs, etc.
Fields:
id(CharField): Short Name to identify the Word Class- max length: 6
- unique: True
- null: False
nama(TextField): Full nameketerangan(TextField): Description of word class
Source code in samudra/models/core/konsep.py
Konsep
Bases: BaseDataTable
Concept model to list the meanings of words from Lemma.
Fields
lemma(ForeignKeyField): foreign key toLemma.- field:
Lemma.id - backref:
Lemma.konsep - on delete: "cascade"
- field:
golongan(ForeignKeyField): foreign key toGolonganKata.- field:
GolonganKata.id - backref:
GolonganKata.konsep - on delete: set null
- null: True
- field:
keterangan(TextField): the description of meaning.- null: True
- index: True
tertib(IntegerField): the order in list of meaning to correspondingLemma- null: True
Source code in samudra/models/core/konsep.py
attach(to_model, values)
Get or Create attachment from self to to_model with the corresponding values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
to_model |
BaseAttachmentDataTable
|
Attachment data table associated with the value. |
required |
values |
List[Dict[str, str]]
|
Values to attach to |
required |
Returns:
| Type | Description |
|---|---|
ModelSelect
|
pw.ModelSelect: List of attachment data associated with self. |