PyOpenWorm.context module

class PyOpenWorm.context.Context(key=None, imported=(), ident=None, mapper=None, base_namespace=None, **kwargs)[source]

Bases: PyOpenWorm.import_contextualizer.ImportContextualizer, PyOpenWorm.contextualize.Contextualizable, PyOpenWorm.data.DataUser

A context. Analogous to an RDF context, with some special sauce

class PyOpenWorm.context.ContextContextManager(ctx, to_import)[source]

Bases: object

The context manager created when Context::__call__ is passed a dict

class PyOpenWorm.context.ContextMeta[source]

Bases: PyOpenWorm.contextualize.ContextualizableClass

class PyOpenWorm.context.QueryContext(graph, *args, **kwargs)[source]

Bases: PyOpenWorm.context.Context