diff --git a/src/main/java/tla/web/model/CorpusObject.java b/src/main/java/tla/web/model/CorpusObject.java index 27934f63..966cac23 100644 --- a/src/main/java/tla/web/model/CorpusObject.java +++ b/src/main/java/tla/web/model/CorpusObject.java @@ -77,7 +77,7 @@ private static List extractDateComment(CorpusObject corpusobj) { ) ); } catch (Exception e) { - System.out.println("INFO: Could not extract dating comment from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract dating comment from object "+corpusobj.getId()); } return dateComment; } @@ -122,7 +122,7 @@ private static List extractSynonymGroups(CorpusObject corpusobj) { node -> synonymGroups.add(new SynonymGroup(node)) ); } catch (Exception e) { - System.out.println("INFO: Could not extract synonyms from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract synonyms from object "+corpusobj.getId()); } return synonymGroups; } @@ -166,7 +166,7 @@ protected static List extractBibliography(CorpusObject corpusobj) { ) ); } catch (Exception e) { - System.out.println("INFO: Could not extract bibliography from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract bibliography from object "+corpusobj.getId()); } return bibliography; } @@ -187,7 +187,7 @@ public static List extractValueS(Passport passport, String searchString) passports = passport.extractProperty(searchString); passports.forEach( node -> result.add(node.getLeafNodeValue())); }catch(Exception e) { - System.out.println("INFO: Could not extract " + searchString); + // System.out.println("INFO: Could not extract " + searchString); } return result; } @@ -197,7 +197,7 @@ public static String extractValue(Passport passport, String searchString) { try{ result = passport.extractProperty(searchString).get(0).getLeafNodeValue(); }catch(Exception e) { - System.out.println("INFO: Could not extract " + searchString); + // System.out.println("INFO: Could not extract " + searchString); } return result; } @@ -207,7 +207,7 @@ public static ObjectReference extractThsEntry(Passport passport, String searchSt try{ result = passport.extractProperty(searchString).get(0).extractObjectReferences().get(0); }catch(Exception e) { - System.out.println("INFO: Could not extract " + searchString); + // System.out.println("INFO: Could not extract " + searchString); } return result; } @@ -217,7 +217,7 @@ public static List extractThsEntries(Passport passport, String try { result =passport.extractProperty(searchString).get(0).extractObjectReferences(); }catch(Exception e) { - System.out.println("INFO: Could not extract " + searchString); + // System.out.println("INFO: Could not extract " + searchString); } return result; } @@ -237,7 +237,7 @@ private static List extractComment(Passport passport, String searchStrin ) ); } catch (Exception e) { - System.out.println("INFO: Could not extract "+searchString); + // System.out.println("INFO: Could not extract "+searchString); } return comment; } @@ -247,7 +247,7 @@ public static ObjectReference extractObjectReference(Passport passport) { try{ object = passport.extractObjectReferences().get(0); }catch(Exception e) { - System.out.println("INFO: Could not extract ObjectReference"); + // System.out.println("INFO: Could not extract ObjectReference"); } return object; } @@ -258,7 +258,7 @@ private static List extractObjectReferences(CorpusObject object List pass= object.getPassport().extractProperty(searchString); pass.forEach(node -> objectReferences.add(node.extractObjectReferences().get(0))); } catch (Exception e) { - System.out.println("could not extract language from text {} " + object.getId()); + // System.out.println("INFO: could not extract language from text {} " + object.getId()); } return objectReferences; } @@ -316,7 +316,7 @@ private static List extractFindSpot(CorpusObject corpusobj) { findSpotPassports.forEach( entry -> findspots.add(new FindSpot(entry))); } catch (Exception e) { - System.out.println("INFO: Could not extract find spot (origin) from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract find spot (origin) from object "+corpusobj.getId()); } return findspots; } @@ -330,7 +330,7 @@ private static List extractPlace(Passport passport, String searchString){ entry -> places.add(new Place(entry))); } catch (Exception e) { - System.out.println("INFO: Could not extract a place from findspot from object "); + // System.out.println("INFO: Could not extract a place from findspot from object "); } return places; } @@ -375,7 +375,7 @@ private static List extractLocations(CorpusObject corpusobj) { passport -> locations.add(new Location(passport)) ); } catch (Exception e) { - System.out.println("INFO: Could not extract locations from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract locations from object "+corpusobj.getId()); } return locations; } @@ -403,7 +403,7 @@ private static List extractInvNos(CorpusObject corpusobj) { node -> invNos.add(node.getLeafNodeValue()) ); } catch (Exception e) { - System.out.println("INFO: Could not extract location inventory nos. from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract location inventory nos. from object "+corpusobj.getId()); } return invNos; @@ -440,7 +440,7 @@ private static List extractProtocol(CorpusObject corpusobj) { ) ); } catch (Exception e) { - System.out.println("INFO: Could not extract protocol from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract protocol from object "+corpusobj.getId()); } return protocol; } @@ -485,7 +485,7 @@ private static Passport extractDescription(CorpusObject corpusobj) { //only one } catch (Exception e) { - System.out.println("INFO: Could not extract description from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract description from object "+corpusobj.getId()); } return descriptionPassport; } @@ -521,7 +521,7 @@ private static List extractFileComment(CorpusObject corpusobj) { ) ); } catch (Exception e) { - System.out.println("INFO: Could not extract file comment from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract file comment from object "+corpusobj.getId()); } return fileComment; } @@ -709,7 +709,7 @@ private static List extractDimensions(CorpusObject corpusobj) { node -> dimensions.add(node.getLeafNodeValue()) ); } catch (Exception e) { - System.out.println("INFO: Could not extract length from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract length from object "+corpusobj.getId()); } try { corpusobj.getPassport().extractProperty( @@ -718,7 +718,7 @@ private static List extractDimensions(CorpusObject corpusobj) { node -> dimensions.add(node.getLeafNodeValue()) ); } catch (Exception e) { - System.out.println("INFO: Could not extract width from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract width from object "+corpusobj.getId()); } try { corpusobj.getPassport().extractProperty( @@ -727,7 +727,7 @@ private static List extractDimensions(CorpusObject corpusobj) { node -> dimensions.add(node.getLeafNodeValue()) ); } catch (Exception e) { - System.out.println("INFO: Could not extract thickness from object "+corpusobj.getId()); + // System.out.println("INFO: Could not extract thickness from object "+corpusobj.getId()); } return dimensions; }