Skip to content

Commit 55b64f9

Browse files
committed
Also check if there are any additional restrictions before revisiting parents/children
1 parent 2e41a42 commit 55b64f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ubic/basecode/ontology/jena/JenaUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ private static boolean shouldRevisit( Collection<OntClass> terms, boolean direct
152152
return !direct
153153
&& !terms.isEmpty()
154154
&& additionalRestrictions != null
155+
&& !additionalRestrictions.isEmpty()
155156
&& model.getReasoner() != null
156157
&& ( !supportsSubClassInference( model ) || !supportsAdditionalRestrictionsInference( model ) );
157158
}

0 commit comments

Comments
 (0)