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

@base set by baseIRI is not shown in the prefixes part of the document #375

Open
LadyMalande opened this issue Feb 2, 2024 · 0 comments

Comments

@LadyMalande
Copy link

After setting baseIRI in the Writer constructor, the @base does not show up among the prefixes at the beginning of the generated turtle format, as the actions for it to display the @base are missing from the file.

Example: Having this in my code:

new N3.Writer({ prefixes: { sh: 'http://www.w3.org/ns/shacl#', rdfs: "http://www.w3.org/2000/01/rdf-schema#"}, baseIRI: this.baseURL })

and the resulting file shows only this at the beginning, missing @base:

@Prefix sh: http://www.w3.org/ns/shacl#.
@Prefix rdfs: http://www.w3.org/2000/01/rdf-schema#.

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