bento_meta.objects

This module contains the subclasses of Entity which are used in representing the models contained in the MDB.

Module Contents

Classes

Node

Subclass that models a data node.

Property

Subclass that models a property of a node or relationship (edge).

Edge

Subclass that models a relationship between model nodes.

Term

Subclass that models a term from a terminology.

ValueSet

Subclass that models an enumerated set of Property values.

Concept

Subclass that models a semantic concept.

Predicate

Subclass that models a semantic link between concepts.

Origin

Subclass that models a Term 's authoritative source.

Tag

Subclass that allows simple key-value tagging of a model at arbitrary points.

Functions

mergespec(clsname, attspec, mapspec)

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 and dst 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 for Term instances.

attspec_
mapspec_
__setattr__(name, value)[source]

Implement setattr(self, name, value).

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_