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

Allow empty baseIRI #24

Open
rubensworks opened this issue Sep 17, 2019 · 1 comment
Open

Allow empty baseIRI #24

rubensworks opened this issue Sep 17, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@rubensworks
Copy link
Owner

Currently, relative IRIs without a defined baseIRI will be ignored.
In some cases, it may be useful to have relative IRIs without a defined baseIRI.
As such, an undefined baseIRI should result in the creation of relative IRIs in NamedNodes.

TODO: check what the spec says about this.

See discussion in rdfjs/N3.js#182

@rubensworks rubensworks added the enhancement New feature or request label Sep 17, 2019
@rubensworks
Copy link
Owner Author

The JSON-LD spec says that triples with invalid IRIs (including relative IRIs produced without a baseIRI) should be omitted from the output, so we definitely can not make this the default behaviour.

However, a allowRelativeIris config option could be added that skips this validation step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant