Giter Club home page Giter Club logo

Comments (3)

der avatar der commented on August 18, 2024

Yes the multiple positive hits are effectively from _red:2 through _red:5.

Agreed that some form of consolidation would be better, not trivial to do but will add this to the list. This is a UI issue more than an API issue.

This has nothing to to with named graphs/default graphs. Each time an item is registered a separate search index term is created pointing back to the item. This is a lucene index and not part of the triple store. There are 4 hits because only 4 of the 5 items which have been know as _red had a label "reddish", the first one had label "red".

Initially when an item was updated I updated the text index so a search for reddish would only return one hit. The problem is that you would then never find "red". So now all versions are indexed and the API attempts to consolidate.

from ukl-registry-poc.

6a6d74 avatar 6a6d74 commented on August 18, 2024

"""This is a UI issue more than an API issue."""

Agreed.

"""There are 4 hits because only 4 of the 5 items which have been know as _red had a label "reddish", the first one had label "red"."""

Agreed that the first version of the register item for /def/colours/red would not be found when searching for "reddish". However, the point I was making was that it also did not find the triple in NAMED GRAPH /def/colours/_red:2#graph ... from the SPARQL query panel I can see that the following triple exists therein:

</def/colours/red> rdfs:label "reddish"@en .

Would this have made the 5th "hit"? (if NAMED GRAPHs are also being searched?)

from ukl-registry-poc.

der avatar der commented on August 18, 2024

The index is not over triples. It indexes each item based on the item label which in turn is a copy from the entity description in the named graph. The search results are based on entity lists (as specified) so the UI can't link from the entity to a specific item version in the index.

I've arranged for duplicate suppression in the search results but retain the indexing of each historic version.

from ukl-registry-poc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.