diff options
author | Matthias Baumgartner <dev@igsor.net> | 2022-12-22 20:29:57 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2022-12-22 20:29:57 +0100 |
commit | 73e39cb4967949025aefe874f401e27b0abb772c (patch) | |
tree | 6bca3608c412a04c477c48cd9ccccaa4e37f5cca /bsfs/triple_store/base.py | |
parent | 383fa8fd5c2e4b67089b4c5b654ebade51382f2c (diff) | |
download | bsfs-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.py | 6 |
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( |