From b0e50ebe0a9488c5214246ba0ff955bebca71e36 Mon Sep 17 00:00:00 2001 From: BeritJanssen Date: Wed, 3 Jul 2024 15:07:17 +0200 Subject: [PATCH] fix another typing issue --- ianalyzer_readers/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ianalyzer_readers/extract.py b/ianalyzer_readers/extract.py index 745e387..b014fb5 100644 --- a/ianalyzer_readers/extract.py +++ b/ianalyzer_readers/extract.py @@ -635,7 +635,7 @@ def _apply(self, graph: Graph = None, subject: BNode = None, *nargs, **kwargs) - return [self.get_node_value(node) for node in nodes] return self.get_node_value(nodes[0]) - def _select(self, graph, subject, predicates: Iterable[URIRef]) -> List[Union[Literal | URIRef | BNode]]: + def _select(self, graph, subject, predicates: Iterable[URIRef]) -> List[Union[Literal, URIRef, BNode]]: ''' search in a graph with predicates if more than one predicate is passed, this is a recursive query: the first search result of the query is used as a subject in the next query