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

Custom datafactory results in errors #63

Open
LaurensRietveld opened this issue May 10, 2023 · 1 comment
Open

Custom datafactory results in errors #63

LaurensRietveld opened this issue May 10, 2023 · 1 comment

Comments

@LaurensRietveld
Copy link

Passing a custom datafactory results in <x> is not a function errors.

import graphyNtParser from "@graphy/content.nt.read";
import * as N3 from 'n3'
fs.readFile('someFile').pipe(graphyNtParser({ baseIri: 'https://triply.cc/',relax: true, dataFactory: N3.DataFactory}))

The above snippet results in errors such as g_quad.isolate is not a function

@LaurensRietveld
Copy link
Author

A workaround here is to have a subsequent passthrough stream to rewrite the terms into a different datafactory

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