Package edu.stanford.bmir.protege.web.shared

Examples of edu.stanford.bmir.protege.web.shared.BrowserTextMap


    @Override
    protected GetObjectResult<LabelledFrame<ObjectPropertyFrame>> execute(GetObjectPropertyFrameAction action, OWLAPIProject project, ExecutionContext executionContext) {
        FrameActionResultTranslator<ObjectPropertyFrame, OWLObjectProperty> translator = new FrameActionResultTranslator<ObjectPropertyFrame, OWLObjectProperty>(action.getSubject(), project, TRANSLATOR);
        LabelledFrame<ObjectPropertyFrame> f = translator.doIT();
        final BrowserTextMap browserTextMap = new BrowserTextMap(f, project.getRenderingManager());
        return new RenderableGetObjectResult<LabelledFrame<ObjectPropertyFrame>>(f, browserTextMap);
    }
View Full Code Here


    @Override
    protected GetObjectResult<LabelledFrame<DataPropertyFrame>> execute(GetDataPropertyFrameAction action, OWLAPIProject project, ExecutionContext executionContext) {
        DataPropertyFrameTranslator translator = new DataPropertyFrameTranslator();
        final DataPropertyFrame frame = translator.getFrame(action.getSubject(), project.getRootOntology(), project);
        String displayName = project.getRenderingManager().getBrowserText(action.getSubject());
        BrowserTextMap btm = BrowserTextMap.build(project.getRenderingManager(), frame.getSignature().toArray());
        return new RenderableGetObjectResult<LabelledFrame<DataPropertyFrame>>(new LabelledFrame<DataPropertyFrame>(displayName, frame), btm);
    }
View Full Code Here

    @Override
    protected GetObjectResult<LabelledFrame<ClassFrame>> execute(GetClassFrameAction action, OWLAPIProject project, ExecutionContext executionContext) {
        FrameActionResultTranslator<ClassFrame, OWLClass> translator = new FrameActionResultTranslator<ClassFrame, OWLClass>(action.getSubject(), project, TRANSLATOR);
        LabelledFrame<ClassFrame> f = translator.doIT();
        final BrowserTextMap browserTextMap = new BrowserTextMap(f, project.getRenderingManager());
        return new RenderableGetObjectResult<LabelledFrame<ClassFrame>>(f, browserTextMap);
    }
View Full Code Here

    }


    private void cacheRenderables(Object result) {
        if (result instanceof HasBrowserTextMap) {
            BrowserTextMap browserTextMap = ((HasBrowserTextMap) result).getBrowserTextMap();
            RenderingServiceManager.getManager().registerEntityData(browserTextMap.getOWLEntityData());
        }
    }
View Full Code Here

        for(OWLOntology ontology : project.getRootOntology().getImportsClosure()) {
            for (OWLAnnotationAssertionAxiom ax : ontology.getAnnotationAssertionAxioms(action.getSubject())) {
                result.add(ax.getAnnotation());
            }
        }
        BrowserTextMap browserTextMap = new BrowserTextMap(result, project.getRenderingManager());
        return new RenderableGetObjectResult<Set<OWLAnnotation>>(result, browserTextMap);
    }
View Full Code Here

        final CreateClassesChangeGenerator gen = new CreateClassesChangeGenerator(action.getBrowserTexts(), Optional.of(action.getSuperClass()));
        ChangeApplicationResult<Set<OWLClass>> result = project.applyChanges(executionContext.getUserId(), gen, createChangeText(project, action));

        Set<OWLClass> createdClasses = result.getSubject().get();

        BrowserTextMap browserTextMap = BrowserTextMap.build(project.getRenderingManager(), action.getSuperClass(), createdClasses);

        return new CreateClassesResult(pathToRoot, createdClasses, browserTextMap);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.BrowserTextMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.