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

   ### Version
   
   4.9.0
   
   ### Question
   
   Currently working with some Turtle files and ran them through `riot 
--validate`, which returned this message: `Bad IRI: Fragment used with UUID`
   
   While there were indeed `urn:uuid` IRIs with a fragment, I’m having doubts 
whether this should be the expected behaviour. When looking at the syntax 
specification for URNs 
(https://datatracker.ietf.org/doc/html/rfc8141#section-2), it clearly states an 
optional “f-component” is allowed (indicated by a preceding hashtag). The 
`urn:uuid:<the actual UUID>` part seems to be purely the “assigned-name” 
(existing of `urn`, `uuid` being the “Namespace Identifier (NID)” and the UUID 
value being the “Namespace Specific String (NSS)”).
   
   If I'm interpreting the specification wrong feel free to let me know, but it 
seems like a fragment is actually allowed. Any chance [this will be 
updated](https://github.com/apache/jena/blob/jena-4.9.0/jena-core/src/main/java/org/apache/jena/irix/IRIProviderJenaIRI.java#L293)
 to reflect that?


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