DO NOT MERGE YET : SES-1871 : Support writing relative URIs in RDFHandler and RDFWriterFactory

Declined
#207 · Created  · Last updated

Declined pull request

Closing this pull request as it has stagnated and it is still relevant, but I don't have time to revise it in depth in the near future, the branch will still be available if/when Sergio or others want to continue developing it. First step when that happens will be to get me to do a git rebase -i and a force push to update it to the current code.

Closed by: ·2014-08-05

Description

This patch adds two new API features to support relative base URIs when writing using Rio:

  1. RDFWriterFactory.getWriter(OutputStream, URI) and equivalent for Reader : Called to signal that there is an initial base URI for the document. This is the default but it may be overridden by calls to RDFHandler.handleBaseURI(URI).

  2. RDFHandler.handleBaseURI(URI) : Called to signal a change in the base URI that will be active when the next call to handleStatement occurs. If it is called with a null value, then the current base URI is reset to the default base URI for the document, or empty if there is no default base URI. If the base URI is empty, then all URIs are fully serialised.

I think we should postpone this until after the 2.8.0-beta1 release, and possibly until 2.9, unless someone else wants to take the issue up and work through the outstanding comments, as I am a bit short for time right now and this issue is not critical to a 2.8 release.

0 attachments

0 comments

Loading commits...