bento_meta.objects
This module contains the subclasses of Entity
which are used
in representing the models contained in the MDB.
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. |
|
Subclass with information regarding data model. |
Functions
|
Merge subclass attribute and mapping specification dicts with the base class's. |
Module Contents
- bento_meta.objects.mergespec(clsname: str, attspec: dict[str, str], mapspec: dict[str, str | dict[str, str]]) tuple[dict[str, str], dict[str, str | dict[str, str]]] [source]
Merge subclass attribute and mapping specification dicts with the base class’s.
Not for human consumption.
- class bento_meta.objects.Node(init: dict | neo4j.graph.Node | Node | None = None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a data node.
- attspec_
- mapspec_
- class bento_meta.objects.Property(init: dict | neo4j.graph.Node | Property | None = None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a property of a node or relationship (edge).
- pvt_attr = ['pvt', 'neoid', 'dirty', 'removed_entities', 'attspec', 'mapspec', 'belongs', 'value_types']
- attspec_
- mapspec_
- defaults
- value_types = []
- 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
- class bento_meta.objects.Edge(init: dict | neo4j.graph.Node | Edge | None = None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a relationship between model nodes.
- defaults
- attspec_
- mapspec_
- property triplet
(edge.handle, src.handle, dst.handle)
src
anddst
attributes must be set.- Type:
A 3-tuple that fully qualifies the edge
- class bento_meta.objects.Term(init: dict | neo4j.graph.Node | Term | None = None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a term from a terminology.
- attspec_
- mapspec_
- class bento_meta.objects.ValueSet(init: dict | neo4j.graph.Node | ValueSet | None = 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: dict | neo4j.graph.Node | Concept | None = None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a semantic concept.
- attspec_
- mapspec_
- class bento_meta.objects.Predicate(init: dict | neo4j.graph.Node | Predicate | None = None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a semantic link between concepts.
- attspec_
- mapspec_
- class bento_meta.objects.Origin(init: dict | neo4j.graph.Node | Origin | None = None)[source]
Bases:
bento_meta.entity.Entity
Subclass that models a
Term
‘s authoritative source.- attspec_
- mapspec_