use of edu.stanford.bmir.protege.web.shared.frame.GetManchesterSyntaxFrameResult in project webprotege by protegeproject.
the class GetManchesterSyntaxFrameActionHandler method execute.
@Nonnull
@Override
public GetManchesterSyntaxFrameResult execute(@Nonnull GetManchesterSyntaxFrameAction action, @Nonnull ExecutionContext executionContext) {
StringWriter writer = new StringWriter();
EscapingShortFormProvider entityShortFormProvider = new EscapingShortFormProvider(shortFormProvider);
final ManchesterOWLSyntaxFrameRenderer frameRenderer = new ManchesterOWLSyntaxFrameRenderer(importsClosure.getImportsClosure(), writer, entityShortFormProvider);
frameRenderer.setOntologyIRIShortFormProvider(ontologyIRIShortFormProvider);
frameRenderer.setRenderExtensions(true);
// frameRenderer.setRenderOntologyLists(true);
// frameRenderer.setUseTabbing(true);
// frameRenderer.setUseWrapping(true);
frameRenderer.writeFrame(action.getSubject());
// frameRenderer.writeRulesContainingPredicate(action.getSubject());
return new GetManchesterSyntaxFrameResult(writer.getBuffer().toString());
}
Aggregations