<commit_before>package de.ddb.pdc.metadata;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonFormat
@JsonIgnoreProperties(ignoreUnknown = true)
class ItemAipResult {

  @JsonProperty
  private EDMItem edm;

  public RDFItem getRDFItem() {
    return edm.getRdf();
  }
}<commit_msg>add documentation and null check<commit_after>package de.ddb.pdc.metadata;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * call for the aip json result
 */
@JsonFormat
@JsonIgnoreProperties(ignoreUnknown = true)
class ItemAipResult {

  @JsonProperty
  private EDMItem edm;

  /**
   * @return rdf item of the json result or null
   */
  public RDFItem getRDFItem() {
    if (edm == null) {
      return null;
    }
    return edm.getRdf();
  }
}
{'fraction_non_alphanumeric': 0.09979633401221996, 'fraction_numerical': 0.0, 'mean_word_length': 4.522471910112359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5320457', 'n_tokens_mistral': 326, 'n_tokens_neox': 302, 'n_words': 68}