Skip to content

Commit

Permalink
Deactivate debug messages CorpusObject
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning committed Mar 14, 2024
1 parent 44054a9 commit 9e8a666
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/main/java/tla/web/model/CorpusObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private static List<String> 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;
}
Expand Down Expand Up @@ -122,7 +122,7 @@ private static List<SynonymGroup> 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;
}
Expand Down Expand Up @@ -166,7 +166,7 @@ protected static List<String> 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;
}
Expand All @@ -187,7 +187,7 @@ public static List<String> 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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -217,7 +217,7 @@ public static List<ObjectReference> 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;
}
Expand All @@ -237,7 +237,7 @@ private static List<String> 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;
}
Expand All @@ -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;
}
Expand All @@ -258,7 +258,7 @@ private static List<ObjectReference> extractObjectReferences(CorpusObject object
List<Passport> 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;
}
Expand Down Expand Up @@ -316,7 +316,7 @@ private static List<FindSpot> 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;
}
Expand All @@ -330,7 +330,7 @@ private static List<Place> 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;
}
Expand Down Expand Up @@ -375,7 +375,7 @@ private static List<Location> 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;
}
Expand Down Expand Up @@ -403,7 +403,7 @@ private static List<String> 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;
Expand Down Expand Up @@ -440,7 +440,7 @@ private static List<String> 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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -521,7 +521,7 @@ private static List<String> 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;
}
Expand Down Expand Up @@ -709,7 +709,7 @@ private static List<String> 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(
Expand All @@ -718,7 +718,7 @@ private static List<String> 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(
Expand All @@ -727,7 +727,7 @@ private static List<String> 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;
}
Expand Down

0 comments on commit 9e8a666

Please sign in to comment.