dasch-swiss / dsp-api

DaSCH Service Platform API
http://admin.dasch.swiss
Apache License 2.0
74 stars 18 forks source link

[Salsah 1.5] Strange behaviours with incoming and outgoing links #498

Closed mrivoal closed 7 years ago

mrivoal commented 7 years ago

I have a bibliographic ontology (based on biblio-onto.ttl) and a project-specific ontology for a new project named Fabula.

In Fabula ontology, a resource class Author is linked to bibliographical records (for example Book, from the bibliographic ontology) with a property hasStructuredReferences (Références structurées in the GUI), subproperty of knora-base:hasLinkTo.

The resource class Book itself is linked to the resource class Author with a property hasAuthor which is a subproperty of knora-base:hasLinkTo. (I know it introduces some redundancy with outgoing and incoming links between Author and Book, but it is fine for what we want).

When I want to add a Structured reference for an Author, I click on New entry and fill the form in the new window. Once I have saved the new resource, a new line shows up under Références structurées in the Auteur form. This is fine.

capture d ecran 2017-05-01 a 15 42 37

However, if I refresh, this line disappears and then shows up under the "Other objects referencing this object" part of the form.

capture d ecran 2017-05-01 a 15 44 09

It is not exactly wrong, but I expected some redundancy : I thought I would see the book under Références structurées and under the tab "Other objects referencing this object".

Would you consider what happens a normal thing or is it a bit odd?

benjamingeer commented 7 years ago

However, if I refresh, this line disappears

What do you mean by "if I refresh"? Do you mean that you click the reload button in the browser?

Please provide precise steps to reproduce this issue, along with all necessary test data, in the format given here:

https://github.com/dhlab-basel/Knora/issues/492#issuecomment-298628691

mrivoal commented 7 years ago

My bad. I simply forgot to save the link I created from the resource Auteur to the resource Livre. Thus, this link to could not appear under the Références structurées property for the resource Auteur once I had closed and reopened the window.

Sorry. One less issue to deal with.