Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding multiple time the same property in the @reverse property should raise an error #6

Open
joke1196 opened this issue Jul 1, 2020 · 0 comments

Comments

@joke1196
Copy link
Contributor

joke1196 commented Jul 1, 2020

The Reverse model takes a list of properties as in put, this list should not contain twice the same property.
e.g.

@reverse: {
"namespace:dataset":{"@id": 1},
"namespace:dataset":{"@id": 2},
}

As we cannot decide which one is the correct field we should raise an error.
The user is responsible of generating the list of entities in the @reverse property

Acceptance criterias:

  • The instanciation of a Reverse instance should throw an IllegalArgumentException when a property is found twice in the list of properties passed as parameters
  • The Reverse model still can only holds a list of tuple: properties to JsonLD. The JsonLD can be an array of JsonLDEntities or a single JsonLDEntity. If the JsonLD is anything else; the Reverse instanciation should still throw an IllegalArgumentException
@jachro jachro transferred this issue from SwissDataScienceCenter/renku-graph Nov 17, 2021
@jachro jachro moved this to Not Ready in KG's kanban Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Not Ready
Development

No branches or pull requests

1 participant