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

URNs are not compacted with "@base" #456

Open
ethieblin opened this issue Jul 7, 2021 · 0 comments · May be fixed by #458
Open

URNs are not compacted with "@base" #456

ethieblin opened this issue Jul 7, 2021 · 0 comments · May be fixed by #458

Comments

@ethieblin
Copy link

When compacting a JSON-LD with a @base context, I remarked different behaviour for URIs and URNs:

URIs
With a "@base": "http://example.com", a "@id":"http://example.com/nosec_sc" becomes "@id": "nosec_sc", which is expected.

Playground link

URNs
With a "@base": "urn:something/", a "@id":"urn:something/no_sec" remains the same after compaction though we would expect a "@id":"no_sec".

Playground link

@ethieblin ethieblin linked a pull request Jul 27, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant