org.dllearner.utilities.owl
Class RoleComparator
java.lang.Object
org.dllearner.utilities.owl.RoleComparator
- All Implemented Interfaces:
- Comparator<PropertyExpression>
public class RoleComparator
- extends Object
- implements Comparator<PropertyExpression>
Compares two property expressions. The order is:
datatype properties first, then inverse object properties, then
object properties. For equal types, the URI or toString (inverses)
is used to fix an order.
- Author:
- Jens Lehmann
RoleComparator
public RoleComparator()
compare
public int compare(PropertyExpression r1,
PropertyExpression r2)
- Specified by:
compare in interface Comparator<PropertyExpression>
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann