}
KR2RMLMapping kr2rmlMapping = new KR2RMLMapping(id, version);
Map<String, String> prefixes = model.getNsPrefixMap();
for(Entry<String, String> prefix : prefixes.entrySet())
{
Prefix p = new Prefix(prefix.getKey(), prefix.getValue());
kr2rmlMapping.addPrefix(p);
}
SourceTypes sourceType = getSourceType(mappingResource);
kr2rmlMapping.setColumnNameFormatter(KR2RMLColumnNameFormatterFactory.getFormatter(sourceType));