middleware.vocabulary.search_model¶
Request and response models for lexical vocabulary term search.
Classes¶
Inputs for ranking vocabulary terms against a natural-language query. |
|
One ranked vocabulary term match with a score and short explanations. |
|
Ranked search hits returned for a |
Module Contents¶
- class middleware.vocabulary.search_model.TermSearchRequest(/, **data: Any)¶
Bases:
pydantic.BaseModelInputs for ranking vocabulary terms against a natural-language query.
- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- term_types: tuple[middleware.namespaces.common.VocabularyTermType, Ellipsis] = None¶
- class middleware.vocabulary.search_model.TermSearchHit(/, **data: Any)¶
Bases:
pydantic.BaseModelOne ranked vocabulary term match with a score and short explanations.
- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- uri: axiom.common.N3IRIRef¶
- vocabulary: axiom.common.N3IRIRef¶
- class middleware.vocabulary.search_model.TermSearchResponse(/, **data: Any)¶
Bases:
pydantic.BaseModelRanked search hits returned for a
TermSearchRequestquery.- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- hits: tuple[TermSearchHit, Ellipsis]¶