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

   ### Version
   
   4.9.0
   
   ### What happened?
   
   There's an observed inconsistency in how blank nodes are labelled across 
different writer classes. The `RowSetWriterCSV` class labels blank nodes using 
the `NodeToLabelMap`. However, the `RowSetWriterJSON` and `RowSetWriterXML` 
writers decide on the labelling strategy based on the provided context:
   
   ```java
   boolean outputGraphBNodeLabels = (context != null) && 
context.isTrue(ARQ.outputGraphBNodeLabels);
   labels = outputGraphBNodeLabels
       ? SyntaxLabels.createNodeToLabelAsGiven()
       : SyntaxLabels.createNodeToLabel();
   ```
   
   For consistency across output formats, it's suggested to handle blank node 
labelling the same way across all writers. Specifically, the CSV writer should 
also decide the labelling strategy based on context, as in the JSON and XML 
writers.
   
   
   ### Relevant output and stacktrace
   
   _No response_
   
   ### Are you interested in making a pull request?
   
   Yes


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