aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/triple_store/base.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2022-12-22 20:29:57 +0100
committerMatthias Baumgartner <dev@igsor.net>2022-12-22 20:29:57 +0100
commit73e39cb4967949025aefe874f401e27b0abb772c (patch)
tree6bca3608c412a04c477c48cd9ccccaa4e37f5cca /bsfs/triple_store/base.py
parent383fa8fd5c2e4b67089b4c5b654ebade51382f2c (diff)
downloadbsfs-73e39cb4967949025aefe874f401e27b0abb772c.tar.gz
bsfs-73e39cb4967949025aefe874f401e27b0abb772c.tar.bz2
bsfs-73e39cb4967949025aefe874f401e27b0abb772c.zip
filter ast parser and get method in sparql store
Diffstat (limited to 'bsfs/triple_store/base.py')
-rw-r--r--bsfs/triple_store/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bsfs/triple_store/base.py b/bsfs/triple_store/base.py
index 5ff9523..7e03714 100644
--- a/bsfs/triple_store/base.py
+++ b/bsfs/triple_store/base.py
@@ -113,9 +113,11 @@ class TripleStoreBase(abc.ABC):
def get(
self,
node_type: _schema.Node,
- query: ast.filter.FilterExpression,
+ query: typing.Optional[ast.filter.FilterExpression] = None,
) -> typing.Iterator[URI]:
- """Return guids of nodes of type *node_type* that match the *query*."""
+ """Return guids of nodes of type *node_type* that match the *query*.
+ Return all guids of the respective type if *query* is None.
+ """
@abc.abstractmethod
def exists(