throw new UnsupportedOperationException("This implementation requries data to process the score");
}
@Override
public Float process(Representation entity) throws UnsupportedOperationException {
Reference ref = entity.getFirstReference(GeonamesPropertyEnum.gn_featureClass.toString());
String fclass = ref == null ? null : ref.getReference();
//ref = entity.getFirstReference(GeonamesPropertyEnum.gn_featureCode.toString());
//String fCode = ref == null ? null : ref.getReference();
if(FCLASS_A.equals(fclass)){
ref = entity.getFirstReference(GeonamesPropertyEnum.gn_featureCode.toString());
String fcode = ref == null ? null : ref.getReference();
if(fcode == null){
return DEFAULT_SCORE;
} else {
fcode = fcode.substring(GEONAMES_ONTOLOGY_NS.length()+2);
if(fcode.length() > 2 && fcode.startsWith("PC")){