added log on json parser

This commit is contained in:
Enrico Ottonello 2020-07-24 01:21:25 +02:00
parent eb61aebcd5
commit b29b4e1fd7
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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) {