entityRes = model.createResource(getResourceString(
base+entity.getUniqueIdentificator(),base));
}
entityRes.addProperty(RDF.type, JenaVocabulary.entity);
if(entity.getUniqueIdentificator() != null) {
Property uniqIdProperty = model.createProperty(reputationParser
.getRiNamespace(), "identifier");
entityRes.addProperty(uniqIdProperty,
entity.getUniqueIdentificator());
} else {
return;
}
if(entity.getIdentificatorInCommunities() != null) {
for(EntityIdentifier entityIdentifier :
entity.getIdentificatorInCommunities().values()) {
Property property = model.createProperty(reputationParser
.getFoafNamespace(), "onlineAccount");
Resource resource = addOnlineAccountToModel(model,
entityIdentifier, reputationParser, base, entity);
if(resource == null) {
continue;
}
entityRes.addProperty(property,resource);
}
}
if(entity.getHasReputation() != null) {
for(ReputationObject reputationObject :
entity.getHasReputation()) {
Property property = model.createProperty(reputationParser
.getRiNamespace(), "hasReputation");
Resource resource = addReputationObjectToModel(model,
reputationObject, reputationParser, base, entity);
if(resource == null) {
continue;
}
entityRes.addProperty(property,resource);
}
}
if(entity.getHasValue() != null) {
for(ReputationValue reputationValue :
entity.getHasValue()) {
Property property = model.createProperty(reputationParser
.getRiNamespace(), "hasValue");
Resource resource = addReputationValueToModel(model,
reputationValue, reputationParser, base, entity, null);
if(resource == null) {
continue;
}
entityRes.addProperty(property,resource);
}
}
if(entity.getHasEvaluation() != null) {
for(ReputationEvaluation reputationEvaluation :
entity.getHasEvaluation()) {
Property property = model.createProperty(reputationParser
.getRiNamespace(), "hasEvaluation");
Resource resource = addReputationEvaluationToModel(model,
reputationEvaluation, reputationParser, base, entity, null);
if(resource == null) {
continue;