diff --git a/src/main/java/nl/dtls/fairdatapoint/api/controller/metadata/GenericController.java b/src/main/java/nl/dtls/fairdatapoint/api/controller/metadata/GenericController.java index da5a2e743..94f3bfded 100644 --- a/src/main/java/nl/dtls/fairdatapoint/api/controller/metadata/GenericController.java +++ b/src/main/java/nl/dtls/fairdatapoint/api/controller/metadata/GenericController.java @@ -460,8 +460,9 @@ private String createLink(String entityUrl, String childPrefix, int page, int si private void enhanceWithSignposting(HttpServletResponse response, IRI entityUri, Model resultRdf) { // author - Models.getProperty(resultRdf, entityUri, DCTERMS.PUBLISHER).ifPresent(pub -> - addSignpostingHeader(response, pub, "author")); + Models.getProperty(resultRdf, entityUri, DCTERMS.PUBLISHER).ifPresent(pub -> { + addSignpostingHeader(response, pub, "author"); + }); // cite-as addSignpostingHeader(response, entityUri, "cite-as"); @@ -470,12 +471,14 @@ private void enhanceWithSignposting(HttpServletResponse response, IRI entityUri, // TODO // type - Models.getProperties(resultRdf, entityUri, RDF.TYPE).forEach(type -> - addSignpostingHeader(response, type, "type")); + Models.getProperties(resultRdf, entityUri, RDF.TYPE).forEach(type -> { + addSignpostingHeader(response, type, "type"); + }); // license - Models.getPropertyIRI(resultRdf, entityUri, DCTERMS.LICENSE).ifPresent(license -> - addSignpostingHeader(response, license, "license")/*response.addHeader(HttpHeaders.LINK, "<" + license + "> ; rel=\"license\"")*/); + Models.getPropertyIRI(resultRdf, entityUri, DCTERMS.LICENSE).ifPresent(license -> { + addSignpostingHeader(response, license, "license"); + }); // item // TODO