@Override public Country getCountryIdentifier() { RDFNode countryIdentifier = getPropertyValue(mdrDatabase.getVocabulary().countryIdentifier); if (countryIdentifier == null) { logger.debug("LanguageIdentification does not have countryIdentifier"); return null; } return Country.getByValue(countryIdentifier.asLiteral().getString()); }
@Override public void setCountryIdentifier(Country countryIdentifier) { if (countryIdentifier != null) { setPropertyValue( mdrDatabase.getVocabulary().countryIdentifier, mdrDatabase.getUtil().createTypedLiteral(countryIdentifier.toString())); } else { setPropertyValue(mdrDatabase.getVocabulary().countryIdentifier, null); } }