Odeuropa / explorer

Exploratory Search Engine for Odeuropa
https://explorer.odeuropa.eu
Apache License 2.0
2 stars 0 forks source link

Permalinks on images link to GraphDB not Explorer #73

Closed kintopp closed 1 year ago

kintopp commented 1 year ago

Arguably, this is the correct behaviour, but it's not how permalinks works in other, familiar contexts, such as Zenodo or online journals, or library catalogs. If I want to share the link to e.g. https://explorer.odeuropa.eu/smells/299ac334-5161-5a54-966e-5f6f00b09ee2?q=butter&display=text&page=4&stype=smells&sapi=%2Fapi%2Fsearch&spath=%2Fsmells and use the permalink given on this page, https://data.odeuropa.eu/resource?uri=http://data.odeuropa.eu/smell/299ac334-5161-5a54-966e-5f6f00b09ee2 how is the recipient of the link to know to replace "data" with "explorer"? Else you're in GraphDB with no clear (to me, anyway) way back to Explorer (and the image).

rtroncy commented 1 year ago

Hum, the permalink in this example should be http://data.odeuropa.eu/smell/299ac334-5161-5a54-966e-5f6f00b09ee2! The fact that we decide to dereference this link using a particular view, such as the one provided by GraphDB (https://data.odeuropa.eu/resource?uri=http://data.odeuropa.eu/smell/299ac334-5161-5a54-966e-5f6f00b09ee2) or an Explorer view is left to a configuration of the user agent requesting the dereferencing.

@kintopp What would be your expectation exactly?

kintopp commented 1 year ago

I'm not sure yet, but I found a possible solution hidden in plain sight. Let's say you carry out this search https://explorer.odeuropa.eu/smells/a114c637-d072-519c-b590-9ff81d52d3c4?stype=smell-sources&sapi=%2Fapi%2Fodeuropa%2Fvocabulary-visuals&spath=%2Fsmell-sources% which results in an image. If you click on the permalink you end up in data.odeuropa.eu. That's not what I expected. However, if you click on the link icon to the left of "Visual Resource", you get https://explorer.odeuropa.eu/smells/a114c637-d072-519c-b590-9ff81d52d3c4 which is the link I was expecting (i.e. the resource ID, in Explorer, without the underlying search). I'd need to mull this over some more, but my inclination is to use this link for the permalink instead (so that you remain in the context of the explorer) and then call the link to data.odeuropa.eu something else.

rtroncy commented 1 year ago

A permalink, by definition, is a permanent link to a resource, i.e. not to a view of this resource. Explorer can provide (and it does) useful links that can be shared, but these are not permalinks of resources.

It is a mistake to consider https://data.odeuropa.eu/resource?uri=http://data.odeuropa.eu/smell/a114c637-d072-519c-b590-9ff81d52d3c4 a permalink as it is not. Instead, http://data.odeuropa.eu/smell/a114c637-d072-519c-b590-9ff81d52d3c4 should be the proper permalink. Next, one could decide how to dereference this link (via GraphDB or via another mechanism).

ehrhart commented 1 year ago

The proper permalink is now being used