mapping relationship from trasformed records based on oaf:relation
#219
Merged
claudio.atzori
merged 3 commits from oaf_relation_mapping
into beta
2 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'oaf_relation_mapping'
Deleting a branch is permanent. It CANNOT be undone. 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.
875ae29961
into beta 2 years agoReviewers
875ae29961
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.