Module loglan_db.model_db.base_word
This module contains a basic Word Model
Classes
class BaseWord (**kwargs)
-
BaseWord model
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.
Ancestors
Subclasses
Instance variables
var TID_old
var affixes : flask_sqlalchemy.BaseQuery
-
Get all word's affixes if exist Only primitives have affixes.
Returns
BaseQuery
var complexes : flask_sqlalchemy.BaseQuery
-
Get all word's complexes if exist Only primitives and Little Words have complexes.
Returns
BaseQuery
var definitions : flask_sqlalchemy.BaseQuery
var derivatives : flask_sqlalchemy.BaseQuery
var event_end : flask_sqlalchemy.BaseQuery
var event_end_id
var event_start : flask_sqlalchemy.BaseQuery
var event_start_id
var id
-
Word's internal ID number: Integer
var id_old
var keys : flask_sqlalchemy.BaseQuery
-
Get all BaseKey object related to this BaseWord.
Keep in mind that duplicated keys from related definitions will be counted with
.count()
but excluded from.all()
requestReturns
BaseQuery
var match
var name
var notes
var origin
var origin_x
var parents : flask_sqlalchemy.BaseQuery
-
Query to get all parents for Complexes, Little words or Affixes
Returns
BaseQuery
var rank
var type : flask_sqlalchemy.BaseQuery
var type_id
var year
Methods
def query_derivatives(self, word_type: str = None, word_type_x: str = None, word_group: str = None) ‑> flask_sqlalchemy.BaseQuery
-
Query to get all derivatives of the word, depending on its parameters
Args
word_type
- str: (Default value = None)
E.g. "2-Cpx", "C-Prim", "LW"
word_type_x
- str: (Default value = None)
E.g. "Predicate", "Name", "Affix"
word_group
- str: (Default value = None)
E.g. "Cpx", "Prim", "Little"
Returns
BaseQuery
Inherited members