Graph raw mapper from postgres database: map new information about "validated" contexts and relationships from the claim table #66
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#66
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
The claim table on postgres keeps track of claims that have been approved/rejected by gateway managers.
In particular, we have the two columns:
For now, we are only considering the
approved
: if it isfalse
, the claim is not added to the graph.We should now also consider the case when
approved
istrue
. If it is, then the relationship or the context can be set as "validated". the value incuration_date
can be used for thevalidationDate
If
approved
is empty, then the claim must be added to the graph without any validation information (i.e. as it is now).For the overall activity, please refer to https://issue.openaire.research-infrastructures.eu/issues/6226
I summarize the cases:
Is it right?
Until now we loaded only the claims with approved = TRUE using this sql:
but observing the production database I see that all the claims are approved = true and curation_date = null, is it a problem?
Thanks @michele.artini ! based on what you see, then it seems that the Link functionality sets the fields in a different way than what I remembered.
I would go for:
approved = null : to graph with oaf.validationDate = nullThe last case is to reflect what we are already doing now: not including the claims with approved != true.
In case approved is true, it goes into the graph. If it has a null curation_date, then it means it was not validated. If it has a curation_date, then it means it was validated and we can use the curation_date as validationDate.
I created the following PR: #77
PR was integrated in
6299f75807
, closing