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

-star and * extensions hide the format #324

Open
jeswr opened this issue Feb 16, 2023 · 0 comments
Open

-star and * extensions hide the format #324

jeswr opened this issue Feb 16, 2023 · 0 comments

Comments

@jeswr
Copy link
Collaborator

jeswr commented Feb 16, 2023

In this line

N3.js/src/N3Parser.js

Lines 20 to 21 in 520054a

const format = (typeof options.format === 'string') ?
options.format.match(/\w*$/)[0].toLowerCase() : '',
with a input format option of text/n3-star the format constant becomes star and for text/n3* the format constant becomes the empty string.

This means that we cannot currently rdf-star mode for parsing and specify the content type. In particular this means that there is no way of parsing "n3-star" without manually overriding _supportsRDFStar or _isN3 after construction.

@jeswr jeswr changed the title -star and * extensions hides the format -star and * extensions hide the format Feb 16, 2023
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