-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent Labeling for Blank Nodes Across Writers #1997
Comments
Hi @aliariff - could you show a concrete example and say why it matters to you? Especially for the CSV format, which is lossy anyway, it uses the TSV preserves more of the RDF-ness like strings vs URIs. Blank nodes in the results format are scoped to the result document - they don't represent the original blank node in the data. (That's a feature of blank nodes.) |
Hi @afs, Our platform allows users to export data in various formats, including JSON, XML, and CSV. When using Imagine a user referencing a blank node labelled Though the |
That is relying on a Jena-specific feature. By the standards, blank nodes in the results format are scoped to the result document, not across documents. See, for example, the prettified Turtle output. Bug label removed - this is a feature request. If you want to put in a PR for an opt-in (using |
…writing bnodes Signed-off-by: Ali Ariff <ali.ariff@accurids.com>
…writing bnodes Signed-off-by: Ali Ariff <ali.ariff@accurids.com>
…g bnodes Signed-off-by: Ali Ariff <ali.ariff@accurids.com>
…writing bnodes Signed-off-by: Ali Ariff <ali.ariff@accurids.com>
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 theNodeToLabelMap
. However, theRowSetWriterJSON
andRowSetWriterXML
writers decide on the labelling strategy based on the provided context: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
The text was updated successfully, but these errors were encountered: