跳转至

foundryts.FoundryTS

class foundryts.FoundryTS(*args, **kwargs)

The singleton that sends queries to the FoundryTS backend under the hood.

This singleton is automatically initialized using environment variables and the user is not required to initialize an instance for calling FoundryTS supported functions.

Examples

>>> fts = FoundryTS()

Property for searching the Ontology with foundryts.search.Search.

We recommend using this property to perform search as it enforces safeguards for the searching in the Foundry ecosystem.

Examples

>>> fts = FoundryTS()
>>> objects = fts.search.series(metadata.property == 'value')
NodeCollection(...)

中文翻译

foundryts.FoundryTS

class foundryts.FoundryTS(*args, **kwargs)

在底层向 FoundryTS 后端发送查询的单例(singleton)。

该单例会使用环境变量自动初始化,用户无需手动初始化实例即可调用 FoundryTS 支持的函数。

示例

>>> fts = FoundryTS()

property search

用于通过 foundryts.search.Search 搜索本体(Ontology)的属性。

我们建议使用此属性执行搜索,因为它能在 Foundry 生态系统中为搜索提供安全保障。

示例

>>> fts = FoundryTS()
>>> objects = fts.search.series(metadata.property == 'value')
NodeCollection(...)