From b29b4e1fd77b2792024a31314c8e9c0822c64220 Mon Sep 17 00:00:00 2001 From: Enrico Ottonello Date: Fri, 24 Jul 2020 01:21:25 +0200 Subject: [PATCH] added log on json parser --- .../eu/dnetlib/ariadneplus/reader/RunSPARQLQueryService.java | 1 - .../java/eu/dnetlib/ariadneplus/reader/json/ParseRDFJSON.java | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/java/eu/dnetlib/ariadneplus/reader/RunSPARQLQueryService.java b/dnet-ariadneplus-graphdb-publisher/src/main/java/eu/dnetlib/ariadneplus/reader/RunSPARQLQueryService.java index ec9838f..b5bd16f 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/java/eu/dnetlib/ariadneplus/reader/RunSPARQLQueryService.java +++ b/dnet-ariadneplus-graphdb-publisher/src/main/java/eu/dnetlib/ariadneplus/reader/RunSPARQLQueryService.java @@ -101,7 +101,6 @@ public class RunSPARQLQueryService { parser.setCollection(true); } String bufferedRecord = recordWriter.toString(); - log.debug("before json parser :: "+bufferedRecord); int size = parser.parse(bufferedRecord); log.debug("json elements: "+size); if (size==-1) { diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/java/eu/dnetlib/ariadneplus/reader/json/ParseRDFJSON.java b/dnet-ariadneplus-graphdb-publisher/src/main/java/eu/dnetlib/ariadneplus/reader/json/ParseRDFJSON.java index 7d34938..33aa44d 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/java/eu/dnetlib/ariadneplus/reader/json/ParseRDFJSON.java +++ b/dnet-ariadneplus-graphdb-publisher/src/main/java/eu/dnetlib/ariadneplus/reader/json/ParseRDFJSON.java @@ -55,6 +55,8 @@ public class ParseRDFJSON { setJson(json); fillMap(); DocumentContext jsonContext = JsonPath.parse(json); + log.debug("jsonPath: "+getCatalogEntryJsonPath()); + log.debug("json from jsonContext: "+json); JSONArray entries = jsonContext.read(getCatalogEntryJsonPath()); int size = entries.size(); if (size==0) {