digitalbazaar / pyld

JSON-LD processor written in Python
https://json-ld.org/
Other
606 stars 131 forks source link

problem when compacting IRIs that contain `@` #150

Open pchampin opened 3 years ago

pchampin commented 3 years ago

This issue is the same as https://github.com/digitalbazaar/jsonld.js/issues/435:

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.