File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
src/main/java/edu/isi/oba Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -192,15 +192,10 @@ private Map<String, Schema> getDataProperties() {
192
192
}
193
193
194
194
if (inspect ) {
195
- Boolean isFunctional = false ;
195
+ boolean isFunctional = EntitySearcher .isFunctional (odp , this .ontologies .stream ());
196
+
196
197
for (OWLOntology ontology : this .ontologies ) {
197
198
ranges .addAll (ontology .getDataPropertyRangeAxioms (odp ));
198
- functional = ontology .getAxioms (AxiomType .FUNCTIONAL_DATA_PROPERTY );
199
- for (OWLFunctionalDataPropertyAxiom functionalAxiom :functional ) {
200
- if (functionalAxiom .getProperty ().equals (odp )) {
201
- isFunctional = true ;
202
- }
203
- }
204
199
}
205
200
206
201
if (ranges .isEmpty ()) {
@@ -321,17 +316,11 @@ private Map<String, Schema> getObjectProperties() {
321
316
}
322
317
323
318
if (inspect ) {
324
- Boolean isFunctional = false ;
319
+ boolean isFunctional = EntitySearcher .isFunctional (odp , this .ontologies .stream ());
320
+
325
321
Set <OWLObjectPropertyRangeAxiom > ranges = new HashSet <>();
326
322
for (OWLOntology ontology : this .ontologies ) {
327
323
ranges .addAll (ontology .getObjectPropertyRangeAxioms (odp ));
328
-
329
- functional = ontology .getAxioms (AxiomType .FUNCTIONAL_OBJECT_PROPERTY );
330
- for (OWLFunctionalObjectPropertyAxiom functionalAxiom :functional ) {
331
- if (functionalAxiom .getProperty ().equals (odp )) {
332
- isFunctional = true ;
333
- }
334
- }
335
324
}
336
325
337
326
if (ranges .isEmpty ()) {
You can’t perform that action at this time.
0 commit comments