SvenPVoigt opened a new issue, #1756:
URL: https://github.com/apache/jena/issues/1756

   ### Version
   
   4.7.0 and 4.6.1
   
   ### What happened?
   
   Consider the case where `model.read(someFile, base, lang)` should expand 
urls in the file using base. When using `base = "http://example.org/myField/"` 
a url like `<process>` in the TTL file gets expanded to 
`<http://example.org/myField/process>`. However, if I am using the tag schema, 
most of the tag IRI gets cut off. For instance, my base IRI 
`tag:[email protected],2023:` gets shortened to `tag:`. Minimal example 
below.
   
   ```java
   String modelString = "<process> <produces> \"50\".";
   Model model = ModelFactory.createDefaultModel();
   model.read( new ByteArrayInputStream(modelString.getBytes()), 
"tag:[email protected],2023:" , "TTL");
   model.write(System.out, "TTL");
   ```
   
   Current output:
   
   `<tag:process>  <tag:produces>  "50" .`
   
   Expected output:
   
   `<tag:[email protected],2023:process>  
<tag:[email protected],2023:produces>  "50" .`
   
   ### 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]

Reply via email to