在下面的代码中,我试图了解类表达式是如何最终获得的,但并没有真正理解重点。
ShortFormProvider shortFormProvider = new SimpleShortFormProvider();
ManchesterOWLSyntaxEditorParser parser = new ManchesterOWLSyntaxEditorParser(schema.getFactory(), query);
parser.setDefaultOntology(schema.getSchema());
Set<OWLOntology> importsClosure = schema.getSchema().getImportsClosure();
BidirectionalShortFormProvider bidiShortFormProvider = new BidirectionalShortFormProviderAdapter(schema.getSchema().getOWLOntologyManager(),importsClosure, shortFormProvider);
OWLEntityChecker entityChecker = new ShortFormEntityChecker(bidiShortFormProvider);
parser.setOWLEntityChecker(entityChecker);
OWLClassExpression classExpression;
classExpression = parser.parseClassExpression();
我主要被困在shortformprovider
和bidirectionalshortform
提供者上。它们的作用是什么?有人可以帮助我理解这一点吗?