}
public void prepareIris(TermMentionFilterPrepareData termMentionFilterPrepareData) {
this.artifactHasEntityIri = getConfiguration().get(Configuration.ONTOLOGY_IRI_ARTIFACT_HAS_ENTITY);
if (this.artifactHasEntityIri == null) {
throw new LumifyException("Could not find configuration for " + Configuration.ONTOLOGY_IRI_ARTIFACT_HAS_ENTITY);
}
stateIri = (String) termMentionFilterPrepareData.getStormConf().get(CONFIG_STATE_IRI);
if (stateIri == null || stateIri.length() == 0) {
throw new LumifyException("Could not find config: " + CONFIG_STATE_IRI);
}
countryIri = (String) termMentionFilterPrepareData.getStormConf().get(CONFIG_COUNTRY_IRI);
if (countryIri == null || countryIri.length() == 0) {
throw new LumifyException("Could not find config: " + CONFIG_COUNTRY_IRI);
}
cityIri = (String) termMentionFilterPrepareData.getStormConf().get(CONFIG_CITY_IRI);
if (cityIri == null || cityIri.length() == 0) {
throw new LumifyException("Could not find config: " + CONFIG_CITY_IRI);
}
geoLocationIri = (String) termMentionFilterPrepareData.getStormConf().get(CONFIG_GEO_LOCATION_IRI);
if (geoLocationIri == null || geoLocationIri.length() == 0) {
throw new LumifyException("Could not find config: " + CONFIG_GEO_LOCATION_IRI);
}
}