jsonld.js icon indicating copy to clipboard operation
jsonld.js copied to clipboard

problem when compacting IRIs that contain `@`

Open pchampin opened this issue 4 years ago • 0 comments

This issue is illustrated by this example on the playground. The result compacting the IRI http://localhost/@special against base http://localhost/ is @special, which looks like a keyword. The consequence is that the resulted compact JSON-LD does not expand back to the original.

A workaround would be to compact it to ./@special instead.

pchampin avatar Feb 25 '21 09:02 pchampin