@Override public String toString() { if (!anonymous) { return resource.toQuotedString(); } else { return "_:" + resource; } }
@Override public String getShortForm(IRI iri) { String sf = getPrefixIRI(iri); if (sf == null) { return iri.toQuotedString(); } else { return sf; } }
/** * Gets the short form for an IRI * * @param iri The IRI * @return The short form for the specified IRI */ public String getShortForm(IRI iri) { return iri.toQuotedString(); }