protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationPropertyRangeAxiom other = (OWLAnnotationPropertyRangeAxiom) object; int diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return range.compareTo(other.getRange()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationPropertyRangeAxiom other = (OWLAnnotationPropertyRangeAxiom) object; int diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return range.compareTo(other.getRange()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationPropertyDomainAxiom other = (OWLAnnotationPropertyDomainAxiom) object; int diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return domain.compareTo(other.getDomain()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationPropertyDomainAxiom other = (OWLAnnotationPropertyDomainAxiom) object; int diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return domain.compareTo(other.getDomain()); }
protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationPropertyDomainAxiom other = (OWLAnnotationPropertyDomainAxiom) object; int diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return domain.compareTo(other.getDomain()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationPropertyRangeAxiom other = (OWLAnnotationPropertyRangeAxiom) object; int diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return range.compareTo(other.getRange()); }
protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationAssertionAxiom other = (OWLAnnotationAssertionAxiom) object; int diff = 0; diff = subject.compareTo(other.getSubject()); if (diff != 0) { return diff; } diff = property.compareTo(other.getProperty()); if(diff != 0) { return diff; } return value.compareTo(other.getValue()); }
/** * Write annotations on the ontology. */ protected void processOntologyAnnotations() { for(OWLOntology o : ontologies) { Set<OWLAnnotation> annotations = o.getAnnotations(); for (OWLAnnotation ax : annotations) { if (ax.getProperty().compareTo(label) != 0) continue; OWLAnnotationValue value = ax.getValue(); FuzzyLogic logic = Parser.getLogic(value.toString()); writeFuzzyLogic(logic); } } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationAssertionAxiom other = (OWLAnnotationAssertionAxiom) object; int diff = subject.compareTo(other.getSubject()); if (diff != 0) { return diff; } diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return value.compareTo(other.getValue()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotation other = (OWLAnnotation) object; int diff = getProperty().compareTo(other.getProperty()); if (diff != 0) { return diff; } else { return getValue().compareTo(other.getValue()); } }
protected int compareObjectOfSameType(OWLObject object) { OWLAnnotation other = (OWLAnnotation) object; int diff = getProperty().compareTo(other.getProperty()); if (diff != 0) { return diff; } else { return getValue().compareTo(other.getValue()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotation other = (OWLAnnotation) object; int diff = getProperty().compareTo(other.getProperty()); if (diff != 0) { return diff; } else { return getValue().compareTo(other.getValue()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotationAssertionAxiom other = (OWLAnnotationAssertionAxiom) object; int diff = 0; diff = subject.compareTo(other.getSubject()); if (diff != 0) { return diff; } diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return value.compareTo(other.getValue()); }