/** * @param iri the iri to shorten * @return the short form */ public String getShortForm(IRI iri) { return iriShortFormProvider.getShortForm(iri); }
/** * @param iri the iri to shorten * @return the short form */ public String getShortForm(IRI iri) { return iriShortFormProvider.getShortForm(iri); }
/** * @param iri the iri to shorten * @return the short form */ public String getShortForm(IRI iri) { return iriShortFormProvider.getShortForm(iri); }
/** * @param iri the iri to shorten * @return the short form */ public String getShortForm(IRI iri) { return iriShortFormProvider.getShortForm(iri); }
public String getShortForm(IRI iri) { return iriShortFormProvider.getShortForm(iri); }
/** * @param iri * the iri to shorten * @return the short form */ public String getShortForm(@Nonnull IRI iri) { return iriShortFormProvider.getShortForm(iri); }
/** * Translate the {@link IRI} into the short form as expected by the parser. * * @param iri * @return short form */ public String getId(IRI iri){ synchronized (disposedLock) { if (disposed) { throw new RuntimeException("Illegal State: Trying to use an disposed instance."); } } return iriShortFormProvider.getShortForm(iri); }
@Override public void visit(IRI iri) { write(iriShortFormProvider.getShortForm(iri)); } };
@Override public int compare(@Nullable IRI o1, @Nullable IRI o2) { return iriShortFormProvider.getShortForm(verifyNotNull(o1)) .compareTo(iriShortFormProvider.getShortForm(verifyNotNull(o2))); } }
/** * Translate the {@link IRI} into the short form as expected by the parser. * * @param iri iri * @return short form */ public String getId(IRI iri) { if (disposed.get()) { throw new OWLRuntimeException("Illegal State: Trying to use an disposed instance."); } return iriShortFormProvider.getShortForm(iri); }
@Override public void visit(SWRLVariable node) { String iriShortForm = iriSfp.getShortForm(node.getIRI()); stringBuilder.append("?"); stringBuilder.append(iriShortForm); }
@Override public int compare(@Nullable IRI o1, @Nullable IRI o2) { return iriShortFormProvider.getShortForm(verifyNotNull(o1)) .compareTo(iriShortFormProvider.getShortForm(verifyNotNull(o2))); } }
@Override public void visit(IRI iri) { write(iriShortFormProvider.getShortForm(iri)); } };
/** * Translate the {@link IRI} into the short form as expected by the parser. * * @param iri iri * @return short form */ public String getId(IRI iri) { if (disposed.get()) { throw new OWLRuntimeException("Illegal State: Trying to use an disposed instance."); } return iriShortFormProvider.getShortForm(iri); }
/** * Translate the {@link IRI} into the short form as expected by the parser. * * @param iri iri * @return short form */ public String getId(IRI iri) { if (disposed.get()) { throw new OWLRuntimeException("Illegal State: Trying to use an disposed instance."); } return iriShortFormProvider.getShortForm(iri); }
/** * Translate the {@link IRI} into the short form as expected by the parser. * * @param iri iri * @return short form */ public String getId(IRI iri) { if (disposed.get()) { throw new OWLRuntimeException("Illegal State: Trying to use an disposed instance."); } return iriShortFormProvider.getShortForm(iri); }
@Override public int compare(@Nullable IRI o1, @Nullable IRI o2) { return iriShortFormProvider.getShortForm(verifyNotNull(o1)) .compareTo(iriShortFormProvider.getShortForm(verifyNotNull(o2))); } }
public String getShortForm(OWLEntity owlEntity) { return iriShortFormProvider.getShortForm(owlEntity.getIRI()); } };
public synchronized String getShortForm(OWLEntity owlEntity) { if(owlEntity instanceof HasPrefixedName) { return ((HasPrefixedName) owlEntity).getPrefixedName(); } else { return iriShortFormProvider.getShortForm(owlEntity.getIRI()); } }
/** * 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. */ @Nonnull private String getRendering(@Nonnull 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 instanceof IRI) { return alternateIRIShortFormProvider.getShortForm((IRI) object); } else { return alternateShortFormProvider.getShortForm((OWLEntity) object); } }