aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/triple_store
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2022-12-18 14:16:06 +0100
committerMatthias Baumgartner <dev@igsor.net>2022-12-18 14:16:06 +0100
commita5ce14c8bbd55f4a078ceea9384cda56bf42a18b (patch)
tree392381e735aeb466589eabcedfd8cd16bdf6e724 /bsfs/triple_store
parente19c8f9d0818a147832df0945188ea14de9c7690 (diff)
downloadbsfs-a5ce14c8bbd55f4a078ceea9384cda56bf42a18b.tar.gz
bsfs-a5ce14c8bbd55f4a078ceea9384cda56bf42a18b.tar.bz2
bsfs-a5ce14c8bbd55f4a078ceea9384cda56bf42a18b.zip
SparqlStore.exists bugfix
Diffstat (limited to 'bsfs/triple_store')
-rw-r--r--bsfs/triple_store/sparql.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bsfs/triple_store/sparql.py b/bsfs/triple_store/sparql.py
index 23059f7..7516dff 100644
--- a/bsfs/triple_store/sparql.py
+++ b/bsfs/triple_store/sparql.py
@@ -174,10 +174,8 @@ class SparqlStore(base.TripleStoreBase):
self,
node_type: bsc.Node,
guids: typing.Iterable[URI],
- ):
- """
- """
- return {subj for subj in guids if self._has_type(subj, node_type)}
+ ) -> typing.Iterable[URI]:
+ return (subj for subj in guids if self._has_type(subj, node_type))
def create(
self,