aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/tools/pipeline.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsie/tools/pipeline.py')
-rw-r--r--bsie/tools/pipeline.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsie/tools/pipeline.py b/bsie/tools/pipeline.py
index 8e1c992..da422c0 100644
--- a/bsie/tools/pipeline.py
+++ b/bsie/tools/pipeline.py
@@ -70,6 +70,10 @@ class Pipeline():
and self._prefix == other._prefix \
and self._ext2rdr == other._ext2rdr
+ def predicates(self) -> typing.Iterator[_schema.Predicate]:
+ """Return the predicates that are extracted from a file."""
+ return iter({pred for ext in self._ext2rdr for pred in ext.predicates()})
+
def __call__(
self,
path: URI,