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

Examples of edu.stanford.bmir.protege.web.shared.frame.PropertyValue


                                                    OWLAPIProject project) {
        List<PropertyValue> result = Lists.newArrayList(propertyValues);
        for (int i = 0; i < propertyValues.size(); i++) {
            for (int j = 0; j < propertyValues.size(); j++) {
                if (i != j && result.get(i) != null && result.get(j) != null) {
                    PropertyValue propertyValueA = propertyValues.get(i);
                    PropertyValue propertyValueB = propertyValues.get(j);
                    PropertyValueSubsumptionChecker subsumptionChecker = getPropertyValueSubsumptionChecker(ontology,
                            project);
                    if (subsumptionChecker.isSubsumedBy(propertyValueA, propertyValueB)) {
                        // Don't show B because this is more specific!
                        result.set(j, null);
View Full Code Here


        Integer index2 = getPropertyIndex(o2.getProperty());
        if(!index1.equals(index2)) {
            return index1 - index2;
        }
        PropertyValueComparator propertyValueComparator = new PropertyValueComparator(project);
        PropertyValue propertyValue1 = new PropertyAnnotationValue(o1.getProperty(), o1.getValue(), PropertyValueState.ASSERTED);
        PropertyValue propertyValue2 = new PropertyAnnotationValue(o2.getProperty(), o2.getValue(), PropertyValueState.ASSERTED);
        return propertyValueComparator.compare(propertyValue1, propertyValue2);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.frame.PropertyValue

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.