diff --git a/ontopy/factpluspluswrapper/factppgraph.py b/ontopy/factpluspluswrapper/factppgraph.py index 92fd47732..6ace01775 100644 --- a/ontopy/factpluspluswrapper/factppgraph.py +++ b/ontopy/factpluspluswrapper/factppgraph.py @@ -97,7 +97,11 @@ def clean_base(self): `base_iri`. """ inferred = self.inferred - for subject, predicate, obj in inferred.triples( + for ( + subject, + predicate, + obj, + ) in inferred.triples( # pylint: disable=not-an-iterable (None, RDF.type, OWL.Ontology) ): inferred.remove((subject, predicate, obj)) diff --git a/ontopy/factpluspluswrapper/sync_factpp.py b/ontopy/factpluspluswrapper/sync_factpp.py index e92b2b906..ec8038214 100644 --- a/ontopy/factpluspluswrapper/sync_factpp.py +++ b/ontopy/factpluspluswrapper/sync_factpp.py @@ -87,7 +87,13 @@ def sync_reasoner_factpp( new_equivs = defaultdict(list) entity_2_type = {} - for subject, predicate, obj in graph2.triples((None, None, None)): + for ( + subject, + predicate, + obj, + ) in graph2.triples( # pylint: disable=not-an-iterable + (None, None, None) + ): if ( isinstance(subject, URIRef) and predicate in OWL_2_TYPE