Skip to content

Commit

Permalink
nuts schema date
Browse files Browse the repository at this point in the history
  • Loading branch information
adibaba committed Mar 22, 2023
1 parent 6b2613c commit 3cca853
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ private void addLauCsvCollection(Model model, LauCsvCollection lauCsvCollection)

// Schema
Resource resLauSchema = ResourceFactory.createResource(Voc.getLauSchemeUri(item.lauSchema));
Resource resNutsSchema = ResourceFactory.createResource(Voc.getNutsSchemeUri(item.nutsSchema));
if (!model.containsResource(resLauSchema)) {
Literal litDate = ResourceFactory.createTypedLiteral(item.lauSchema + "-01-01", XSDDatatype.XSDdate);
model.addLiteral(resLauSchema, Voc.DCT_issued, litDate);
}
Resource resNutsSchema = ResourceFactory.createResource(Voc.getNutsSchemeUri(item.nutsSchema));
if (!model.containsResource(resNutsSchema)) {
Literal litDate = ResourceFactory.createTypedLiteral(item.nutsSchema + "-01-01", XSDDatatype.XSDdate);
model.addLiteral(resNutsSchema, Voc.DCT_issued, litDate);
}
model.add(resLauSchema, RDF.type, Voc.resLauScheme);
model.add(resUniqueLau, Voc.SKOS_inScheme, resLauSchema);
model.add(resLauSchema, Voc.SKOS_related, resNutsSchema);
Expand Down

0 comments on commit 3cca853

Please sign in to comment.