/** * Gets the URI Fragment for the selected entity. * @return The fragment, or the empty string if there * is no fragment. */ private String getShortName() { IriSplitter splitter = new IriSplitter(); return splitter.getShortName(owlEntity.getIRI()).orElse(""); }