@Override public int compareTo(@Nullable OWLObject o) { checkNotNull(o); assert o != null; if (o == this || equals(o)) { return 0; } if (!o.isIRI()) { return -1; } IRI other = (IRI) o; int diff = namespace.compareTo(other.namespace); if (diff != 0) { return diff; } return remainder.compareTo(other.remainder); }
@Override public int compareTo(@Nullable OWLObject o) { checkNotNull(o); assert o != null; if (o == this || equals(o)) { return 0; } if (!o.isIRI()) { return -1; } IRI other = (IRI) o; int diff = namespace.compareTo(other.namespace); if (diff != 0) { return diff; } return remainder.compareTo(other.remainder); }
@Override public int compareTo(@Nullable OWLObject o) { checkNotNull(o); assert o != null; if (o == this || equals(o)) { return 0; } if (!o.isIRI()) { return -1; } IRI other = (IRI) o; int diff = namespace.compareTo(other.namespace); if (diff != 0) { return diff; } return remainder.compareTo(other.remainder); }
if (obj instanceof OWLNamedObject) { iriObj = ((OWLNamedObject) obj).getIRI(); } else if (obj.isIRI()) { iriObj = (IRI) obj;
if (obj instanceof OWLNamedObject) { iriObj = ((OWLNamedObject) obj).getIRI(); } else if (obj.isIRI()) { iriObj = (IRI) obj;
if (obj instanceof OWLNamedObject) { iriObj = ((OWLNamedObject) obj).getIRI(); } else if (obj.isIRI()) { iriObj = (IRI) obj;
if (obj instanceof OWLNamedObject) { iriObj = ((OWLNamedObject) obj).getIRI(); } else if (obj.isIRI()) { iriObj = (IRI) obj;
/** * Obtains the rendering of the specified object. If the object is a constant then the rendering * is equal to the literal value, if the object is an individual then the rendering is equal to * the rendering of the individual as provided by the alternate short form provider * * @param object The object to the rendered * @return The rendering of the object. */ private String getRendering(OWLObject object) { // We return the literal value of constants or use the alternate // short form provider to render individuals. if (object instanceof OWLLiteral) { // TODO refactor this method to use the annotation value visitor return literalRenderer.visit((OWLLiteral) object); } else if (object.isIRI()) { return alternateIRIShortFormProvider.getShortForm((IRI) object); } else { return alternateShortFormProvider.getShortForm((OWLEntity) object); } }
/** * Obtains the rendering of the specified object. If the object is a constant then the rendering * is equal to the literal value, if the object is an individual then the rendering is equal to * the rendering of the individual as provided by the alternate short form provider * * @param object The object to the rendered * @return The rendering of the object. */ private String getRendering(OWLObject object) { // We return the literal value of constants or use the alternate // short form provider to render individuals. if (object instanceof OWLLiteral) { // TODO refactor this method to use the annotation value visitor return literalRenderer.visit((OWLLiteral) object); } else if (object.isIRI()) { return alternateIRIShortFormProvider.getShortForm((IRI) object); } else { return alternateShortFormProvider.getShortForm((OWLEntity) object); } }
/** * Obtains the rendering of the specified object. If the object is a constant then the rendering * is equal to the literal value, if the object is an individual then the rendering is equal to * the rendering of the individual as provided by the alternate short form provider * * @param object The object to the rendered * @return The rendering of the object. */ private String getRendering(OWLObject object) { // We return the literal value of constants or use the alternate // short form provider to render individuals. if (object instanceof OWLLiteral) { // TODO refactor this method to use the annotation value visitor return literalRenderer.visit((OWLLiteral) object); } else if (object.isIRI()) { return alternateIRIShortFormProvider.getShortForm((IRI) object); } else { return alternateShortFormProvider.getShortForm((OWLEntity) object); } }
@Override public void handleTriple(IRI s, IRI p, IRI o) { IRI source = source(s); IRI property = property(s); OWLObject target = target(s); anns(s); if (target instanceof OWLLiteral && (!isStrict() || isDPLax(property))) { translateNegativeDataPropertyAssertion(s, p, o, source, property, (OWLLiteral) target, anns()); } else if (target.isIRI() && (!isStrict() || isOpLax(property))) { translateNegativeObjectPropertyAssertion(s, p, o, source, property, (IRI) target, anns()); } // TODO LOG ERROR }
@Override public void handleTriple(IRI s, IRI p, IRI o) { IRI source = source(s); IRI property = property(s); OWLObject target = target(s); anns(s); if (target instanceof OWLLiteral && (!isStrict() || isDPLax(property))) { translateNegativeDataPropertyAssertion(s, p, o, source, property, (OWLLiteral) target, anns()); } else if (target.isIRI() && (!isStrict() || isOpLax(property))) { translateNegativeObjectPropertyAssertion(s, p, o, source, property, (IRI) target, anns()); } // TODO LOG ERROR }
@Override public void handleTriple(IRI s, IRI p, IRI o) { IRI source = source(s); IRI property = property(s); OWLObject target = target(s); anns(s); if (target instanceof OWLLiteral && (!isStrict() || isDPLax(property))) { translateNegativeDataPropertyAssertion(s, p, o, source, property, (OWLLiteral) target, anns()); } else if (target.isIRI() && (!isStrict() || isOpLax(property))) { translateNegativeObjectPropertyAssertion(s, p, o, source, property, (IRI) target, anns()); } // TODO LOG ERROR }
@Override public void handleTriple(IRI s, IRI p, IRI o) { IRI source = source(s); IRI property = property(s); OWLObject target = target(s); anns(s); if (target instanceof OWLLiteral && (!isStrict() || isDPLax(property))) { translateNegativeDataPropertyAssertion(s, p, o, source, property, (OWLLiteral) target, anns()); } else if (target.isIRI() && (!isStrict() || isOpLax(property))) { translateNegativeObjectPropertyAssertion(s, p, o, source, property, (IRI) target, anns()); } // TODO LOG ERROR }
return getIdentifier(((OWLEntity) obj).getIRI()); if (obj.isIRI()) { return getIdentifier((IRI) obj);
return getIdentifier(((OWLEntity) obj).getIRI()); if (obj.isIRI()) { return getIdentifier((IRI) obj);
return getIdentifier(((OWLEntity) obj).getIRI()); if (obj.isIRI()) { return getIdentifier((IRI) obj);
return getIdentifier(((OWLEntity) obj).getIRI()); if (obj.isIRI()) { return getIdentifier((IRI) obj);