Skip to content
Snippets Groups Projects
Commit 83b61cde authored by Baptiste Toulemonde's avatar Baptiste Toulemonde
Browse files

fix for v1.12

parent b8d3df3a
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,8 @@ public class MappingService {
case "dct:modified":
property += indentifier + " \"" + value + "\"^^xsd:dateTime;\n";
break;
case "dct:publisher":
property += indentifier + "[ a foaf:Agent; foaf:name \"" + value + "\"];\n";
default:
property += indentifier + " \"" + value + "\";\n";
break;
......@@ -137,6 +139,10 @@ public class MappingService {
.filter(e -> e.getProperty().equals("dct:hasVersion")).collect(Collectors.toList()).size() == 0) {
datasetProperties += "dct:hasVersion \"null\";\n";
}
if (paths.stream().filter(e -> e.getDcatClass().equals("dcat:dataset"))
.filter(e -> e.getProperty().equals("dct:publisher")).collect(Collectors.toList()).size() == 0) {
datasetProperties += "dct:publisher [ a foaf:Agent; foaf:name \"unedefined\"];\n";
}
distributionProperties += "dct:hasVersion \"null\";\n";
for (Path path : paths) {
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment