// add fragment identifier for non-information resources
if (!resource.hasProperty(RDF.type, FOAF.Document)) builder.fragment("this"); // FOAF.isPrimaryTopicOf?
try
{
return build(resource, new UriTemplateParser(itemTemplate), builder);
}
catch (IllegalArgumentException ex)
{
if (log.isDebugEnabled()) log.debug("Building URI from resource {} failed", resource);
throw new IllegalArgumentException("POSTed Resources '" + resource + "' is missing properties required by its URI template '" + itemTemplate + "'");