curategpt.wrappers.legal package
Submodules
curategpt.wrappers.legal.reusabledata_wrapper module
Chat with a KB.
- class curategpt.wrappers.legal.reusabledata_wrapper.ReusableDataWrapper(source_locator=None, local_store=None, extractor=None, _label_adapter=None, glob=False)
Bases:
BaseWrapperA wrapper over a reusabledata.org yaml files.
Each yaml file is treated as a distinct dataset object; the structure is not altered, other than adding a
license_textfield that is obtained by querying the license_link URL.This text can be used for evaluating automated metadata extraction.
This is a static wrapper: it does not allow search, it is expected that all objects from the source are ingested.
- default_object_type = 'Dataset'
-
glob:
bool= False
-
name:
ClassVar[str] = 'reusabledata'
- objects(collection=None, object_ids=None, **kwargs)
Return all objects in the view.
- Parameters:
collection (
str)object_ids (
Optional[Iterable[str]]) – Optional list of IDs to fetchkwargs
- Return type:
Iterator[Dict]- Returns: