bsfs.graph.ac.null module#

class bsfs.graph.ac.null.NullAC(backend: TripleStoreBase, user: URI)#

Bases: AccessControlBase

The NULL access control implements a dummy policy that allows any action to any user.

create(node_type: Node, guids: Iterable[URI])#

Perform post-creation operations on nodes, e.g. ownership information.

createable(node_type: Node, guids: Iterable[URI]) Iterable[URI]#

Return nodes that are allowed to be created.

fetch_read(node_type: Node, query: FetchExpression) FetchExpression#

Re-write a fetch query to get (i.e, read) values for node_type nodes.

filter_read(node_type: Node, query: FilterExpression | None) FilterExpression | None#

Re-write a filter query to get (i.e., read) node_type nodes.

is_protected_predicate(pred: Predicate) bool#

Return True if a predicate cannot be modified manually.

Return nodes for which outbound links can be written.

Return nodes for which inbound links can be written.

write_literal(node_type: Node, guids: Iterable[URI]) Iterable[URI]#

Return nodes to which literals can be attached.