Search in sources :

Example 1 with GetDataPropertyFrameResult

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

the class GetDataPropertyFrameActionHandler method execute.

@Nonnull
@Override
public GetDataPropertyFrameResult execute(@Nonnull GetDataPropertyFrameAction action, @Nonnull ExecutionContext executionContext) {
    DataPropertyFrameTranslator translator = translatorProvider.get();
    final DataPropertyFrame frame = translator.getFrame(renderingManager.getRendering(action.getSubject()));
    String displayName = renderingManager.getBrowserText(action.getSubject());
    logger.info(BROWSING, "{} {} retrieved DataProperty frame for {} ({})", action.getProjectId(), executionContext.getUserId(), action.getSubject(), displayName);
    return new GetDataPropertyFrameResult(new LabelledFrame<>(displayName, frame));
}
Also used : DataPropertyFrame(edu.stanford.bmir.protege.web.shared.frame.DataPropertyFrame) GetDataPropertyFrameResult(edu.stanford.bmir.protege.web.shared.frame.GetDataPropertyFrameResult) Nonnull(javax.annotation.Nonnull)

Aggregations

DataPropertyFrame (edu.stanford.bmir.protege.web.shared.frame.DataPropertyFrame)1 GetDataPropertyFrameResult (edu.stanford.bmir.protege.web.shared.frame.GetDataPropertyFrameResult)1 Nonnull (javax.annotation.Nonnull)1