LinkedDataFragments / Client.js

[DEPRECATED] A JavaScript client for Triple Pattern Fragments interfaces.
http://linkeddatafragments.org/
Other
92 stars 35 forks source link

UnionIterator self._error undefined #33

Closed cnstntn-kndrtv closed 7 years ago

cnstntn-kndrtv commented 7 years ago

Hi. Im trying to use UNION operator. And found some error in 19 line in /lib/sparql/UnionIterator.js self._error undefined. Can you help me with this?

RubenVerborgh commented 7 years ago

This was a leftover from older code, updated with the new code now.

cnstntn-kndrtv commented 7 years ago

I created little app. And some times (some times not) i see this error. Can you please help me with this? There is that app - https://github.com/cnstntn-kndrtv/ldf-client-test I started to creating some ontologies (dictionaries) about russian grammar and sense of words. First is ontology-based dictionary of russian grammatical forms. http://ldf.kloud.one/ontorugrammaform. It works on linked data fragments server. And now im trying to create a clients for this data fragments (your jQuery-widget was an example). Can you please help to find the cause of error?

RubenVerborgh commented 7 years ago

The cause of the error was a bug, which has been fixed in 05917d99953438290d6325cd96112f4e5c31364a above.

cnstntn-kndrtv commented 7 years ago

self._error() undefined

RubenVerborgh commented 7 years ago

Okay then: in order to fix your code, you need to add the following to your code:

UnionIterator.prototype._error = function (e) { this.emit('error', e); };
cnstntn-kndrtv commented 7 years ago

Thank you