dr:dateOfCollection OR dri:dateOfCollection ? #55

Closed
opened 2020-11-17 18:27:13 +01:00 by alessia.bardi · 2 comments

The mapper applied to the aggregator records looks for

r.setDateofcollection(doc.valueOf("//dr:dateOfCollection"));
r.setDateoftransformation(doc.valueOf("//dr:dateOfTransformation"));

but the templates used by the MDBuilder job nodes I see
dri:dateOfCollection<xsl:value-of select="$datestamp"/></dri:dateOfCollection>
dri:dateOfCollection<xsl:value-of select="$datestamp"/></dri:dateOfCollection>

as a consequence, the dateofcollections is missing from many records in the graph.
The Graph raw mapper should look also into dri:dateOfCollection if dr:dateOfCollection is blank.

The transformation rules adds dr:dateOfTransformation so we are fine with that.

The mapper applied to the aggregator records looks for r.setDateofcollection(doc.valueOf("//dr:dateOfCollection")); r.setDateoftransformation(doc.valueOf("//dr:dateOfTransformation")); but the templates used by the MDBuilder job nodes I see <dri:dateOfCollection><xsl:value-of select="\$datestamp"/></dri:dateOfCollection> <dri:dateOfCollection><xsl:value-of select="\$datestamp"/></dri:dateOfCollection> as a consequence, the dateofcollections is missing from many records in the graph. The Graph raw mapper should look also into dri:dateOfCollection if dr:dateOfCollection is blank. The transformation rules adds dr:dateOfTransformation so we are fine with that.
alessia.bardi added the
bug
label 2020-11-17 18:27:13 +01:00
michele.artini was assigned by alessia.bardi 2020-11-17 18:27:13 +01:00
Member

I updated the xpaths considering dri and dr namespaces.

The fix is already in the master branch.

I updated the xpaths considering dri and dr namespaces. The fix is already in the master branch.

...then we can close.

...then we can close.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: D-Net/dnet-hadoop#55
No description provided.