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

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


        Set<PropertyAnnotationValue> propertyValues = new HashSet<PropertyAnnotationValue>();
        Set<OWLEntity> domains = new HashSet<OWLEntity>();
        Set<OWLEntity> ranges = new HashSet<OWLEntity>();
        for(OWLOntology ont : rootOntology.getImportsClosure()) {
            for(OWLAnnotationAssertionAxiom ax : ont.getAnnotationAssertionAxioms(subject.getIRI())) {
                propertyValues.add(new PropertyAnnotationValue(ax.getProperty(), ax.getValue(), PropertyValueState.ASSERTED));
            }
            for(OWLAnnotationPropertyDomainAxiom ax : ont.getAnnotationPropertyDomainAxioms(subject)) {
                domains.addAll(rootOntology.getEntitiesInSignature(ax.getDomain()));
            }
            for(OWLAnnotationPropertyRangeAxiom ax : ont.getAnnotationPropertyRangeAxioms(subject)) {
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

    @Override
    public void setValue(Set<OWLAnnotation> object) {
        List<PropertyAnnotationValue> values = new ArrayList<PropertyAnnotationValue>();
        for(OWLAnnotation annotation : object) {
            values.add(new PropertyAnnotationValue(annotation.getProperty(), annotation.getValue(), PropertyValueState.ASSERTED));
        }
        editor.setValue(new PropertyValueList(values));
    }
View Full Code Here

TOP

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

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.