From 0e955444957d2f0a6d30a5298d3b515ce1456ce2 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Tue, 10 Mar 2020 17:07:44 +0100 Subject: [PATCH] fixed serialization for datasource subjects --- .../main/java/eu/dnetlib/dhp/graph/utils/XmlRecordFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/graph/utils/XmlRecordFactory.java b/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/graph/utils/XmlRecordFactory.java index 55c5c1d3c..74e36a818 100644 --- a/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/graph/utils/XmlRecordFactory.java +++ b/dhp-workflows/dhp-graph-provision/src/main/java/eu/dnetlib/dhp/graph/utils/XmlRecordFactory.java @@ -463,7 +463,7 @@ public class XmlRecordFactory implements Serializable { if (ds.getSubjects() != null) { metadata.addAll(ds.getSubjects() .stream() - .map(sp -> mapStructuredProperty("subject", sp)) + .map(sp -> mapStructuredProperty("subjects", sp)) .collect(Collectors.toList())); }