Skip to content

Fix for overlapping classes/individuals when running MIREOT extract#710

Merged
jamesaoverton merged 7 commits intomasterfrom
mireot-fix
Jul 30, 2020
Merged

Fix for overlapping classes/individuals when running MIREOT extract#710
jamesaoverton merged 7 commits intomasterfrom
mireot-fix

Conversation

@beckyjackson
Copy link
Contributor

@beckyjackson beckyjackson commented Jul 22, 2020

Resolves #709

  • docs/ have been added/updated
  • tests have been added/updated
  • mvn verify says all tests pass
  • mvn site says all JavaDocs correct
  • CHANGELOG.md has been updated

When an entity is both a class and an individual, ignore the individual and prefer the class. This required a small hack because if you just call OntologyHelper.getEntitiy(ontology, iri) it will not return an entity that occurs as both.

@beckyjackson
Copy link
Contributor Author

Do we want to add a test for this? It works in the example from #709 but that seems like a pretty rare instance (hopefully...).

@jamesaoverton
Copy link
Member

Because it's rare, an automated test is even more important. 😄

@beckyjackson
Copy link
Contributor Author

Makes sense @jamesaoverton - I've added a test in for this

@beckyjackson
Copy link
Contributor Author

Conflicts resolved, is this ready to merge @jamesaoverton ?

@jamesaoverton jamesaoverton merged commit dd4cde8 into master Jul 30, 2020
@jamesaoverton jamesaoverton deleted the mireot-fix branch June 16, 2022 15:53
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.

robot doesn't get pH from current UO by MIREOT

2 participants