afs commented on issue #1756:
URL: https://github.com/apache/jena/issues/1756#issuecomment-1428701293

   Base URI is not simply prepended. It follows URI resolution rules for 
hierarchical URIs.
   
   Technically, "tag:" is a not hierarchical URI scheme (does not have "//" 
after the domain name).
   c.f. "http:a/b/c".
   
   "tag:[email protected],2023:" is URI scheme "tag:" and a path of 
"[email protected],2023:". 
   
   `:`, nor any of those others characters, are special in a URI. Only "/", the 
hierarchical path character, is special for paths and path resolution.
   
   The resolution rules of URIs mean anything after the last "/" is removed, 
taking it back to `tag:`.
   
   
   
   c.f. "/folder/abc" is a base of "/folder/". It makes `<a 
href="fileInSameDirectory">` work.
   It also makes `BASE <https:>` and URI `//host/xyz` become `https://host/xyz`.
   
   Prefixes are concatenations:
   
   ```
   PREFIX tag: <tag:[email protected],2023:>
   tag:process tag:produces "50" .
   ```
   
   Or use fragments:
   
   ```
      String modelString = "<#process> <#produces> \"50\".";
   ```
   
   The same happens with URNs and it's use of ":".


-- 
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