Skip to content

Commit 9cfb1cc

Browse files
committed
more verbose jsonld formatting
1 parent dfe4436 commit 9cfb1cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/edu/kit/scc/dem/wapsrv/model/formats/JsonLdFormatter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ private String applyProfiles(String jsonLd, String frameString) {
202202

203203
//We assume that framing and compacting only needs to be applied if anno profile is present
204204
if (frameObject != null && profiles.contains(DEFAULT_PROFILE)) {
205+
logger.info("Framing and compacting for default profile: " + DEFAULT_PROFILE);
205206
final JsonLdOptions options = profileRegistry.getJsonLdOptions();
206207
options.format = JsonLdConsts.APPLICATION_NQUADS;
207208
options.setCompactArrays(true);
@@ -227,6 +228,9 @@ private String applyProfiles(String jsonLd, String frameString) {
227228
}
228229
}
229230
}
231+
} else {
232+
logger.info("No framing or compacting due to missing frame or profile");
233+
logger.info(profiles.toString());
230234
}
231235
for (URL url : profiles) {
232236
contexts.add(url.toString());

0 commit comments

Comments
 (0)