Tomvbe opened a new issue, #2196: URL: https://github.com/apache/jena/issues/2196
### Version 4.10.0 ### What happened? **Description** As of JSON-LD 1.1 it is possible to use "#" as the vocabulary mapping (https://www.w3.org/TR/json-ld11/#document-relative-vocabulary-mapping). Jena parses this incorrectly, it ignores the "#". **Reproduction** When we expand the following JSON-LD 1.1 to TURTLE: ``` { "@context": { "@version": 1.1, "@base": "http://example/document", "@vocab": "#" }, "@id": "http://example.org/places#BrewEats", "@type": "Restaurant", "name": "Brew Eats" } ``` in jena we get the following output (notice the missing '#' before 'Restaurant' and 'name'): ``` @prefix : <#> . <http://example.org/places#BrewEats> a <http://example/documentRestaurant>; <http://example/documentname> "Brew Eats" . ``` We expect the following output (cfr. https://www.w3.org/TR/json-ld11/#document-relative-vocabulary-mapping): ``` <http://example.org/places#BrewEats> a <http://example/document#Restaurant> ; <http://example/document#name> "Brew Eats" . ``` ### Relevant output and stacktrace _No response_ ### Are you interested in making a pull request? None -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
