sparna-git / Sparnatural

Sparnatural : Typescript visual SPARQL query builder for knowledge graphs, configurable with SHACL
http://sparnatural.eu
GNU Lesser General Public License v3.0
206 stars 34 forks source link

auto-completion leaves something to be desired #505

Closed VladimirAlexiev closed 4 months ago

VladimirAlexiev commented 1 year ago

https://sparnatural.eu/demos/demo-bnf/index.html?lang=en

  1. Load "Edition from a work of Maupassant", remove the person and try to re-add it. "guy de" returns some choices, but "guy de m" does not: image

  2. Try to select edition by language. The language drop-down is empty. I guess the selector is not set correctly, or LCSH data is not loaded (language URLs are like <http://id.loc.gov/vocabulary/iso639-2/fre>): image

In contrast, the "year" drop-down in item 1 works ok.

tfrancart commented 1 year ago

Please check more official deployment at https://data.bnf.fr/sparnatural/

Regarding 1/, Yes, this is due to the underlying use of bif:contains Virtuoso operator. Please check your browser console to debug the network call and the underlying SPARQL query. This can obviously be configured depending on the underlying triplestore search features, this is not hardcoded in Sparnatural. For more simplistic and predictable behavior, the defaults datasources using CONTAINS or STRSTARTS should be used

Regarding 2/ it works but takes some time to load - due to how the dropdown is populated. I think there is some cache so speed things up after the first loading : image

tfrancart commented 4 months ago

Closing due to inactivity.

VladimirAlexiev commented 4 months ago

Hi @tfrancart , shouldn't you append a star and pass to `bif:contains:

If there's a way to configure such appending please point to it and keep this closed.