Search in sources :

Example 1 with GetClassFrameResult

use of edu.stanford.bmir.protege.web.shared.frame.GetClassFrameResult in project webprotege by protegeproject.

the class GetClassFrameActionHandler method execute.

@Nonnull
@Override
public GetClassFrameResult execute(@Nonnull GetClassFrameAction action, @Nonnull ExecutionContext executionContext) {
    OWLClass subject = action.getSubject();
    FrameActionResultTranslator<ClassFrame, OWLClassData> translator = new FrameActionResultTranslator<>(renderingManager, translatorProvider.get(), renderingManager.getRendering(subject));
    LabelledFrame<ClassFrame> f = translator.doIT();
    ProjectId projectId = action.getProjectId();
    logger.info(BROWSING, "{} {} retrieved Class frame for {} ({})", projectId, executionContext.getUserId(), subject, f.getDisplayName());
    return new GetClassFrameResult(f);
}
Also used : OWLClassData(edu.stanford.bmir.protege.web.shared.entity.OWLClassData) GetClassFrameResult(edu.stanford.bmir.protege.web.shared.frame.GetClassFrameResult) ClassFrame(edu.stanford.bmir.protege.web.shared.frame.ClassFrame) ProjectId(edu.stanford.bmir.protege.web.shared.project.ProjectId) OWLClass(org.semanticweb.owlapi.model.OWLClass) Nonnull(javax.annotation.Nonnull)

Aggregations

OWLClassData (edu.stanford.bmir.protege.web.shared.entity.OWLClassData)1 ClassFrame (edu.stanford.bmir.protege.web.shared.frame.ClassFrame)1 GetClassFrameResult (edu.stanford.bmir.protege.web.shared.frame.GetClassFrameResult)1 ProjectId (edu.stanford.bmir.protege.web.shared.project.ProjectId)1 Nonnull (javax.annotation.Nonnull)1 OWLClass (org.semanticweb.owlapi.model.OWLClass)1