Skip to content

Commit

Permalink
Include term superclasses relations in kb
Browse files Browse the repository at this point in the history
  • Loading branch information
Shalsh23 committed Mar 27, 2020
1 parent 645bad1 commit 224953b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/org/phenoscape/owl/build/PhenoscapeKB.scala
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ object PhenoscapeKB extends KnowledgeBaseBuilder {

step("Querying entities and qualities")
val coreReasoner = reasoner(Set(uberon, cl, pato, bspo, phenoscapeVocab).flatMap(_.axioms))
val anatomicalEntities = coreReasoner.getSubClasses(Class(Vocab.ANATOMICAL_ENTITY), false).getFlattened.asScala.filterNot(_.isOWLNothing) + Class(Vocab.ANATOMICAL_ENTITY)
val anatomicalEntities = coreReasoner.getSubClasses(Class(Vocab.ANATOMICAL_ENTITY), false).getFlattened.asScala.filterNot(_.isOWLNothing) ++ coreReasoner.getSuperClasses(Class(Vocab.ANATOMICAL_ENTITY), false).getFlattened.asScala.filterNot(_.isOWLThing) + Class(Vocab.ANATOMICAL_ENTITY)
val qualities = coreReasoner.getSubClasses(Class(Vocab.QUALITY), false).getFlattened.asScala.filterNot(_.isOWLNothing) + Class(Vocab.QUALITY)
coreReasoner.dispose()

Expand Down

0 comments on commit 224953b

Please sign in to comment.