Revision 46213
Added by Claudio Atzori about 7 years ago
modules/dnet-graph-domain/trunk/src/main/java/eu/dnetlib/data/transform/Ontologies.java | ||
---|---|---|
23 | 23 |
public String inverseOf(final RelDescriptor rd) { |
24 | 24 |
|
25 | 25 |
if (!containsKey(rd.getOntologyCode())) { |
26 |
log.warn(String.format("unable to find ontology %s", rd.getOntologyCode()));
|
|
26 |
log.warn(String.format("unable to find ontology '%s'", rd.getOntologyCode()));
|
|
27 | 27 |
return null; |
28 | 28 |
} |
29 | 29 |
return get(rd.getOntologyCode()).inverseOf(rd.getTermCode()); |
modules/dnet-graph-domain/trunk/src/main/java/eu/dnetlib/data/transform/Ontology.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
public String inverseOf(final String termCode) { |
50 | 50 |
if (getTerms() == null || !getTerms().containsKey(termCode)) { |
51 |
log.warn(String.format("unable to find inverse for term %s, terms: %s", termCode, getTerms()));
|
|
51 |
log.warn(String.format("unable to find inverse for term '%s', terms: %s", termCode, getTerms()));
|
|
52 | 52 |
return null; |
53 | 53 |
} |
54 | 54 |
return getTerms().get(termCode).getInverseCode(); |
Also available in: Unified diff
better logging