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

Examples of edu.stanford.bmir.protege.web.shared.frame.ClassFrame$Builder


        for(OWLOntology ont : rootOntology.getImportsClosure()) {
            for(OWLClassAssertionAxiom ax : ont.getClassAssertionAxioms(subject)) {
                if(!ax.getClassExpression().isAnonymous()) {
                    OWLClass type = (OWLClass) ax.getClassExpression();
                    ClassFrameTranslator classFrameTranslator = new ClassFrameTranslator();
                    ClassFrame classFrame = classFrameTranslator.getFrame(type, rootOntology, project);
                    for(PropertyValue propertyValue : classFrame.getPropertyValues()) {
                        // Bit yucky
                        if (!propertyValue.isAnnotation()) {
                            propertyValues.add(propertyValue.setState(PropertyValueState.DERIVED));
                        }
                    }
View Full Code Here


            builder.addPropertyValues(annotations.getValue().get().getPropertyValues());
            builder.addPropertyValues(properties.getValue().get().getPropertyValues());
//            for(OWLClass cls : currentClasses) {
//                builder.addClass(cls);
//            }
            ClassFrame cf = builder.build();
            LabelledFrame<ClassFrame> labelledClassFrame = new LabelledFrame<ClassFrame>(getDisplayName(), cf);
            return Optional.of(labelledClassFrame);
        }
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.frame.ClassFrame$Builder

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.