cdekok commented on issue #1948:
URL: https://github.com/apache/jena/issues/1948#issuecomment-1667721481

   Currently I have some code that is writing code to RDF, so for example.
   
   ```kotlin
   val value = LiteralLabelFactory.createTypedLiteral(true)
   val node = NodeFactory.createLiteral(label)
   ```
   
   Now this can be converted ofcourse to just using the NodeFactory e.g
   
   ```
   NodeFactory.createLiteralByValue(true, XSDDatatype.XSDboolean)
   ```
   
   It would be nice if the doc block would point to a use method when marking 
methods as deprecated.
   
   Currently the method `NodeFactory.createLiteral` is marked as deprecated, 
but the `LiteralLabelFactory` is not only it's not possible to convert a 
LiteralLabel to a Node anymore since Node_Literal constructor is private.
   
   The intention of the deprecated is a bit unclear for me, what incorrect 
states should it prevent, and why can I create LiteralLabels but not turn them 
into nodes?


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