@Test public void testExpandInEmptyMap() { final ShortNameRenderer snr = new ShortNameRenderer( null, null ); assertEquals( "foo", snr.expand( "foo" ) ); }
public String expand( String shortName ) { String uri = lookupShortName( shortName ); return (uri == null) ? shortName : uri; }
ShortNameRenderer { public String expand( String shortName ) { String uri = lookupShortName( shortName ); return (uri == null) ? shortName : uri; } }
ShortNameRenderer { public String expand( String shortName ) { String uri = lookupShortName( shortName ); return (uri == null) ? shortName : uri; } ShortNameRenderer( ShortnameService sns, Iterable<Binding<Resource>> bindings ); }
ShortNameRenderer { public String expand( String shortName ) { String uri = lookupShortName( shortName ); return (uri == null) ? shortName : uri; } ShortNameRenderer( ShortnameService sns, Iterable<Binding<Resource>> bindings ); ShortnameService shortNameService(); ShortnameService shortNameService( boolean required ); boolean isDatatype( String type ); Resource asResource( RDFNode r ); Resource asResource( String s ); String expand( String shortName ); String shorten( String uri, boolean memoise ); String shorten( String uri ); boolean hasShortNameService(); boolean isKnownShortnamePath( String path ); }
ShortNameRenderer { public String expand( String shortName ) { String uri = lookupShortName( shortName ); return (uri == null) ? shortName : uri; } ShortNameRenderer( ShortnameService sns, Iterable<Binding<Resource>> bindings ); ShortnameService shortNameService(); ShortnameService shortNameService( boolean required ); boolean isDatatype( String type ); Resource asResource( RDFNode r ); Resource asResource( String s ); String expand( String shortName ); String shorten( String uri, boolean memoise ); String shorten( String uri ); boolean hasShortNameService(); boolean isKnownShortnamePath( String path );  }