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

Global search shows incorrect results when a uri is defined in many vocabularies #611

Closed
henriyli opened this issue Apr 27, 2017 · 6 comments

Comments

@henriyli
Copy link
Collaborator

At which URL did you encounter the problem?

http://finto.fi/en/search?anylang=on&q=vesi-+ja+ymp%C3%A4rist%C3%B6piirit*

What steps will reproduce the problem?

  1. Open the provided link
  2. Look at the broader concepts of the first result ( AFO: vesi- ja ympäristöpiirit (hallintoalueet) (fi) )
  3. Look at the broader concept on the actual concept page:
    http://finto.fi/afo/en/page/?clang=fi&uri=http%3A%2F%2Fwww.yso.fi%2Fonto%2Fyso%2Fp21720

What is the expected output? What do you see instead?

Expected to only see the broader concept that is defined in AFO ("hallinnollinen piiri (hallintoalueet)"). Instead I see two concepts "hallinnolliset piirit" and "hallintoalueet", first of which is the correct concept but is presented with an incorrect prefLabel from some other vocabulary. This happens because different values are provided for the same URI in different ontologies.

There are two related issues here:

  1. The values for skos:broader are incorrect.
  2. The skos:prefLabels of those concepts are incorrect.

This leads to a nasty situation, where the search results are inaccurate for both the current YSO and the somewhat outdated domain ontologies.

@henriyli henriyli added this to the Next Tasks milestone Apr 27, 2017
@tfrancart
Copy link
Contributor

I need to understand this because I may have a similar situation : is it because the same concept is in 2 different vocabularies in Skosmos (2 different vocabularies defined in vocabularies.ttl, pointing to the same triplestore but 2 different named graphs) ? Thanks for the clarification

@osma
Copy link
Member

osma commented Sep 29, 2017

@tfrancart Exactly. This happens because the AFO data (in one named graph) includes an old version of YSO, so it has the old labels for that concept URI. Another graph on the same triple store contains the current YSO.

The problem is that the search result page performs a CONSTRUCT query that takes information about all the concepts on that page, from all named graphs on the same endpoint, and the triples get mixed up in the constructed graph.

Fixing this would require another approach to constructing search result pages. But it's quite difficult to do this in a way that has reasonable performance.

@tfrancart
Copy link
Contributor

tfrancart commented Sep 29, 2017 via email

@osma
Copy link
Member

osma commented Sep 29, 2017

@tfrancart Are you using skos-history by any chance? Since it stores the different versions of a vocabulary in different named graphs, you could probably use it together with Skosmos the way you described. But of course it is mainly useful if you want to use SPARQL to compare different versions, for example to find new concepts.

@tfrancart
Copy link
Contributor

tfrancart commented Sep 29, 2017 via email

@osma
Copy link
Member

osma commented Oct 6, 2022

Closing and archiving issue due to lack of activity. Please reopen if there are concrete reasons for reconsidering.

@osma osma closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants