models
Classes:
-
AccessControlEntry– -
AuthenticatedUser–Represents an authenticated user returned from POST /rest/login.
-
BackupOperationBean– -
ClearGraphAccessControlEntry– -
ClusterRequest– -
FreeAccessSettings– -
GraphDBRepository– -
ImportSettings– -
InfrastructureMemoryUsage– -
InfrastructureStatistics– -
InfrastructureStorageMemory– -
NodeStatus– -
OWLimParameter– -
ParserSettings– -
PluginAccessControlEntry– -
RecoveryOperation– -
RecoveryStatus– -
RepositoryConfigBean– -
RepositoryConfigBeanCreate– -
RepositorySizeInfo– -
RepositoryState–Enumeration for repository state values.
-
RepositoryStatistics– -
RepositoryStatisticsEntityPool– -
RepositoryStatisticsQueries– -
ServerImportBody– -
SnapshotOptionsBean– -
StatementAccessControlEntry– -
StructuresStatistics– -
SystemAccessControlEntry– -
TopologyStatus– -
User– -
UserCreate–Dataclass for creating a new user in GraphDB.
-
UserUpdate–
AccessControlEntry
dataclass
AccessControlEntry(scope: Literal['statement', 'clear_graph', 'plugin', 'system'], policy: Literal['allow', 'deny', 'abstain'], role: str)
Methods:
Attributes:
-
policy(Literal['allow', 'deny', 'abstain']) – -
role(str) – -
scope(Literal['statement', 'clear_graph', 'plugin', 'system']) –
as_dict
from_dict
classmethod
from_dict(data: dict) -> SystemAccessControlEntry | StatementAccessControlEntry | PluginAccessControlEntry | ClearGraphAccessControlEntry
Create an AccessControlEntry subclass instance from raw GraphDB data.
Note: we perform parse validation essentially twice (here and in the subclass’s post_init) to ensure mypy is satisfied with the value’s type.
Parameters:
-
(datadict) –A dict containing the access control entry data, typically parsed from a JSON response.
Returns:
-
SystemAccessControlEntry | StatementAccessControlEntry | PluginAccessControlEntry | ClearGraphAccessControlEntry–An AccessControlEntry subclass instance (SystemAccessControlEntry,
-
SystemAccessControlEntry | StatementAccessControlEntry | PluginAccessControlEntry | ClearGraphAccessControlEntry–StatementAccessControlEntry, PluginAccessControlEntry, or
-
SystemAccessControlEntry | StatementAccessControlEntry | PluginAccessControlEntry | ClearGraphAccessControlEntry–ClearGraphAccessControlEntry) depending on the ‘scope’ field.
Raises:
-
TypeError–If data is not a dict.
-
ValueError–If ‘scope’ is not a supported value (‘system’, ‘statement’, ‘plugin’, ‘clear_graph’), or if any field fails validation (e.g., invalid policy, operation, role, plugin, subject, predicate, object, or graph values).
Source code in rdflib/contrib/graphdb/models.py
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 | |
AuthenticatedUser
dataclass
AuthenticatedUser(username: str, authorities: list[str] = list(), appSettings: dict[str, Any] = dict(), external: bool = False, token: str = '')
Represents an authenticated user returned from POST /rest/login.
Attributes:
-
username(str) –The username of the authenticated user.
-
authorities(list[str]) –List of granted authorities/roles (e.g., [“ROLE_USER”, “ROLE_ADMIN”]).
-
appSettings(dict[str, Any]) –Application settings for the user.
-
external(bool) –Whether the user is external (e.g., from LDAP/OAuth).
-
token(str) –The full Authorization header value (e.g., “GDB
“). Can be passed directly to GraphDBClient’s auth parameter.
Methods:
-
__post_init__– -
from_response–Create an AuthenticatedUser from API response data and token.
Attributes:
-
appSettings(dict[str, Any]) – -
authorities(list[str]) – -
external(bool) – -
token(str) – -
username(str) –
appSettings
class-attribute
instance-attribute
__post_init__
Source code in rdflib/contrib/graphdb/models.py
from_response
classmethod
from_response(data: dict[str, Any], token: str) -> AuthenticatedUser
Create an AuthenticatedUser from API response data and token.
Parameters:
-
(datadict[str, Any]) –The JSON response body from POST /rest/login.
-
(tokenstr) –The GDB token extracted from the Authorization header.
Returns:
-
AuthenticatedUser–An AuthenticatedUser instance.
Raises:
-
ValueError–If required fields are missing or invalid.
-
TypeError–If data is not a dict.
Source code in rdflib/contrib/graphdb/models.py
BackupOperationBean
dataclass
BackupOperationBean(id: str, username: str, operation: Literal['CREATE_BACKUP_IN_PROGRESS', 'RESTORE_BACKUP_IN_PROGRESS', 'CREATE_CLOUD_BACKUP_IN_PROGRESS', 'RESTORE_CLOUD_BACKUP_IN_PROGRESS'], affectedRepositories: list[str], msSinceCreated: int, snapshotOptions: SnapshotOptionsBean, nodePerformingClusterBackup: str | None = None)
Methods:
-
__post_init__– -
from_dict–Create a BackupOperationBean instance from a dict.
Attributes:
-
affectedRepositories(list[str]) – -
id(str) – -
msSinceCreated(int) – -
nodePerformingClusterBackup(str | None) – -
operation(Literal['CREATE_BACKUP_IN_PROGRESS', 'RESTORE_BACKUP_IN_PROGRESS', 'CREATE_CLOUD_BACKUP_IN_PROGRESS', 'RESTORE_CLOUD_BACKUP_IN_PROGRESS']) – -
snapshotOptions(SnapshotOptionsBean) – -
username(str) –
nodePerformingClusterBackup
class-attribute
instance-attribute
operation
instance-attribute
operation: Literal['CREATE_BACKUP_IN_PROGRESS', 'RESTORE_BACKUP_IN_PROGRESS', 'CREATE_CLOUD_BACKUP_IN_PROGRESS', 'RESTORE_CLOUD_BACKUP_IN_PROGRESS']
__post_init__
Source code in rdflib/contrib/graphdb/models.py
from_dict
classmethod
from_dict(data: dict) -> BackupOperationBean
Create a BackupOperationBean instance from a dict.
This is useful for converting JSON response data into the dataclass structure. The nested ‘snapshotOptions’ dict is automatically converted to a SnapshotOptionsBean instance.
Parameters:
-
(datadict) –A dict containing the backup operation data, typically parsed from a JSON response.
Returns:
-
BackupOperationBean–A BackupOperationBean instance with nested dataclass objects.
Raises:
-
KeyError–If required keys are missing from the input dict.
-
TypeError–If nested ‘snapshotOptions’ cannot be unpacked into SnapshotOptionsBean.
-
ValueError–If field validation fails in SnapshotOptionsBean or BackupOperationBean (e.g., invalid types or operation values).
Source code in rdflib/contrib/graphdb/models.py
ClearGraphAccessControlEntry
dataclass
ClearGraphAccessControlEntry(scope: Literal['clear_graph'], policy: Literal['allow', 'deny', 'abstain'], role: str, graph: Literal['*', 'named', 'default'] | URIRef)
Bases: AccessControlEntry
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
graph(Literal['*', 'named', 'default'] | URIRef) – -
policy(Literal['allow', 'deny', 'abstain']) – -
role(str) – -
scope(Literal['clear_graph']) –
__post_init__
ClusterRequest
dataclass
ClusterRequest(electionMinTimeout: int, electionRangeTimeout: int, heartbeatInterval: int, messageSizeKB: int, verificationTimeout: int, transactionLogMaximumSizeGB: int, batchUpdateInterval: int, nodes: list[str])
Methods:
-
__post_init__– -
from_dict–Create a ClusterRequest instance from a dict.
Attributes:
-
batchUpdateInterval(int) – -
electionMinTimeout(int) – -
electionRangeTimeout(int) – -
heartbeatInterval(int) – -
messageSizeKB(int) – -
nodes(list[str]) – -
transactionLogMaximumSizeGB(int) – -
verificationTimeout(int) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
from_dict
classmethod
from_dict(data: dict) -> ClusterRequest
Create a ClusterRequest instance from a dict.
This is useful for converting JSON response data into the dataclass structure.
Parameters:
-
(datadict) –A dict containing the cluster request data, typically parsed from a JSON response.
Returns:
-
ClusterRequest–A ClusterRequest instance.
Raises:
-
KeyError–If required keys are missing from the input dict.
-
TypeError–If the dict cannot be unpacked into ClusterRequest.
-
ValueError–If field validation fails in ClusterRequest (e.g., invalid types for integer fields or nodes).
Source code in rdflib/contrib/graphdb/models.py
FreeAccessSettings
dataclass
FreeAccessSettings(enabled: bool, authorities: list[str] = list(), appSettings: dict[str, Any] = dict())
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
appSettings(dict[str, Any]) – -
authorities(list[str]) – -
enabled(bool) –
appSettings
class-attribute
instance-attribute
__post_init__
Source code in rdflib/contrib/graphdb/models.py
GraphDBRepository
dataclass
GraphDBRepository(id: Optional[str] = None, title: Optional[str] = None, uri: Optional[str] = None, externalUrl: Optional[str] = None, local: Optional[bool] = None, type: Optional[str] = None, sesameType: Optional[str] = None, location: Optional[str] = None, readable: Optional[bool] = None, writable: Optional[bool] = None, unsupported: Optional[bool] = None, state: Optional[RepositoryState] = None)
Methods:
-
from_dict–Create a GraphDBRepository instance from a dict.
Attributes:
-
externalUrl(Optional[str]) – -
id(Optional[str]) – -
local(Optional[bool]) – -
location(Optional[str]) – -
readable(Optional[bool]) – -
sesameType(Optional[str]) – -
state(Optional[RepositoryState]) – -
title(Optional[str]) – -
type(Optional[str]) – -
unsupported(Optional[bool]) – -
uri(Optional[str]) – -
writable(Optional[bool]) –
from_dict
classmethod
from_dict(data: dict) -> GraphDBRepository
Create a GraphDBRepository instance from a dict.
Parameters:
-
(datadict) –A dict containing the repository data, typically parsed from a JSON response.
Returns:
-
GraphDBRepository–A GraphDBRepository instance.
Raises:
-
TypeError–If the dict contains keys that do not match GraphDBRepository fields.
-
ValueError–If the ‘state’ value is not a valid RepositoryState.
Source code in rdflib/contrib/graphdb/models.py
ImportSettings
dataclass
ImportSettings(name: str, status: Literal['PENDING', 'IMPORTING', 'DONE', 'ERROR', 'NONE', 'INTERRUPTING'], size: str, lastModified: int, imported: int, addedStatements: int, removedStatements: int, numReplacedGraphs: int, message: str = '', context: Any | None = None, replaceGraphs: List = list(), baseURI: Any | None = None, forceSerial: bool = False, type: str = 'file', format: Any | None = None, data: Any | None = None, parserSettings: ParserSettings = ParserSettings())
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
addedStatements(int) – -
baseURI(Any | None) – -
context(Any | None) – -
data(Any | None) – -
forceSerial(bool) – -
format(Any | None) – -
imported(int) – -
lastModified(int) – -
message(str) – -
name(str) – -
numReplacedGraphs(int) – -
parserSettings(ParserSettings) – -
removedStatements(int) – -
replaceGraphs(List) – -
size(str) – -
status(Literal['PENDING', 'IMPORTING', 'DONE', 'ERROR', 'NONE', 'INTERRUPTING']) – -
type(str) –
parserSettings
class-attribute
instance-attribute
parserSettings: ParserSettings = field(default_factory=ParserSettings)
status
instance-attribute
__post_init__
Source code in rdflib/contrib/graphdb/models.py
InfrastructureMemoryUsage
dataclass
Methods:
Attributes:
__post_init__
Source code in rdflib/contrib/graphdb/models.py
InfrastructureStatistics
dataclass
InfrastructureStatistics(heapMemoryUsage: InfrastructureMemoryUsage, nonHeapMemoryUsage: InfrastructureMemoryUsage, storageMemory: InfrastructureStorageMemory, threadCount: int, cpuLoad: float, classCount: int, gcCount: int, openFileDescriptors: int, maxFileDescriptors: int)
Methods:
-
__post_init__– -
from_dict–Create an InfrastructureStatistics instance from a dict.
Attributes:
-
classCount(int) – -
cpuLoad(float) – -
gcCount(int) – -
heapMemoryUsage(InfrastructureMemoryUsage) – -
maxFileDescriptors(int) – -
nonHeapMemoryUsage(InfrastructureMemoryUsage) – -
openFileDescriptors(int) – -
storageMemory(InfrastructureStorageMemory) – -
threadCount(int) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
from_dict
classmethod
from_dict(data: dict) -> InfrastructureStatistics
Create an InfrastructureStatistics instance from a dict.
This is useful for converting JSON response data into the dataclass structure. The nested memory and storage dicts are automatically converted to their respective dataclass instances.
Parameters:
-
(datadict) –A dict containing the infrastructure statistics data, typically parsed from a JSON response.
Returns:
-
InfrastructureStatistics–An InfrastructureStatistics instance with nested dataclass objects.
Raises:
-
KeyError–If required keys are missing from the input dict.
-
TypeError–If nested dicts cannot be unpacked into their respective dataclass instances.
-
ValueError–If field validation fails in InfrastructureMemoryUsage, InfrastructureStorageMemory, or InfrastructureStatistics (e.g., invalid types).
Source code in rdflib/contrib/graphdb/models.py
InfrastructureStorageMemory
dataclass
InfrastructureStorageMemory(dataDirUsed: int, workDirUsed: int, logsDirUsed: int, dataDirFree: int, workDirFree: int, logsDirFree: int)
Methods:
Attributes:
-
dataDirFree(int) – -
dataDirUsed(int) – -
logsDirFree(int) – -
logsDirUsed(int) – -
workDirFree(int) – -
workDirUsed(int) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
NodeStatus
dataclass
NodeStatus(address: str, nodeState: str, term: int, syncStatus: dict[str, str], lastLogTerm: int, lastLogIndex: int, endpoint: str, recoveryStatus: RecoveryStatus | None, topologyStatus: TopologyStatus | None, clusterEnabled: bool | None)
Methods:
-
__post_init__– -
from_dict–Create a NodeStatus instance from a dict.
Attributes:
-
address(str) – -
clusterEnabled(bool | None) – -
endpoint(str) – -
lastLogIndex(int) – -
lastLogTerm(int) – -
nodeState(str) – -
recoveryStatus(RecoveryStatus | None) – -
syncStatus(dict[str, str]) – -
term(int) – -
topologyStatus(TopologyStatus | None) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
from_dict
classmethod
from_dict(data: dict) -> NodeStatus
Create a NodeStatus instance from a dict.
This is useful for converting JSON response data into the dataclass structure. The nested ‘recoveryStatus’ and ‘topologyStatus’ dicts are automatically converted to their respective dataclass instances.
Parameters:
-
(datadict) –A dict containing the node status data, typically parsed from a JSON response.
Returns:
-
NodeStatus–A NodeStatus instance with nested dataclass objects.
Raises:
-
KeyError–If required keys are missing from the input dict.
-
TypeError–If nested dicts cannot be unpacked into their respective dataclass instances.
-
ValueError–If field validation fails in TopologyStatus, RecoveryOperation, RecoveryStatus, or NodeStatus (e.g., invalid types).
Source code in rdflib/contrib/graphdb/models.py
OWLimParameter
dataclass
ParserSettings
dataclass
ParserSettings(preserveBNodeIds: bool = False, failOnUnknownDataTypes: bool = False, verifyDataTypeValues: bool = False, normalizeDataTypeValues: bool = False, failOnUnknownLanguageTags: bool = False, verifyLanguageTags: bool = True, normalizeLanguageTags: bool = False, stopOnError: bool = True, contextLink: Any | None = None)
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
contextLink(Any | None) – -
failOnUnknownDataTypes(bool) – -
failOnUnknownLanguageTags(bool) – -
normalizeDataTypeValues(bool) – -
normalizeLanguageTags(bool) – -
preserveBNodeIds(bool) – -
stopOnError(bool) – -
verifyDataTypeValues(bool) – -
verifyLanguageTags(bool) –
failOnUnknownLanguageTags
class-attribute
instance-attribute
__post_init__
Source code in rdflib/contrib/graphdb/models.py
PluginAccessControlEntry
dataclass
PluginAccessControlEntry(scope: Literal['plugin'], policy: Literal['allow', 'deny', 'abstain'], role: str, operation: Literal['read', 'write', '*'], plugin: str)
Bases: AccessControlEntry
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
operation(Literal['read', 'write', '*']) – -
plugin(str) – -
policy(Literal['allow', 'deny', 'abstain']) – -
role(str) – -
scope(Literal['plugin']) –
__post_init__
RecoveryOperation
dataclass
Methods:
Attributes:
__post_init__
Source code in rdflib/contrib/graphdb/models.py
RecoveryStatus
dataclass
RecoveryStatus(state: RecoveryOperation | None = None, message: str | None = None, affectedNodes: list[str] = list())
Methods:
-
__post_init__– -
from_dict–Create a RecoveryStatus instance from a dict.
Attributes:
-
affectedNodes(list[str]) – -
message(str | None) – -
state(RecoveryOperation | None) –
affectedNodes
class-attribute
instance-attribute
__post_init__
Source code in rdflib/contrib/graphdb/models.py
from_dict
classmethod
from_dict(data: dict) -> RecoveryStatus
Create a RecoveryStatus instance from a dict.
This is useful for converting JSON response data into the dataclass structure. Handles empty dict {} by returning a RecoveryStatus with all None/default values. The nested ‘state’ dict (if present) is automatically converted to a RecoveryOperation instance.
Parameters:
-
(datadict) –A dict containing the recovery status data, typically parsed from a JSON response. Can be an empty dict.
Returns:
-
RecoveryStatus–A RecoveryStatus instance with nested dataclass objects.
Raises:
-
KeyError–If required keys are missing from the input dict.
-
TypeError–If nested ‘state’ cannot be unpacked into RecoveryOperation.
-
ValueError–If field validation fails in RecoveryOperation or RecoveryStatus (e.g., invalid types).
Source code in rdflib/contrib/graphdb/models.py
RepositoryConfigBean
dataclass
RepositoryConfigBean(id: str, title: str, type: str, sesameType: str, location: str, params: dict[str, OWLimParameter] = dict())
Attributes:
-
id(str) – -
location(str) – -
params(dict[str, OWLimParameter]) – -
sesameType(str) – -
title(str) – -
type(str) –
params
class-attribute
instance-attribute
params: dict[str, OWLimParameter] = field(default_factory=dict)
RepositoryConfigBeanCreate
dataclass
RepositoryConfigBeanCreate(id: str, title: str, type: str, sesameType: str, location: str, params: dict[str, OWLimParameter] = dict(), missingDefaults: dict[str, OWLimParameter] = dict())
Methods:
-
as_dict–Serialize the dataclass to a Python dict.
Attributes:
-
id(str) – -
location(str) – -
missingDefaults(dict[str, OWLimParameter]) – -
params(dict[str, OWLimParameter]) – -
sesameType(str) – -
title(str) – -
type(str) –
missingDefaults
class-attribute
instance-attribute
missingDefaults: dict[str, OWLimParameter] = field(default_factory=dict)
params
class-attribute
instance-attribute
params: dict[str, OWLimParameter] = field(default_factory=dict)
as_dict
Serialize the dataclass to a Python dict.
Returns:
-
dict(dict) –A dictionary representation of the dataclass suitable for use with httpx POST requests (e.g., via the
jsonparameter).
Examples:
>>> config = RepositoryConfigBeanCreate(
... id="test-repo",
... title="Test Repository",
... type="graphdb:FreeSailRepository",
... sesameType="graphdb:FreeSailRepository",
... location="",
... )
>>> config_dict = config.as_dict()
>>> isinstance(config_dict, dict)
True
Source code in rdflib/contrib/graphdb/models.py
RepositorySizeInfo
dataclass
Methods:
Attributes:
__post_init__
Source code in rdflib/contrib/graphdb/models.py
RepositoryState
Bases: str, Enum
Enumeration for repository state values.
Attributes:
-
INACTIVE– -
RESTARTING– -
RUNNING– -
STARTING– -
STOPPING–
RepositoryStatistics
dataclass
RepositoryStatistics(queries: RepositoryStatisticsQueries, entityPool: RepositoryStatisticsEntityPool, activeTransactions: int, openConnections: int)
Methods:
-
__post_init__– -
from_dict–Create a RepositoryStatistics instance from a dict.
Attributes:
-
activeTransactions(int) – -
entityPool(RepositoryStatisticsEntityPool) – -
openConnections(int) – -
queries(RepositoryStatisticsQueries) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
from_dict
classmethod
from_dict(data: dict) -> RepositoryStatistics
Create a RepositoryStatistics instance from a dict.
This is useful for converting JSON response data into the dataclass structure. The nested ‘queries’ and ‘entityPool’ dicts are automatically converted to their respective dataclass instances.
Parameters:
-
(datadict) –A dict containing the repository statistics data, typically parsed from a JSON response.
Returns:
-
RepositoryStatistics–A RepositoryStatistics instance with nested dataclass objects.
Raises:
-
KeyError–If required keys are missing from the input dict.
-
TypeError–If nested dicts cannot be unpacked into their respective dataclass instances.
-
ValueError–If field validation fails in RepositoryStatisticsQueries, RepositoryStatisticsEntityPool, or RepositoryStatistics (e.g., invalid types).
Source code in rdflib/contrib/graphdb/models.py
RepositoryStatisticsEntityPool
dataclass
Methods:
Attributes:
-
epoolReads(int) – -
epoolSize(int) – -
epoolWrites(int) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
RepositoryStatisticsQueries
dataclass
Methods:
Attributes:
-
slow(int) – -
suboptimal(int) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
ServerImportBody
dataclass
ServerImportBody(fileNames: list[str], importSettings: ImportSettings | None = None)
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
fileNames(list[str]) – -
importSettings(ImportSettings | None) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
SnapshotOptionsBean
dataclass
SnapshotOptionsBean(withRepositoryData: bool, withSystemData: bool, cleanDataDir: bool, repositories: list[str] | None = None)
Methods:
Attributes:
-
cleanDataDir(bool) – -
repositories(list[str] | None) – -
withRepositoryData(bool) – -
withSystemData(bool) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
StatementAccessControlEntry
dataclass
StatementAccessControlEntry(scope: Literal['statement'], policy: Literal['allow', 'deny', 'abstain'], role: str, operation: Literal['read', 'write', '*'], subject: Literal['*'] | URIRef, predicate: Literal['*'] | URIRef, object: Literal['*'] | URIRef | Literal, graph: Literal['*', 'named', 'default'] | URIRef)
Bases: AccessControlEntry
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
graph(Literal['*', 'named', 'default'] | URIRef) – -
object(Literal['*'] | URIRef | Literal) – -
operation(Literal['read', 'write', '*']) – -
policy(Literal['allow', 'deny', 'abstain']) – -
predicate(Literal['*'] | URIRef) – -
role(str) – -
scope(Literal['statement']) – -
subject(Literal['*'] | URIRef) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
as_dict
Source code in rdflib/contrib/graphdb/models.py
StructuresStatistics
dataclass
Methods:
Attributes:
__post_init__
Source code in rdflib/contrib/graphdb/models.py
SystemAccessControlEntry
dataclass
SystemAccessControlEntry(scope: Literal['system'], policy: Literal['allow', 'deny', 'abstain'], role: str, operation: Literal['read', 'write', '*'])
Bases: AccessControlEntry
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
operation(Literal['read', 'write', '*']) – -
policy(Literal['allow', 'deny', 'abstain']) – -
role(str) – -
scope(Literal['system']) –
__post_init__
TopologyStatus
dataclass
Methods:
Attributes:
-
primaryTags(dict[str, Any]) – -
state(str) –
__post_init__
Source code in rdflib/contrib/graphdb/models.py
User
dataclass
User(username: str, password: str, dateCreated: int, grantedAuthorities: list[str] = list(), appSettings: dict[str, Any] = dict(), gptThreads: list[Any] = list())
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
appSettings(dict[str, Any]) – -
dateCreated(int) – -
gptThreads(list[Any]) – -
grantedAuthorities(list[str]) – -
password(str) – -
username(str) –
appSettings
class-attribute
instance-attribute
grantedAuthorities
class-attribute
instance-attribute
__post_init__
Source code in rdflib/contrib/graphdb/models.py
UserCreate
dataclass
UserCreate(username: str, password: str, grantedAuthorities: list[str] = list(), appSettings: dict[str, Any] = dict(), gptThreads: list[Any] = list())
Dataclass for creating a new user in GraphDB.
Unlike User, this class does not include dateCreated since
GraphDB automatically assigns this value when the user is created.
Methods:
-
__post_init__– -
as_dict–
Attributes:
-
appSettings(dict[str, Any]) – -
gptThreads(list[Any]) – -
grantedAuthorities(list[str]) – -
password(str) – -
username(str) –
appSettings
class-attribute
instance-attribute
grantedAuthorities
class-attribute
instance-attribute
__post_init__
Source code in rdflib/contrib/graphdb/models.py
UserUpdate
dataclass
UserUpdate(password: str = '', appSettings: dict[str, Any] = dict(), gptThreads: list[Any] = list())
Methods:
-
as_dict–
Attributes:
-
appSettings(dict[str, Any]) – -
gptThreads(list[Any]) – -
password(str) –