Using the Java client, (com.complexible.stardog.api.IO.stream
function), if the RDF is not valid, a plain StardogException
occurs.
This is quite inconvenient, as in order to differentiate it from other possible exceptions (and thus follow a different automated approach), the message must be parsed and interpreted, but the message varies depending on the error (e.g. “Expected…, found:…” or “No separator character found in the URI”) and any modification on it would break the parsing logic.
Usage of an InvalidRdfException
(being it itself an extension of StardogException
for backwards compatibility) would be sweet!