use of org.apache.clerezza.rdf.core.NoConvertorException in project stanbol by apache.
the class RdfRepresentation method addTypedLiteral.
private void addTypedLiteral(IRI field, Object literalValue) {
Literal literal;
try {
literal = RdfResourceUtils.createLiteral(literalValue);
} catch (NoConvertorException e) {
log.info("No Converter for value type " + literalValue.getClass() + " (parsed for field " + field + ") use toString() to get String representation");
literal = RdfResourceUtils.createLiteral(literalValue.toString(), null);
}
graphNode.addProperty(field, literal);
}
Aggregations