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

Ontology API error with link values #988

Closed
lrosenth opened this issue Sep 4, 2018 · 4 comments
Closed

Ontology API error with link values #988

lrosenth opened this issue Sep 4, 2018 · 4 comments
Assignees
Labels
bug something isn't working
Milestone

Comments

@lrosenth
Copy link
Collaborator

lrosenth commented Sep 4, 2018

If adding the cardinality of a resource pointer link value, I get an error that either the link or the link property of the link value oproperty to not have a valid cardinality.

I think the reason is "improved" consistency checking. Using the Ontology API I have to add for links 2 cardinality one after the other: for the link propery and for the linkValue property. If I add the first, the second has not yet the right cardinality (that is none at all) or vice versa. So I can at the moment not add any link property because of this bug...

Suggestion: The linkValue cardinality is automatically added if the link gets a cardinality (in one transaction). I beleive that both cardinalities must always be the same.

Error example (if adding linkValue cardinality:

org.knora.webapi.BadRequestException: Resource class http://0.0.0.0:3333/ontology/1010/postcards/v2#postcard has cardinalities for one or more link value properties without corresponding link properties. The missing (or incorrectly defined) property or properties: http://0.0.0.0:3333/ontology/1010/postcards/v2#externalreference
stdClass Object

@lrosenth lrosenth added the bug something isn't working label Sep 4, 2018
@benjamingeer
Copy link

Using the Ontology API I have to add for links 2 cardinality one after the other: for the link propery and for the linkValue property.

You don’t have to add them one after the other, you can add them at the same time, in a single request.

Suggestion: The linkValue cardinality is automatically added if the link gets a cardinality

I was trying to keep the input and output consistent, but actually I think you’re right.

@lrosenth
Copy link
Collaborator Author

lrosenth commented Sep 4, 2018 via email

@lrosenth
Copy link
Collaborator Author

lrosenth commented Sep 4, 2018 via email

@lrosenth
Copy link
Collaborator Author

lrosenth commented Sep 4, 2018

Does not work... Still get an error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants