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

Redundancy stripping #67

Merged
merged 4 commits into from
May 3, 2022
Merged

Redundancy stripping #67

merged 4 commits into from
May 3, 2022

Conversation

hkir-dev
Copy link
Contributor

In relation with this issue: VirtualFlyBrain/vfb-pipeline-dumps#27

Named individuals type redundancy stripping added to query based type listing.
Unit tests fixed.

@hkir-dev hkir-dev requested a review from Robbie1977 March 29, 2022 14:15
@@ -245,6 +245,38 @@ private Set<OWLClass> querySubClasses(OWLOntology o, OWLClass e, boolean direct,

return subClasses;
}

public Set<OWLClass> querySuperClasses(OWLOntology o, OWLClass e, boolean direct, boolean excludeEquivalentClasses) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably missing something, but aren't these edits to methods that do redundancy stripping on classes, when we need to run it on Individuals? I guess OK if test works...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, querySuperClasses method is also used by the queryTypes method (line 560) which decides the types of an individual. When direct parameter passed, it filters redundant super classes.

@hkir-dev hkir-dev merged commit 2ab4997 into migrate_neo4j_hk May 3, 2022
@hkir-dev hkir-dev deleted the redundancy_stripping branch May 3, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants