afs commented on issue #2808: URL: https://github.com/apache/jena/issues/2808#issuecomment-2444879696
The datatype registry provides the unique references. It's an open-ended enum. `LiteralLabelFactory` should not be considered application facing API. It's in `impl`. > uniqueness isn’t defined by the URI That's contract for RDF datatypes. > `if (... || getClass() != o.getClass()) return false;` I think chaos will result if "same URI, different class". It will be lost on printing and storing in a database. Maybe define `equals` and `hashCode` as final. -- 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]
