hdmf.query module

class hdmf.query.Query(obj, op, arg)

Bases: object

evaluate(expand=True)
Parameters

expand (bool) – None

class hdmf.query.HDMFDataset(dataset)

Bases: object

Parameters

dataset (ndarray or list or tuple or Dataset or StrDataset or Array) – the HDF5 file lazily evaluate

__getitem__(key)
property dataset
property dtype
next()
class hdmf.query.ReferenceResolver

Bases: object

A base class for classes that resolve references

abstract classmethod get_inverse_class()

Return the class the represents the ReferenceResolver that resolves refernces to the opposite type.

BuilderResolver.get_inverse_class should return a class that subclasses ContainerResolver.

ContainerResolver.get_inverse_class should return a class that subclasses BuilderResolver.

abstract invert()

Return an object that defers reference resolution but in the opposite direction.

class hdmf.query.BuilderResolver

Bases: ReferenceResolver

A reference resolver that resolves references to Builders

Subclasses should implement the invert method and the get_inverse_class classmethod

BuilderResolver.get_inverse_class should return a class that subclasses ContainerResolver.

class hdmf.query.ContainerResolver

Bases: ReferenceResolver

A reference resolver that resolves references to Containers

Subclasses should implement the invert method and the get_inverse_class classmethod

ContainerResolver.get_inverse_class should return a class that subclasses BuilderResolver.