triplestoreconfig¶
Pydantic TripleStore Configuration Data Model.
TripleStoreConfig
¶
Bases: GenericConfig
, SecretConfig
TripleStore Configuration.
This is a configuration for the
TripleStore
.
This class should not be used directly as a configuration object for a strategy object, but only as a configuration field inside a configuration object.
Source code in oteapi/models/triplestoreconfig.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
agraphHost: str = Field(Ellipsis, description='AllegroGraph host name.')
class-attribute
¶
agraphPort: int = Field(Ellipsis, description='AllegroGraph port number.')
class-attribute
¶
repositoryName: str = Field(Ellipsis, description='The repository name, where the mappings are stored.')
class-attribute
¶
Config
¶
Pydantic configuration for TripleStoreConfig.
Source code in oteapi/models/triplestoreconfig.py
43 44 45 46 47 48 49 50 51 52 |
|
fields = {'token': {'exclude': True}, 'client_id': {'exclude': True}, 'client_secret': {'exclude': True}}
class-attribute
¶
The fields
-config enables that token
, client_id
and client_secret
will be excluded, when the model is serialized.
ensure_user_pass(values)
¶
Ensure that user/password are set, since they are optional in the SecretConfig.
Source code in oteapi/models/triplestoreconfig.py
36 37 38 39 40 41 |
|