Java 类org.semanticweb.owlapi.model.OWLObjectPropertyCharacteristicAxiom 实例源码

项目:owltools    文件:OWLInAboxTranslator.java   
/**
 * Transitive(R) ==> Transitive(R')
 * 
 * @param ax
 */
private void tr(OWLObjectPropertyCharacteristicAxiom ax) {
    if (ax instanceof OWLTransitiveObjectPropertyAxiom) {
        OWLObjectPropertyExpression pt = trTypeLevel(ax.getProperty());
        if (pt instanceof OWLObjectProperty) {
            add(getOWLDataFactory().getOWLTransitiveObjectPropertyAxiom(pt));
        }
    }
    add(ax); // pass-through
}
项目:owlapi-gwt    文件:OWLObjectPropertyCharacteristicAxiomImpl.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof OWLObjectPropertyCharacteristicAxiom)) {
        return false;
    }
    return ((OWLObjectPropertyCharacteristicAxiom) obj).getProperty()
            .equals(property);
}
项目:owlapi-gwt    文件:OWLObjectPropertyCharacteristicAxiomImpl.java   
@Override
protected int compareObjectOfSameType(OWLObject object) {
    return property
            .compareTo(((OWLObjectPropertyCharacteristicAxiom) object)
                    .getProperty());
}