Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence false negative from pylint on github #436

Merged
merged 3 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ontopy/factpluspluswrapper/factppgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
8 changes: 7 additions & 1 deletion ontopy/factpluspluswrapper/sync_factpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down