mapping relationship from trasformed records based on oaf:relation
#219
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#219
Loading…
Reference in New Issue
No description provided.
Delete Branch "oaf_relation_mapping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Transformed records in the aggregation system might expose relationships pointing to other entities that do exist in the graph. However, the XML element carrying this information was never defined in a uniform way, leading to the presence of several ways to express this information.
With the occasion of introducing the result-organization (affiliation) relations from the CNR Explora (aka. People) we took the opportunity to base this relation types on a common, extendible format, that could be hopefully adopted also to represent other relation types.
As for today, the XML representation for the affiliation links is based on the example below.
This approach is almost fine, but misses an important information: the target entity type. It could be desumed by the
relType
attribute, but it would not be a very robust approach, it would be better to introduce yet another attribute to declare it explocitly, so that the implementation of the mapping can be straightforward.@ -281,0 +298,4 @@
final String validationdDate = ((Node) o).valueOf("@validationDate");
if (StringUtils.isNotBlank(target)) {
final String targetType = element.attributeValue("targetType");
you here assume the attribute targetType will be in the result once this method will run. Is it correct?
We assume the presence of the
targetType
attribute is part of theoaf:relation
specification, just like the other attributes. I suppose it is reasonable to assume to know, when defining the transformation rules, the main entity type at which a relationsh will refer to.The PR can be integrated given the information in the transformed records will contain also the targetType attribute.