Closed RinkeHoekstra closed 3 years ago
$rdf.parse
takes a fifth argument which should be a callback-function. It seems that most of the cases where a missing callback is handled, but some are not.
Have you tried passing a function as the fifth parameter?
Thanks for your suggestion. I'll give it a go and will report back here.
On Thu, 11 Jul 2019 at 15:00, Arne Hassel notifications@github.com wrote:
$rdf.parse takes a fifth argument which should be a callback-function. It seems that most of the cases where a missing callback is handled, but some are not.
Have you tried passing a function as the fifth parameter?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/linkeddata/rdflib.js/issues/323?email_source=notifications&email_token=AAFOSC3B55XHEWBYJ2U3NO3P64VG5A5CNFSM4H62JWR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZWTXIQ#issuecomment-510475170, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFOSC7PSO5YEKHV36KGWMDP64VG5ANCNFSM4H62JWRQ .
Works (apologies for the delay in reporting back)
When trying to parse N-Quads (application/n-quads), rdflib throws an error:
$rdf.parse("<http://ex.com/a> <http://ex.com/b> <http://ex.com/c> <http://ex.com/d> .", $rdf.graph(), "http://ex.com", "application/n-quads");
The error is:
In some cases the model remains empty, but in other cases some triples do get loaded. I haven't been able to track down exactly where this occurs.