Hi,when I use SemanticLocalityModuleExtractor, I get an error:
Exception in thread "main" java.lang.IllegalArgumentException: The given locality class must be one of BOTTOM or TOP.
When I debugged, I found such a judgment in the SemanticLocalityEvaluator:
if (localityClass != LocalityClass.BOTTOM || localityClass != LocalityClass.TOP) { throw new IllegalArgumentException( "The given locality class must be one of BOTTOM or TOP"); } ,
I don't quite understand why localityClass needs to have two parameters. Below is the line of code I wrote.
SemanticLocalityModuleExtractor see = new SemanticLocalityModuleExtractor(LocalityClass.BOTTOM,s,owlOntologyManager,structuralReasonerFactory);Stream<OWLAxiom> owlAxiomSet = see.extract(stream);
I am using version 5.1.19.Thanks for your help.
Hi,when I use SemanticLocalityModuleExtractor, I get an error:
Exception in thread "main" java.lang.IllegalArgumentException: The given locality class must be one of BOTTOM or TOP.
When I debugged, I found such a judgment in the SemanticLocalityEvaluator:if (localityClass != LocalityClass.BOTTOM || localityClass != LocalityClass.TOP) { throw new IllegalArgumentException( "The given locality class must be one of BOTTOM or TOP"); }
, I don't quite understand why localityClass needs to have two parameters. Below is the line of code I wrote.SemanticLocalityModuleExtractor see = new SemanticLocalityModuleExtractor(LocalityClass.BOTTOM,s,owlOntologyManager,structuralReasonerFactory);
Stream<OWLAxiom> owlAxiomSet = see.extract(stream);
I am using version 5.1.19.Thanks for your help.