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

trig: stack overflow when there is an excess of prefixes #56

Open
tpluscode opened this issue Apr 30, 2022 · 0 comments
Open

trig: stack overflow when there is an excess of prefixes #56

tpluscode opened this issue Apr 30, 2022 · 0 comments

Comments

@tpluscode
Copy link

Try this snippet: https://runkit.com/embed/5xvu3rhd5z0u

Python's rdflib extract a buttload of prefixes out of virtually any URI it comes across.

Graphy does not like it and fails with

RangeError: Maximum call stack size exceeded
at RegExp.exec in ECMAScript
at match_prefixed_name_escapeless in @graphy/content.trig.read/main.js — line 302
at Reader.match_prefixed_name_escapeless in @graphy/content.trig.read/main.js — line 588
at Reader.block (as _f_state) in @graphy/content.trig.read/main.js — line 1491
at Reader.full_stop in @graphy/content.trig.read/main.js — line 4486
at Reader.prefix_iri in @graphy/content.trig.read/main.js — line 4342
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant