aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/graph/ac/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsfs/graph/ac/base.py')
-rw-r--r--bsfs/graph/ac/base.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/bsfs/graph/ac/base.py b/bsfs/graph/ac/base.py
index 70475d2..eef444b 100644
--- a/bsfs/graph/ac/base.py
+++ b/bsfs/graph/ac/base.py
@@ -9,7 +9,7 @@ import abc
import typing
# bsfs imports
-from bsfs import schema as _schema
+from bsfs import schema
from bsfs.triple_store import TripleStoreBase
from bsfs.utils import URI
@@ -40,27 +40,27 @@ class AccessControlBase(abc.ABC):
self.__user = URI(user)
@abc.abstractmethod
- def is_protected_predicate(self, pred: _schema.Predicate) -> bool:
+ def is_protected_predicate(self, pred: schema.Predicate) -> bool:
"""Return True if a predicate cannot be modified manually."""
@abc.abstractmethod
- def create(self, node_type: _schema.Node, guids: typing.Iterable[URI]):
+ def create(self, node_type: schema.Node, guids: typing.Iterable[URI]):
"""Perform post-creation operations on nodes, e.g. ownership information."""
@abc.abstractmethod
- def link_from_node(self, node_type: _schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]:
+ def link_from_node(self, node_type: schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]:
"""Return nodes for which outbound links can be written."""
@abc.abstractmethod
- def link_to_node(self, node_type: _schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]:
+ def link_to_node(self, node_type: schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]:
"""Return nodes for which inbound links can be written."""
@abc.abstractmethod
- def write_literal(self, node_type: _schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]:
+ def write_literal(self, node_type: schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]:
"""Return nodes to which literals can be attached."""
@abc.abstractmethod
- def createable(self, node_type: _schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]:
+ def createable(self, node_type: schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]:
"""Return nodes that are allowed to be created."""