bento_meta.objects
This module contains the subclasses of Entity
which are used
in representing the models contained in the MDB.
Module Contents
Classes
Subclass that models a data node. |
|
Subclass that models a property of a node or relationship (edge). |
|
Subclass that models a relationship between model nodes. |
|
Subclass that models a term from a terminology. |
|
Subclass that models an enumerated set of |
|
Subclass that models a semantic concept. |
|
Subclass that models a semantic link between concepts. |
|
Subclass that models a |
|
Subclass that allows simple key-value tagging of a model at arbitrary points. |
Functions
|
Merge subclass attribute and mapping specification dicts with the |
- bento_meta.objects.mergespec(clsname, attspec, mapspec)[source]
Merge subclass attribute and mapping specification dicts with the base class’s. Not for human consumption.
- class bento_meta.objects.Node(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a data node.
- attspec_
- mapspec_
- class bento_meta.objects.Property(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a property of a node or relationship (edge).
- property terms
If the Property has a
value_set
domain, return the Term objects of its ValueSet
- property values
If the Property as a
value_set
domain, return its term values as a list of str. :return: list of term values :rtype: list
- pvt_attr
- attspec_
- mapspec_
- defaults
- class bento_meta.objects.Edge(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a relationship between model nodes.
- property triplet
(edge.handle, src.handle, dst.handle)
src
anddst
attributes must be set.- Type:
A 3-tuple that fully qualifies the edge
- defaults
- attspec_
- mapspec_
- class bento_meta.objects.Term(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a term from a terminology.
- attspec_
- mapspec_
- class bento_meta.objects.ValueSet(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models an enumerated set of
Property
values. Essentially a container forTerm
instances.- attspec_
- mapspec_
- class bento_meta.objects.Concept(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a semantic concept.
- attspec_
- mapspec_
- class bento_meta.objects.Predicate(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a semantic link between concepts.
- attspec_
- mapspec_
- class bento_meta.objects.Origin(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a
Term
‘s authoritative source.- attspec_
- mapspec_
- class bento_meta.objects.Tag(init=None)[source]
Bases:
bento_meta.entity.Entity
Subclass that allows simple key-value tagging of a model at arbitrary points.
- attspec_
- mapspec_