-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix property names for incoming links #1144
Conversation
@@ -383,7 +383,7 @@ object ConstructResponseUtilV2 { | |||
|
|||
if (incomingLinkAssertions.nonEmpty) { | |||
// create a virtual property representing an incoming link | |||
val incomingProps: (IRI, Seq[ValueRdfData]) = OntologyConstants.KnoraBase.HasIncomingLink -> incomingLinkAssertions.values.toSeq.flatten.map { | |||
val incomingProps: (IRI, Seq[ValueRdfData]) = OntologyConstants.KnoraBase.HasIncomingLinkValue -> incomingLinkAssertions.values.toSeq.flatten.map { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the key place where this actually gets used.
I think in Knora-ui only the test data has to be updated. We can do that tomorrow morning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some tests fail:
java.lang.AssertionError: assertion failed: property Iris are different for resource JsonLDString(http://rdfh.ch/8be1b7cf7103): expected Set(http://api.knora.org/ontology/knora-api/v2#hasIncomingLink, http://api.knora.org/ontology/knora-api/v2#attachedToProject, http://api.knora.org/ontology/knora-api/v2#creationDate, http://0.0.0.0:3333/ontology/0803/incunabula/v2#title, http://api.knora.org/ontology/knora-api/v2#attachedToUser, http://api.knora.org/ontology/knora-api/v2#hasPermissions), received Set(http://api.knora.org/ontology/knora-api/v2#hasIncomingLinkValue, http://api.knora.org/ontology/knora-api/v2#attachedToProject, http://api.knora.org/ontology/knora-api/v2#creationDate, http://0.0.0.0:3333/ontology/0803/incunabula/v2#title, http://api.knora.org/ontology/knora-api/v2#attachedToUser, http://api.knora.org/ontology/knora-api/v2#hasPermissions)
I think the tests data simply has to be adapted (hasIncomingLink -> hasIncomingLinkValue)
@tobiasschweizer OK to merge now? |
# Conflicts: # webapi/src/test/resources/test-data/ontologyR2RV2/knoraApiOntologyWithValueObjects.rdf
* test (knora-core): Update test data to reflect dasch-swiss/dsp-api#1144 * test (knora-core): Update more test data.
hasIncomingLink
tohasIncomingLinkValue
, because the name of a link value property must end inValue
. Also rename the corresponding virtual property inknora-base
.hasIncomingLink
to theknora-api
ontology.Corresponding PR in
Knora-ui
: dasch-swiss/knora-ui#148Fixes #1135.