Skip to content

relationships as a set? #124

@pohutukawa

Description

@pohutukawa

I've been modelling PROV graphs a few times, and noticed, that relationships are not stored as a set of unique edges.

For example, I'm expressing that one actor (a person) is a delegate of another actor (an organisation), using the actedOnBehalfOf relationship. Unfortunately, if I'm running certain things through a function that will make such connections automatically, I will end up with several (identical) actedOnBehalfOf relationships between the same two nodes in the 'wired up' form.

I can see that there may be different relationships between the same source and destination vertex, however if they are identical, I suppose they should be recorded only once, right?

Or did I misunderstand something here?

If the behaviour is intended, then it is quite cumbersome to drill down into the RPOV document data structures, and pry out whether a particular delegation record does already exist, and then avoid adding an additional one.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions