Skip to content

"key.substring is not a function" in Firefox Browser #173

@0xR3sIst0r

Description

@0xR3sIst0r

When I try to execute suggestion queries in the qlever-ui, this results in an error "key.substring is not a function". The Suggestion Query was taken from the browser console via the ui setting log requests and log suggestions. This problem only occured on Firefox and not in the Chrome browser.

Firefox version: 141.0.3
qlever-ui: docker.io/adfreiburg/qlever-ui

Example query that throws the error:

SELECT ?qleverui_entity
              (MIN(?name) as ?qleverui_name)
              (MIN(?alias) as ?qleverui_alias)
              (SAMPLE(?count_1) as ?qleverui_count) WHERE {
  { SELECT ?qleverui_entity ?name ?alias ?count_1 WHERE {
  { { SELECT ?qleverui_entity (COUNT(DISTINCT ?subject) AS ?count_1) WHERE { ?subject ?qleverui_entity ?object } GROUP BY ?qleverui_entity }
    BIND(?qleverui_entity AS ?name) BIND(?qleverui_entity AS ?alias)
  } UNION {
  { { SELECT ?qleverui_entity (COUNT(DISTINCT ?subject) AS ?count_1) WHERE { ?subject ?qleverui_entity ?object } GROUP BY ?qleverui_entity }
    BIND(?qleverui_entity AS ?name) BIND(?qleverui_entity AS ?alias)
  } } } }

} GROUP BY ?qleverui_entity ORDER BY DESC(?qleverui_count)

LIMIT 40
OFFSET 0

resulting error output:

Error processing query

key.substring is not a function
Your query was:

SELECT ?qleverui_entity
(MIN(?name) as ?qleverui_name)
(MIN(?alias) as ?qleverui_alias)
(SAMPLE(?count_1) as ?qleverui_count) WHERE {
{ SELECT ?qleverui_entity ?name ?alias ?count_1 WHERE {
{ { SELECT ?qleverui_entity (COUNT(DISTINCT ?subject) AS ?count_1) WHERE { ?subject ?qleverui_entity ?object } GROUP BY ?qleverui_entity }
BIND(?qleverui_entity AS ?name) BIND(?qleverui_entity AS ?alias)
} UNION {
{ { SELECT ?qleverui_entity (COUNT(DISTINCT ?subject) AS ?count_1) WHERE { ?subject ?qleverui_entity ?object } GROUP BY ?qleverui_entity }
BIND(?qleverui_entity AS ?name) BIND(?qleverui_entity AS ?alias)
} } } }

} GROUP BY ?qleverui_entity ORDER BY DESC(?qleverui_count)

LIMIT 40
OFFSET 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions