Package org.semanticweb.owlapi.util

Examples of org.semanticweb.owlapi.util.OWLObjectTypeIndexProvider


    @SuppressWarnings("null")
    @Override
    public int compareTo(OWLObject o) {
        if (!(o instanceof OWLDatatype)) {
            OWLObjectTypeIndexProvider provider = new OWLObjectTypeIndexProvider();
            return provider.getTypeIndex(o);
        }
        OWLDatatype other = (OWLDatatype) o;
        return getIRI().compareTo(other.getIRI());
    }
View Full Code Here


    //            int axDiff = thisSubj.compareTo(otherSubj);
    //            if (axDiff != 0) {
    //                return axDiff;
    //            }
    //        }
    OWLObjectTypeIndexProvider typeIndexProvider = new OWLObjectTypeIndexProvider();
    int thisTypeIndex = typeIndexProvider.getTypeIndex(this);
    int otherTypeIndex = typeIndexProvider.getTypeIndex(o);
    int diff = thisTypeIndex - otherTypeIndex;
    if (diff == 0) {
      // Objects are the same type
      return compareObjectOfSameType(o);
    } else {
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.util.OWLObjectTypeIndexProvider

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.